RE: [JDBC] string conversion patch

Поиск
Список
Период
Сортировка
От Peter Mount
Тема RE: [JDBC] string conversion patch
Дата
Msg-id 1B3D5E532D18D311861A00600865478CF1B576@exchange1.nt.maidstone.gov.uk
обсуждение исходный текст
Ответ на [JDBC] string conversion patch  (wrobell <wrobell@posexperts.com.pl>)
Список pgsql-patches
Applied...

--
Peter Mount
Enterprise Support Officer, Maidstone Borough Council
Email: petermount@maidstone.gov.uk
WWW: http://www.maidstone.gov.uk
All views expressed within this email are not the views of Maidstone Borough
Council


-----Original Message-----
From: wrobell [mailto:wrobell@posexperts.com.pl]
Sent: Friday, November 17, 2000 6:02 PM
To: pgsql-patches@postgresql.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@posexperts.com.pl>


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

В списке pgsql-patches по дате отправления:

Предыдущее
От: webmaster@cgiscriptsonline.com
Дата:
Сообщение: New Search Engine Requires Your Input.
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: PostgreSQL virtual hosting support