Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 6E4B1B5DBC1 for ; Thu, 4 Aug 2011 07:01:25 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 65970-03; Thu, 4 Aug 2011 10:01:18 +0000 (UTC) X-Greylist: delayed 00:25:18.632045 by SQLgrey-1.7.6 X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mail2.sdb.it (mail2.sdb.it [85.37.147.67]) by mail.postgresql.org (Postfix) with ESMTP id 3C704B5DBBE; Thu, 4 Aug 2011 07:01:18 -0300 (ADT) Received: by mail2.sdb.it (Postfix, from userid 500) id F12528049; Thu, 4 Aug 2011 11:35:57 +0200 (CEST) Received: from geronimo.sdb.it (geronimo.sdb.it [10.101.1.20]) by mail2.sdb.it (Postfix) with ESMTP id E1C8E802E; Thu, 4 Aug 2011 11:35:57 +0200 (CEST) Received: from mailtech.sdb.it (localhost [127.0.0.1]) by geronimo.sdb.it (Postfix) with ESMTP id C2C073808A9; Thu, 4 Aug 2011 11:35:49 +0200 (CEST) Received: from [10.118.101.88] (silviob.sdb.it [10.118.101.88]) by mailtech.sdb.it (Postfix) with ESMTP id 1C2AA6000B; Thu, 4 Aug 2011 11:38:40 +0200 (CEST) Message-ID: <4E3A67FD.10501@tech.sdb.it> Date: Thu, 04 Aug 2011 11:35:57 +0200 From: Silvio Brandani User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; it; rv:1.9.2.18) Gecko/20110616 Thunderbird/3.1.11 MIME-Version: 1.0 To: pgsql-bugs@postgresql.org, pgsql-jdbc@postgresql.org Subject: Postgres Server Jdbc driver error References: <4DD38883.9060103@tech.sdb.it> <4DD41148.4080500@tpf.co.jp> <4DD4C814.80505@tech.sdb.it> <4DD4DDC0.4060400@tpf.co.jp> <4DD4E578.7030305@tech.sdb.it> In-Reply-To: <4DD4E578.7030305@tech.sdb.it> Content-Type: multipart/alternative; boundary="------------040204090308040703020105" X-Private-Material: Please read notice X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.085 tagged_above=-5 required=5 tests=BAYES_50=0.8, HTML_MESSAGE=0.001, RP_MATCHES_RCVD=-0.716 X-Spam-Level: X-Archive-Number: 201108/38 X-Sequence-Number: 30850 This is a multi-part message in MIME format. --------------040204090308040703020105 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit We get error with the following query where the paramater is 'att', the query return result if the parameter is different than 'att'. Probably a bug. the postgresql log is: 2011-08-04 10:44:56 CEST [28741]: [59238-1] LOG: execute S_1: BEGIN 2011-08-04 10:44:56 CEST [28741]: [59239-1] LOG: duration: 0.019 ms 2011-08-04 10:44:56 CEST [28741]: [59240-1] LOG: duration: 0.099 ms 2011-08-04 10:44:56 CEST [28741]: [59241-1] LOG: duration: 1.774 ms 2011-08-04 10:44:56 CEST [28741]: [59242-1] LOG: execute : select this_.trouble_ticket_id as y0_ from helpdesk.batch_sequences this_ where (this_.comment ilike $1 or this_.tech_note ilike $2) 2011-08-04 10:44:56 CEST [28741]: [59243-1] DETAIL: parameters: $1 = '%att%', $2 = '%att%' 2011-08-04 10:44:57 CEST [28741]: [59244-1] LOG: duration: 896.461 ms 2011-08-04 10:44:57 CEST [28741]: [59245-1] LOG: *incomplete message from client * 2011-08-04 10:44:57 CEST [28741]: [59246-1] LOG: disconnection: session time: 21:43:01.890 user=j01t02 database=webtng host=jblade01.sdb.it port=38173 On the Tomcat side we get followin message: Caused by: java.io.IOException: Tried to send an out-of-range integer as a 2-byte value: 34027 at org.postgresql.core.PGStream.SendInteger2(PGStream.java:201) at org.postgresql.core.v3.QueryExecutorImpl.sendParse(QueryExecutorImpl.java:1236) at org.postgresql.core.v3.QueryExecutorImpl.sendOneQuery(QueryExecutorImpl.java:1508) at org.postgresql.core.v3.QueryExecutorImpl.sendQuery(QueryExecutorImpl.java:1097) at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:255) Any comment higly appreciated -- Silvio Brandani --- Utilizziamo i dati personali che la riguardano esclusivamente per nostre finalitą amministrative e contabili, anche quando li comunichiamo a terzi. Informazioni dettagliate, anche in ordine al Suo diritto di accesso e agli altri Suoi diritti, sono riportate alla pagina http://www.savinodelbene.com/privacy.html Se avete ricevuto questo messaggio per errore Vi preghiamo di ritornarlo al mittente eliminandolo assieme agli eventuali allegati, ai sensi art. 616 codice penale http://www.savinodelbene.com/privacy/codice_penale_616.html L'Azienda non si assume alcuna responsabilitą giuridica qualora pervengano da questo indirizzo messaggi estranei all'attivitą lavorativa o contrari a norme. -- --------------040204090308040703020105 Content-Type: text/html; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit We get error with the following query where the paramater is 'att', the query return result if the parameter is different than 'att'.

