<?xml version="1.0" encoding="UTF-8"?> 
<?xml-stylesheet href="https://dev.horde.org/themes/horde//default/feed-rss.xsl" type="text/xsl"?> 
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"> 
 <channel> 
  <title>Unexpected values in sql result lead to duplicate inserts</title> 
  <pubDate>Sat, 04 Apr 2026 14:14:22 +0000</pubDate> 
  <link>https://bugs.horde.org/ticket/9378</link> 
  <atom:link rel="self" type="application/rss+xml" title="Unexpected values in sql result lead to duplicate inserts" href="https://bugs.horde.org/ticket/9378/rss" /> 
  <description>Unexpected values in sql result lead to duplicate inserts</description> 
 
   
   
  <item> 
   <title>hi,

in horde/content/lib/Types/Manager.php line 70
forea</title> 
   <description>hi,

in horde/content/lib/Types/Manager.php line 70
foreach ($this-&gt;_db-&gt;selectAssoc(&#039;SELECT type_id, type_name FROM &#039; . $this-&gt;_t(&#039;types&#039;) . &#039; WHERE type_name IN (&#039;.implode(&#039;,&#039;, array_map(array($this-&gt;_db, &#039;quote&#039;), array_keys($typeName))).&#039;)&#039;) as $id =&gt; $type) {

returns 
array(2) { [&quot;calendar&quot;]=&gt;  bool(false) [&quot;event&quot;]=&gt;  bool(false) } 
but it seems its expected to be calendar=&gt; 1, event =&gt; 2

so no entrys are found and the insert following leads to

INSERT INTO `rampage_types` (type_name) VALUES (&#039;calendar&#039;) [pid 12751 on line 761 of &quot;/var/www/_horde/horde/framework/Db/lib/Horde/Db/Adapter/Base.php&quot;]
2010-11-10T10:40:32+01:00 EMERG: HORDE [kronolith] QUERY FAILED: Duplicate entry &#039;calendar&#039; for key 2

</description> 
   <pubDate>Wed, 10 Nov 2010 09:49:41 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/9378#t60794</link> 
  </item> 
   
  <item> 
   <title>I can&#039;t duplicate this.

Could this be the same issue from</title> 
   <description>I can&#039;t duplicate this.

Could this be the same issue from Bug: 9223 ?</description> 
   <pubDate>Tue, 16 Nov 2010 06:40:47 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/9378#t60848</link> 
  </item> 
   
  <item> 
   <title>hi,

i found out this only happens with database set to my</title> 
   <description>hi,

i found out this only happens with database set to mysqli, with old mysql it works, so there must be a difference there</description> 
   <pubDate>Tue, 23 Nov 2010 12:31:59 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/9378#t60903</link> 
  </item> 
   
  <item> 
   <title>Changes have been made in Git for this ticket:

Fix creating</title> 
   <description>Changes have been made in Git for this ticket:

Fix creating the return structure for selectAssoc() in non-pdo drivers
Fixes Bug: 9378

http://git.horde.org/horde-git/-/commit/ba211c1639584dc0cac5425ffc2e343b67569564</description> 
   <pubDate>Fri, 24 Dec 2010 17:53:48 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/9378#t61204</link> 
  </item> 
   
  <item> 
   <title>Can original poster verify this is now fixed with the latest</title> 
   <description>Can original poster verify this is now fixed with the latest commit?</description> 
   <pubDate>Fri, 24 Dec 2010 17:54:27 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/9378#t61205</link> 
  </item> 
   
  <item> 
   <title>Local tests show this is resolved, no feedback from OP, so r</title> 
   <description>Local tests show this is resolved, no feedback from OP, so resolving.</description> 
   <pubDate>Sun, 09 Jan 2011 17:00:23 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/9378#t61343</link> 
  </item> 
   
  <item> 
   <title>Changes have been made in Git (master):

commit fd715de86692</title> 
   <description>Changes have been made in Git (master):

commit fd715de866922ea875e2c6c9ed5aa46f6eb27e79
Author: Moritz Venn &lt;ritzmo@php.net&gt;
Date:   Thu Jul 12 19:16:13 2007 +0000

    Implemented #9378
    
    
    git-svn-id: https://svn.php.net/repository/pear/packages/Text_Wiki/trunk@239623 c90b9560-bf6c-de11-be94-00142212c4b1

 Text/Wiki/Parse/Mediawiki/Preformatted.php | 16 +++++++++++++---
 1 file changed, 13 insertions(+), 3 deletions(-)

http://github.com/horde/horde/commit/fd715de866922ea875e2c6c9ed5aa46f6eb27e79</description> 
   <pubDate>Wed, 06 Sep 2017 08:18:18 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/9378#t92215</link> 
  </item> 
   
   
 
 </channel> 
</rss> 
