Regarding insertion of Unicode String in Postgres using jdbc.

Поиск
Список
Период
Сортировка
От Mamta Singh
Тема Regarding insertion of Unicode String in Postgres using jdbc.
Дата
Msg-id 20040830094706.18624.qmail@web8505.mail.in.yahoo.com
обсуждение исходный текст
Ответы Re: Regarding insertion of Unicode String in Postgres using  (Christopher Kings-Lynne <chriskl@familyhealth.com.au>)
Список pgsql-hackers
Hi,

I have created a table

create table temp1(a varchar(200));

and then I tried running the following code.

String msg1 = "\u0000mamta";
PreparedStatement preparedStmt =
pgConnection.prepareStatement("insert into mamtanow
values(?)");

preparedStmt.clearParameters();
preparedStmt.setString(1, msg1);
preparedStmt.executeUpdate();        
preparedStmt.close();

And it throws an Exception saying "\0 not allowd"

what should I do ? How should I insert unicode string
using jdbc only ?

Thanks and Regards,
Mamta

=====
Mamta Singh

"Technical Skill is the mastery of complexity, while Creativity is the mastery of simplicity....."

________________________________________________________________________
Yahoo! India Matrimony: Find your life partner online
Go to: http://yahoo.shaadi.com/india-matrimony


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

Предыдущее
От: Mamta Singh
Дата:
Сообщение: Regarding the UnicodeString.
Следующее
От: Fabien COELHO
Дата:
Сообщение: Re: [PATCHES] ALTER SCHEMA ... SET TABLESPACE