Hi,
I'm using postgresql on current project.
And the db table contains type boolean.
Unfortunately there is no result::get<bool> and result::get<int> throws
cppdb::bad_value_cast
Is the only way fetching it as string and manually converting it to bool?
Petr
From: Artyom B. <art...@ya...> - 2012-07-04 04:00:18
Currently yes.
There is an open feature request to support boolean in CppDB.
Artyom Beilis
--------------
CppCMS - C++ Web Framework: http://cppcms.com/
CppDB - C++ SQL Connectivity: http://cppcms.com/sql/cppdb/
>________________________________
> From: "ele...@ex..." <ele...@ex...>
>To: cpp...@li...
>Sent: Wednesday, July 4, 2012 4:19 AM
>Subject: [Cppcms-users] cppdb: fetching boolean type
>
>Hi,
>
>I'm using postgresql on current project.
>
>And the db table contains type boolean.
>
>Unfortunately there is no result::get<bool> and result::get<int> throws
>cppdb::bad_value_cast
>
>Is the only way fetching it as string and manually converting it to bool?
>
>Petr
>
>
>------------------------------------------------------------------------------
>Live Security Virtual Conference
>Exclusive live event will cover all the ways today's security and
>threat landscape has changed and how IT managers can respond. Discussions
>will include endpoint security, mobile security and the latest in malware
>threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
>_______________________________________________
>Cppcms-users mailing list
>Cpp...@li...
>https://lists.sourceforge.net/lists/listinfo/cppcms-users
>
>
>