<?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>SQL-Problems during sync</title> 
  <pubDate>Fri, 10 Apr 2026 07:03:41 +0000</pubDate> 
  <link>https://bugs.horde.org/ticket/10171</link> 
  <atom:link rel="self" type="application/rss+xml" title="SQL-Problems during sync" href="https://bugs.horde.org/ticket/10171/rss" /> 
  <description>SQL-Problems during sync</description> 
 
   
   
  <item> 
   <title>With Horde 4.0.2/Kronolith 3.0.2 and postgresql 8.4. I alway</title> 
   <description>With Horde 4.0.2/Kronolith 3.0.2 and postgresql 8.4. I always get the following SQL-Error when i try to sync the calendar data from my mobile phone to the server:

h1690828 HORDE: HORDE [horde] SQLSTATE[42883]: Undefined function: 7
FEHLER:  Operator existiert nicht: character varying = integer LINE 1:
 ...riginaldate FROM kronolith_events WHERE event_uid = 96437035 ...
                                                           ^ HINT:  Kein
Operator stimmt mit dem angegebenen Namen und den Argumenttypen überein.
Sie müssen möglicherweise ausdrückliche Typumwandlungen hinzufügen. [pid
14062 on line 481 of &quot;/var/apache/mail/kronolith/lib/Driver/Sql.php&quot;]

Since event_uid is of type character, this error message is correct. I had equal problems when i tried to convert the old Horde 3.x installation. Several conversion scripts complained about the numeric
event_uid. 

This happens always when the event_uid for some reasons contains only numbers. Deleting this one event with the numeric uid solved at  least my sync problem, but it looks like the framework or database driver does some guesswork on the type. Whenever the event_uid is  only numeric the wrong type integer instead of character is guessed,  leading to this error message.

The horde installation runs on Debian 6.0.1 with postgresql 8.4.
</description> 
   <pubDate>Wed, 01 Jun 2011 18:35:51 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/10171#t65224</link> 
  </item> 
   
  <item> 
   <title>Changes have been made in Git for this ticket:

Cast UID to </title> 
   <description>Changes have been made in Git for this ticket:

