Re: Fix for receiving empty query errors.

Поиск
Список
Период
Сортировка
Искать
От
Barry Lind
Тема
Re: Fix for receiving empty query errors.
Дата
Msg-id
3F6819A7.1000405@xythos.com
Ответ на
Список
Дерево обсуждения
Re: Detecting 'socket errors' - closing the Connection object Fernando Nasser <fnasser@redhat.com>
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
Дата:
От: Atul Arora
Дата:
Сообщение: Error Codes
FAQ