error with unicode thing??

Поиск
Список
Период
Сортировка
От chinni
Тема error with unicode thing??
Дата
Msg-id e6f02b14040830030643a1b4a6@mail.gmail.com
обсуждение исходный текст
Ответы Re: error with unicode thing??  (Oliver Jowett <oliver@opencloud.com>)
Список pgsql-hackers
Hi all,

I have created a table
create table temp1(a varchar(200));

and then I tried running the following code.

String msg1 = "\u0000abcd";
PreparedStatement preparedStmt =pgConnection.prepareStatement("insert
into temp1 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 ?


-- 
"Stand for something, or you will fall for nothing."


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

Предыдущее
От: Fabien COELHO
Дата:
Сообщение: Re: [PATCHES] ALTER SCHEMA ... SET TABLESPACE
Следующее
От: Oliver Jowett
Дата:
Сообщение: Re: error with unicode thing??