I am moving the database from postgres to postgres-xl.
The client driver the erlang
's epgsql
:
The table schema is as follows:
CREATE TABLE test_table1 (id integer primary key, value text);
test data:
INSERT INTO test_table1 (id, value) VALUES (3001, '3001 number');
For sql query, The extended query protocol is used, parsing the sql command in the client side.
But the returned data is as follows:
<<0,0,0,4,51,48,48,49,0,0,0,11,51,48,48,49,32,110,117,109,98,101,114>>
for integer 3001
, The data is encoded as ascii coded by 51,48,48,49
, it is not expected as <<0,0,0b,b9>>
. How to control it by client-side parameter or by server-side parameter?