PGSQL insert data to a oid column using SOCI

Поиск
Список
Период
Сортировка
От Chamath Sajeewa
Тема PGSQL insert data to a oid column using SOCI
Дата
Msg-id CACpofeiM9ZEWRLApx=hTV0KkpJFqNgckYOn2iCB-UbNMmk_T+g@mail.gmail.com
обсуждение исходный текст
Ответы RE: PGSQL insert data to a oid column using SOCI
Список pgsql-novice
Hi All,
I am using c++ with soci to insert oid values to a table.

Table structure is as follows,

CREATE TABLE test_table (

       key varchar(200NULL,

       value oid NULL

);


Value is a large xml file given as std::string.
What is the correct way to insert oid data using binding variables.
Used code snippet is given below which is not working.

std::string key = "test key";
std::string value = "test xml";
std::string sql = "insert into test_table(key,value) values (:KEY, :VALUE)
soci:use(key);
soci:use(value);

soci::statement st(session);
st.prepare(sql)
st.execute()

Thanks!



--
G.K.M.C Sajeewa

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

Предыдущее
От: Stephen Frost
Дата:
Сообщение: Re: Will crashed transaction be rollbacked?
Следующее
От: David Raymond
Дата:
Сообщение: RE: PGSQL insert data to a oid column using SOCI