<?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>No search possible because sesha_inventory WHERE sesha_inventory.&quot;stock_id&quot; LIKE &#039;%%&#039;</title> 
  <pubDate>Fri, 10 Apr 2026 00:02:41 +0000</pubDate> 
  <link>https://bugs.horde.org/ticket/12976</link> 
  <atom:link rel="self" type="application/rss+xml" title="No search possible because sesha_inventory WHERE sesha_inventory.&quot;stock_id&quot; LIKE &#039;%%&#039;" href="https://bugs.horde.org/ticket/12976/rss" /> 
  <description>No search possible because sesha_inventory WHERE sesha_inventory.&quot;stock_id&quot; LIKE &#039;%%&#039;</description> 
 
   
   
  <item> 
   <title>I tried searching for &quot;Item Name&quot; and a string,

The SQL q</title> 
   <description>I tried searching for &quot;Item Name&quot; and a string,

The SQL query tried to use &quot;stock_id&quot; LIKE &#039;%%&#039;, which is:

a) a NOOP, IMHO
b) invalid, because stock_id is INTEGER and LIKE requires character strings,
c) I did not selected &quot;Stock ID&quot; as property to search for,
d) I miss the search string I entered

I also miss the properties I&#039;ve created, in order to search through them.

========

HORDE: [sesha] SQLSTATE[42883]: Undefined function: 7 ERROR:  operator does not exist: integer ~~ unknown#012LINE 1: ... sesha_inventory WHERE sesha_inventory.&quot;stock_id&quot; LIKE &#039;%%&#039; ...#012                                                             ^#012HINT:  No operator matches the given name and argument type(s). You might need to add explicit type casts.

SQLSTATE[42883]: Undefined function: 7 ERROR: operator does not exist: integer ~~ unknown LINE 1: ... sesha_inventory WHERE sesha_inventory.&quot;stock_id&quot; LIKE &#039;%%&#039; ... ^ HINT: No operator matches the given name and argument type(s). You might need to add explicit type casts.

 1. Sesha_View_List-&gt;__construct() /var/www/horde/sesha/list.php:49
 2. Sesha_View_List-&gt;stock() /var/www/horde/sesha/lib/View/List.php:76
 3. Sesha_Driver_Rdo-&gt;findStock() /var/www/horde/sesha/lib/View/List.php:156
 4. iterator_to_array() /var/www/horde/sesha/lib/Driver/Rdo.php:594
 5. Horde_Rdo_List-&gt;rewind()
 6. Horde_Db_Adapter_Base-&gt;select() /usr/share/php/Horde/Rdo/List.php:133
 7. Horde_Db_Adapter_Base-&gt;execute() /usr/share/php/Horde/Db/Adapter/Base.php:405
 8. Sesha_View_List-&gt;__construct() /var/www/horde/sesha/list.php:49
 9. Sesha_View_List-&gt;stock() /var/www/horde/sesha/lib/View/List.php:76
10. Sesha_Driver_Rdo-&gt;findStock() /var/www/horde/sesha/lib/View/List.php:156
11. iterator_to_array() /var/www/horde/sesha/lib/Driver/Rdo.php:594
12. Horde_Rdo_List-&gt;rewind()
13. Horde_Db_Adapter_Base-&gt;select() /usr/share/php/Horde/Rdo/List.php:133
14. Horde_Db_Adapter_Base-&gt;execute() /usr/share/php/Horde/Db/Adapter/Base.php:405
15. PDO-&gt;query() /usr/share/php/Horde/Db/Adapter/Base.php:551

Details
The full error message is logged in Horde&#039;s log file, and is shown below only to administrators. Non-administrative users will not see error details.

Horde_Db_Exception Object
(
    [details] =&gt; 
    [logged] =&gt; 1
    [_logLevel:protected] =&gt; 0
    [message:protected] =&gt; SQLSTATE[42883]: Undefined function: 7 ERROR:  operator does not exist: integer ~~ unknown
LINE 1: ... sesha_inventory WHERE sesha_inventory.&quot;stock_id&quot; LIKE &#039;%%&#039; ...
                                                             ^
HINT:  No operator matches the given name and argument type(s). You might need to add explicit type casts.
    [string:Exception:private] =&gt; 
    [code:protected] =&gt; 42883
    [file:protected] =&gt; /usr/share/php/Horde/Db/Adapter/Base.php
    [line:protected] =&gt; 555
    [trace:Exception:private] =&gt; Array
        (
            [0] =&gt; Array
                (
                    [file] =&gt; /usr/share/php/Horde/Db/Adapter/Base.php
                    [line] =&gt; 405
                    [function] =&gt; execute
                    [class] =&gt; Horde_Db_Adapter_Base
                    [type] =&gt; -&gt;
                    [args] =&gt; Array
                        (
                            [0] =&gt; SELECT sesha_inventory.stock_id, sesha_inventory.stock_name, sesha_inventory.note FROM sesha_inventory WHERE sesha_inventory.&quot;stock_id&quot; LIKE ? OR sesha_inventory.&quot;stock_name&quot; LIKE ?
                            [1] =&gt; Array
                                (
                                    [0] =&gt; %%
                                    [1] =&gt; %%
                                )

                            [2] =&gt; 
                        )

                )

            [1] =&gt; Array
                (
                    [file] =&gt; /usr/share/php/Horde/Rdo/List.php
                    [line] =&gt; 133
                    [function] =&gt; select
                    [class] =&gt; Horde_Db_Adapter_Base
                    [type] =&gt; -&gt;
                    [args] =&gt; Array
                        (
                            [0] =&gt; SELECT sesha_inventory.stock_id, sesha_inventory.stock_name, sesha_inventory.note FROM sesha_inventory WHERE sesha_inventory.&quot;stock_id&quot; LIKE ? OR sesha_inventory.&quot;stock_name&quot; LIKE ?
                            [1] =&gt; Array
                                (
                                    [0] =&gt; %%
                                    [1] =&gt; %%
                                )

                        )

                )

            [2] =&gt; Array
                (
                    [function] =&gt; rewind
                    [class] =&gt; Horde_Rdo_List
                    [type] =&gt; -&gt;
                    [args] =&gt; Array
                        (
                        )

                )</description> 
   <pubDate>Tue, 18 Feb 2014 08:50:53 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/12976#t82402</link> 
  </item> 
   
  <item> 
   <title>Changes have been made in Git (master):

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

commit 842f5376764a0c3946567a76ff69a1c735bc214d
Author: Jan Schneider &lt;jan@horde.org&gt;
Date:   Mon Feb 24 15:15:42 2014 +0100

    [jan] Don&#039;t use LIKE search on inventory ID field (Bug #12976).
    
    And don&#039;t build empty search criteria.

 sesha/docs/CHANGES       |    1 +
 sesha/lib/Driver/Rdo.php |   11 ++++++++---
 sesha/package.xml        |    4 ++--
 3 files changed, 11 insertions(+), 5 deletions(-)

http://git.horde.org/horde-git/-/commit/842f5376764a0c3946567a76ff69a1c735bc214d</description> 
   <pubDate>Mon, 24 Feb 2014 14:16:54 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/12976#t82441</link> 
  </item> 
   
   
 
 </channel> 
</rss> 
