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

RE: [JDBC] string conversion patch

From: Peter Mount <petermount(at)maidstone(dot)gov(dot)uk>
To: "'wrobell'" <wrobell(at)posexperts(dot)com(dot)pl>, pgsql-patches(at)postgresql(dot)org
Subject: RE: [JDBC] string conversion patch
Date: 2000-11-20 08:12:23
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-patches

Peter Mount
Enterprise Support Officer, Maidstone Borough Council
Email: petermount(at)maidstone(dot)gov(dot)uk
All views expressed within this email are not the views of Maidstone Borough

-----Original Message-----
From: wrobell [mailto:wrobell(at)posexperts(dot)com(dot)pl]
Sent: Friday, November 17, 2000 6:02 PM
To: pgsql-patches(at)postgresql(dot)org
Subject: [PATCHES] [JDBC] string conversion patch

This patch should be applied against current pgsql cvs tree
in src/interfaces directory. Current jdbc version saves
strings in client encoding, i.e. when software runs
on Windows then strings are saved in CP1250 not in Latin2
as it should be (when database encoding is Latin2).

The patch fixes the problem - strings are stored in database encoding.

  wrobell <wrobell(at)posexperts(dot)com(dot)pl>

-------- cut here ------------
diff -Nur jdbc.old/org/postgresql/
--- jdbc.old/org/postgresql/	Thu Nov 16 18:25:52 2000
+++ jdbc/org/postgresql/	Fri Nov 17 18:26:01 2000
@@ -363,8 +363,7 @@
-		    buf = sql.getBytes();
-		    pg_stream.Send(sql.getBytes());
+		    pg_stream.Send(buf);
 		} catch (IOException e) {
-------- cut here ------------

pgsql-patches by date

Next:From: wrobellDate: 2000-11-20 11:43:01
Subject: [JDBC] timestamp parsing
Previous:From: webmasterDate: 2000-11-18 07:32:33
Subject: New Search Engine Requires Your Input.

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