Cast UID to string (Bug #10171).

 1 files changed, 1 insertions(+), 1 deletions(-)
http://git.horde.org/horde-git/-/commit/ab440a607223e9e46b0af022f1a1158d71584ca1</description> 
   <pubDate>Thu, 02 Jun 2011 22:12:46 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/10171#t65308</link> 
  </item> 
   
  <item> 
   <title>Does that fix it?</title> 
   <description>Does that fix it?</description> 
   <pubDate>Thu, 02 Jun 2011 22:13:25 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/10171#t65310</link> 
  </item> 
   
  <item> 
   <title>&gt; Does that fix it?

Seem there are problems on other part</title> 
   <description>&gt; Does that fix it?

Seem there are problems on other parts too. To retest this problem i tried to convert my old backup of the last horde version to the current version and get an similar error:
 
SQLSTATE[42883]: Undefined function: 7 FEHLER: Operator existiert nicht: character varying = integer ZEILE 1: ...ect_name FROM &quot;rampage_objects&quot; WHERE object_name IN (941282... ^ TIP: Kein Operator stimmt mit dem angegebenen Namen und den Argumenttypen überein. Sie müssen möglicherweise ausdrückliche Typumwandlungen hinzufügen.

HORDE: HORDE [horde] SQL QUERY FAILED: SQLSTATE[42883]: Undefined function: 7 FEHLER:  Operator existiert nicht: character varying = integer ZEILE 1: ...ect_name FROM &quot;rampage_objects&quot; WHERE object_name IN (941282...                                                               ^ TIP:  Kein Operator stimmt mit dem angegebenen Namen und den Argumenttypen überein. Sie müssen möglicherweise ausdrückliche Typumwandlungen hinzufügen.   ^ISELECT object_id, object_name FROM &quot;rampage_objects&quot; WHERE object_name ^I  IN (941282435) AND type_id = 2 [pid 1948 on line 792 of &quot;/usr/share/php/Horde/Db/Adapter/Base.php&quot;]

</description> 
   <pubDate>Fri, 03 Jun 2011 10:28:38 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/10171#t65350</link> 
  </item> 
   
  <item> 
   <title>Changes have been made in Git for this ticket:

More UID cas</title> 
   <description>Changes have been made in Git for this ticket:

More UID casting to string (Bug #10171).

 1 files changed, 4 insertions(+), 4 deletions(-)
http://git.horde.org/horde-git/-/commit/737b1dfab0273170e1af77853cd8d1437e2aec9b</description> 
   <pubDate>Fri, 03 Jun 2011 10:48:40 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/10171#t65353</link> 
  </item> 
   
  <item> 
   <title>How about now?</title> 
   <description>How about now?</description> 
   <pubDate>Fri, 03 Jun 2011 10:49:27 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/10171#t65355</link> 
  </item> 
   
  <item> 
   <title>The same problem as before.
</title> 
   <description>The same problem as before.
</description> 
   <pubDate>Fri, 03 Jun 2011 12:00:43 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/10171#t65359</link> 
  </item> 
   
  <item> 
   <title>I observe the same error (Horde 4.0.6, kronolith 3.0.4, post</title> 
   <description>I observe the same error (Horde 4.0.6, kronolith 3.0.4, postgresql 8.4) when upgrading from  kronolith-H3 with event-uid-entrys of all numbers (mis-interpreted as integer). The reason seems to be a missing quotation of $objectName (here the event_uid) in line 116 to 118 in /var/www/horde/content/lib/Objects/Manager.php:

foreach ($this-&gt;_db-&gt;selectAll(&#039;SELECT object_id, object_name FROM &#039; . $this-&gt;_t(&#039;objects&#039;)
. &#039; WHERE object_name IN (&#039; . implode(&#039;,&#039;, array_map(array($this-&gt;_db, &#039;quote&#039;), array_keys($objectName)))
. &#039;) AND type_id = &#039; . $type) as $row) {

If I leave out the mapping to array($this-&gt;_db, &#039;quote&#039;) and hard-encode the quotes, it solves the problem for me:

foreach ($this-&gt;_db-&gt;selectAll(&quot;SELECT object_id, object_name FROM &quot; . $this-&gt;_t(&#039;objects&#039;)
. &quot; WHERE object_name IN (&#039;&quot; . implode(&quot;&#039;,&#039;&quot;, array_keys($objectName))
. &quot;&#039;) AND type_id = &quot; . $type) as $row) {

(see also appended patch).

I have no idea if this does work with other DB-backends too, though, as I don&#039;t really understand the use of the &#039;quote&#039;-mapping in the first place.

Andreas
</description> 
   <pubDate>Wed, 15 Jun 2011 10:34:04 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/10171#t65664</link> 
  </item> 
   
  <item> 
   <title>Changes have been made in Git for this ticket:

Always treat</title> 
   <description>Changes have been made in Git for this ticket:

Always treat these values as strings.
We have already filtered out the actual integer ids, these values
will always represent object/type names, not ids.

Should fix bug: 10171

 2 files changed, 18 insertions(+), 7 deletions(-)
http://git.horde.org/horde-git/-/commit/fdb8a263980a6d768dd07987417152bcb302e80a</description> 
   <pubDate>Wed, 15 Jun 2011 14:29:13 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/10171#t65669</link> 
  </item> 
   
  <item> 
   <title>Can you see if what I committed fixed this for you?</title> 
   <description>Can you see if what I committed fixed this for you?</description> 
   <pubDate>Wed, 15 Jun 2011 14:31:07 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/10171#t65670</link> 
  </item> 
   
  <item> 
   <title>&gt; Can you see if what I committed fixed this for you?

Yes</title> 
   <description>&gt; Can you see if what I committed fixed this for you?

Yes, these changes do the trick. It&#039;s now working ok.

Thanks a lot,
Andreas</description> 
   <pubDate>Thu, 16 Jun 2011 07:02:49 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/10171#t65681</link> 
  </item> 
   
  <item> 
   <title>&gt;&gt; Can you see if what I committed fixed this for you?
&gt;
&gt;</title> 
   <description>&gt;&gt; Can you see if what I committed fixed this for you?
&gt;
&gt; Yes, these changes do the trick. It&#039;s now working ok.
&gt;
&gt; Thanks a lot,
&gt; Andreas

Yes! Working fine for me, too!!

But .. why is that patch not in 4.0.2?

Thanks, Christopher</description> 
   <pubDate>Wed, 03 Aug 2011 14:41:41 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/10171#t66753</link> 
  </item> 
   
  <item> 
   <title>There is a new content release that was pushed today. You sh</title> 
   <description>There is a new content release that was pushed today. You should be able to update via pear now.</description> 
   <pubDate>Fri, 05 Aug 2011 15:09:58 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/10171#t66811</link> 
  </item> 
   
   
 
 </channel> 
</rss> 
