Re: Fix for receiving empty query errors.

Поиск
Список
Период
Сортировка
От Barry Lind
Тема Re: Fix for receiving empty query errors.
Дата
Msg-id 3F6819A7.1000405@xythos.com
обсуждение исходный текст
Ответ на Fix for receiving empty query errors.  (Kim Ho <kho@redhat.com>)
Список 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 по дате отправления:

Предыдущее
От: Sergio Ramos
Дата:
Сообщение: Connection refused. HELP ME!!!!
Следующее
От: Atul Arora
Дата:
Сообщение: Error Codes