Hi,

I am trying to get gata from a blob with postgresql through SOCI. It worked 
perfectly with soci 2.2 but it returns 'Cannot convert data' with soci 3.0. 
Note that I have the same error with the test programs included into SOCI. 
Example of code is:

session sql ( soci::postgresql, "dbname=zzzzz user=yyyyy password=xxxxx" );
sql <<"create table soci_test ( id integer, img oid)";
sql << "insert into soci_test(id, img) values(7, lo_creat(-1))";
sql.begin();
{
    blob b(sql);
    sql << "select img from soci_test where id=7", into(b);
}

This code works with soci 2.2 and not soci 3.0.
I compile on linux (kernel 2.6.31 x86_64) with gcc 4.3 or 4.4 and use postgreql 
8.3.1

I compiled the head of the git and obtained the the same failure at test2().

I didn't find any reference to this problem in the archives nor on the web so I 
may 
do something wrong but I can't see what.

Regards.

Herve Le Borgne


------------------------------------------------------------------------------
Return on Information:
Google Enterprise Search pays you back
Get the facts.
http://p.sf.net/sfu/google-dev2dev
_______________________________________________
Soci-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/soci-users

Reply via email to