>
> select name, cast (current_date || ' ' || value as timestamp) from ...
>

This cleans up the c++ code but isn't the performance loss just moved to the
postgresql server side ? I can be wrong but I'm guessing this is going to
concatenate each value as a string and then parse it as a timestamp.

Also you mentioned dynamic binding. I tried using a
soci::rowset<boost::tuple<std::string, std::tm> > but it raised a bad_cast
exception at runtime (with the concatenation-only version obviously).

-- 
François Hervieux
[email protected]
------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
Soci-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/soci-users

Reply via email to