hebrew and postgre

From: "Shay" <shayb52(at)bezeqint(dot)net>
To: <pgsql-jdbc(at)postgresql(dot)org>
Subject: hebrew and postgre
Date: 2002-02-26 15:00:12
Message-ID: 01cf01c1bed6$4d127aa0$8900000a@shaybhome
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

hello,

i am trying to write and read from and to postgre,
i am able to do this through PG Explorer, but when i try this code through
JDBC and Jboss it failes:

java.sql.Statement st = connection.createStatement();
java.sql.ResultSet rs = st.executeQuery("SELECT * FROM users where
name='hebrew letters here'");
while(rs.next()) {
System.out.print("Column 1 returned ");
System.out.println(rs.getString("name"));
}
rs.close();
st.close();

for some reason the result set is empty altough the PG Explorer can find it

can you help?

thanks ahead,
Shay.

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message Peter V. Cooper 2002-02-26 15:03:05 Re: Strange Error
Previous Message Alexey Slynko 2002-02-26 14:54:09 User-defined types