Skip site navigation (1) Skip section navigation (2)

pgsql/src/interfaces/jdbc/org/postgresql Conne ...

From: Bruce Momjian - CVS <momjian(at)hub(dot)org>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql/src/interfaces/jdbc/org/postgresql Conne ...
Date: 2001-07-15 04:21:27
Message-ID: 200107150421.f6F4LRt74883@hub.org (view raw or flat)
Thread:
Lists: pgsql-committers
CVSROOT:	/home/projects/pgsql/cvsroot
Module name:	pgsql
Changes by:	momjian(at)hub(dot)org	01/07/15 00:21:26

Modified files:
	src/interfaces/jdbc/org/postgresql: Connection.java 
	                                    PG_Stream.java 
	src/interfaces/jdbc/org/postgresql/fastpath: Fastpath.java 

Log message:
	The attached patch fixes problems with the JDBC driver handling long
	null terminated strings.  The FE/BE protocol sends in some cases null
	terminated strings to the client.  The docs for the FE/BE protocol state
	that there is no limit on the size of a null terminated string sent to
	the client and a client should be coded using an expanding buffer to
	deal with large strings.  The old code did not do this and gave an error
	if a null terminated string was greater than either 4 or 8K.  It appears
	that with the advent of TOAST very long SQL statements are becoming more
	common, and apparently some error messages from the backend include the
	SQL statement thus easily exceeding the 8K limit in the old code.
	
	In fixing I also cleaned up some calls in the JDBC fastpath code that
	were not doing character set conversion under multibyte, and removed
	some methods that were no longer needed.  I also removed a potential
	threading problem with a shared variable that was being used in
	Connection.java.
	
	Thanks to Steve Wampler for discovering the problem and sending the
	initial diffs that were the basis of this patch.
	
	thanks,
	--Barry


pgsql-committers by date

Next:From: Tatsuo IshiiDate: 2001-07-15 11:07:37
Subject: pgsql/src backend/utils/mb/mbutils.c backend/u ...
Previous:From: Tom LaneDate: 2001-07-13 22:56:00
Subject: pgsql/src backend/commands/Makefile backend/co ...

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group