Re: [soci-users] postgres enum problem

2013-01-07 Thread Philipp Kraus
Am 07.01.2013 um 20:33 schrieb Mateusz Loskot: > On 29 December 2012 14:50, Philipp Kraus wrote: >> >> I use Soci for connection a PG database and a table has got an enum type.I >> try to create this select: >> select * from table where enumfield = :val and val is used by soci::use with >> a

Re: [soci-users] postgres enum problem

2013-01-07 Thread Mateusz Loskot
On 29 December 2012 14:50, Philipp Kraus wrote: > > I use Soci for connection a PG database and a table has got an enum type.I > try to create this select: > select * from table where enumfield = :val and val is used by soci::use with > a std::string variable. > > Soci throws the exception "inva

[soci-users] postgres enum problem

2012-12-29 Thread Philipp Kraus
Hello, I use Soci for connection a PG database and a table has got an enum type.I try to create this select: select * from table where enumfield = :val and val is used by soci::use with a std::string variable. Soci throws the exception "invalid input value for enum". So how can I create a sele