6.0.0-beta6
▾
Tasks
New Task
Search
Photos
Wiki
▾
Tickets
New Ticket
Search
dev.horde.org
Toggle Alerts Log
Help
4/4/26
H
istory
A
ttachments
C
omment
W
atch
Download
Comment on [#9378] Unexpected values in sql result lead to duplicate inserts
*
Your Email Address
*
Spam protection
Enter the letters below:
.___..__.. ..___.. , _/ | || | _/ \./ ./__.|__\|/\|./__. |
Comment
> hi, > > in horde/content/lib/Types/Manager.php line 70 > foreach ($this->_db->selectAssoc('SELECT type_id, type_name FROM ' . > $this->_t('types') . ' WHERE type_name IN ('.implode(',', > array_map(array($this->_db, 'quote'), array_keys($typeName))).')') as > $id => $type) { > > returns > array(2) { ["calendar"]=> bool(false) ["event"]=> bool(false) } > but it seems its expected to be calendar=> 1, event => 2 > > so no entrys are found and the insert following leads to > > INSERT INTO `rampage_types` (type_name) VALUES ('calendar') [pid > 12751 on line 761 of > "/var/www/_horde/horde/framework/Db/lib/Horde/Db/Adapter/Base.php"] > 2010-11-10T10:40:32+01:00 EMERG: HORDE [kronolith] QUERY FAILED: > Duplicate entry 'calendar' for key 2 > >
Attachment
Watch this ticket
N
ew Ticket
M
y Tickets
S
earch
Q
uery Builder
R
eports
Saved Queries
Open Bugs
Bugs waiting for Feedback
Open Bugs in Releases
Open Enhancements
Enhancements waiting for Feedback
Bugs with Patches
Enhancements with Patches
Release Showstoppers
Stalled Tickets
New Tickets
Horde 5 Showstoppers