Probably a bug.

the postgresql log is:

2011-08-04 10:44:56 CEST [28741]: [59238-1] LOG: execute S_1: BEGIN
2011-08-04 10:44:56 CEST [28741]: [59239-1] LOG: duration: 0.019 ms
2011-08-04 10:44:56 CEST [28741]: [59240-1] LOG: duration: 0.099 ms
2011-08-04 10:44:56 CEST [28741]: [59241-1] LOG: duration: 1.774 ms
2011-08-04 10:44:56 CEST [28741]: [59242-1] LOG: execute <unnamed>: select this_.trouble_ticket_id as y0_ from helpdesk.batch_sequences this_ where (this_.comment ilike $1 or this_.tech_note ilike $2)
2011-08-04 10:44:56 CEST [28741]: [59243-1] DETAIL: parameters: $1 = '%att%', $2 = '%att%'
2011-08-04 10:44:57 CEST [28741]: [59244-1] LOG: duration: 896.461 ms
2011-08-04 10:44:57 CEST [28741]: [59245-1] LOG: incomplete message from client
2011-08-04 10:44:57 CEST [28741]: [59246-1] LOG: disconnection: session time: 21:43:01.890 user=j01t02 database=webtng host=jblade01.sdb.it port=38173

On the Tomcat side we get followin message:


Caused by: java.io.IOException: Tried to send an out-of-range integer as a 2-byte value: 34027
at org.postgresql.core.PGStream.SendInteger2(PGStream.java:201)
at org.postgresql.core.v3.QueryExecutorImpl.sendParse(QueryExecutorImpl.java:1236)
at org.postgresql.core.v3.QueryExecutorImpl.sendOneQuery(QueryExecutorImpl.java:1508)
at org.postgresql.core.v3.QueryExecutorImpl.sendQuery(QueryExecutorImpl.java:1097)
at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:255)


Any comment higly appreciated



-- 
Silvio Brandani


disclaimer-sdb
Utilizziamo i dati personali che la riguardano esclusivamente per nostre finalità amministrative e contabili, anche quando li comunichiamo a terzi. Informazioni dettagliate, anche in ordine al Suo diritto di accesso e agli altri Suoi diritti, sono riportate alla pagina http://www.savinodelbene.com/privacy.html
Se avete ricevuto questo messaggio per errore Vi preghiamo di ritornarlo al mittente eliminandolo assieme agli eventuali allegati, ai sensi art. 616 codice penale http://www.savinodelbene.com/privacy/codice_penale_616.html
L'Azienda non si assume alcuna responsabilità giuridica qualora pervengano da questo indirizzo messaggi estranei all'attività lavorativa o contrari a norme.


--------------040204090308040703020105--