Re: Fix for receiving empty query errors. - Mailing list pgsql-jdbc
From | Barry Lind |
---|---|
Subject | Re: Fix for receiving empty query errors. |
Date | |
Msg-id | 3F6819A7.1000405@xythos.com Whole thread Raw |
In response to | Fix for receiving empty query errors. (Kim Ho <kho@redhat.com>) |
List | 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@postgresql.org so that your > message can get through to the mailing list cleanly
pgsql-jdbc by date: