From: | Barry Lind <blind(at)xythos(dot)com> |
---|---|
To: | Kim Ho <kho(at)redhat(dot)com> |
Cc: | pgsql-jdbc-list <pgsql-jdbc(at)postgresql(dot)org> |
Subject: | Re: Fix for receiving empty query errors. |
Date: | 2003-09-17 08:21:59 |
Message-ID: | 3F6819A7.1000405@xythos.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-jdbc |
Patch applied.
thanks,
--Barry
Kim Ho wrote:
> Changed to receive the 4 bytes.
>
> Cheers,
>
> Kim
>
>
> ------------------------------------------------------------------------
>
> ? temp.diff
> Index: org/postgresql/core/QueryExecutor.java
> ===================================================================
> RCS file: /projects/cvsroot/pgsql-server/src/interfaces/jdbc/org/postgresql/core/QueryExecutor.java,v
> retrieving revision 1.22
> diff -c -p -r1.22 QueryExecutor.java
> *** org/postgresql/core/QueryExecutor.java 29 May 2003 03:21:32 -0000 1.22
> --- org/postgresql/core/QueryExecutor.java 21 Jul 2003 17:11:17 -0000
> *************** public class QueryExecutor
> *** 156,162 ****
> // keep processing
> break;
> case 'I': // Empty Query
> ! int t = pgStream.ReceiveChar();
> break;
> case 'N': // Error Notification
> int l_nlen = pgStream.ReceiveIntegerR(4);
> --- 156,162 ----
> // keep processing
> break;
> case 'I': // Empty Query
> ! int t = pgStream.ReceiveIntegerR(4);
> break;
> case 'N': // Error Notification
> int l_nlen = pgStream.ReceiveIntegerR(4);
> *************** public class QueryExecutor
> *** 260,266 ****
> // keep processing
> break;
> case 'I': // Empty Query
> ! int t = pgStream.ReceiveChar();
> break;
> case 'N': // Error Notification
> statement.addWarning(pgStream.ReceiveString(connection.getEncoding()));
> --- 260,266 ----
> // keep processing
> break;
> case 'I': // Empty Query
> ! int t = pgStream.ReceiveIntegerR(4);
> break;
> case 'N': // Error Notification
> statement.addWarning(pgStream.ReceiveString(connection.getEncoding()));
>
>
> ------------------------------------------------------------------------
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 3: if posting/reading through Usenet, please send an appropriate
> subscribe-nomail command to majordomo(at)postgresql(dot)org so that your
> message can get through to the mailing list cleanly
From | Date | Subject | |
---|---|---|---|
Next Message | Luca Moscatelli | 2003-09-17 09:02:24 | Re: Connection refused. HELP ME!!!! |
Previous Message | Barry Lind | 2003-09-17 07:00:55 | Re: ToBoolean method return correct Boolean values as per |