Hi all,

i'm trying to insert an vector of integers into a postgresql database, 
into a field of type array.

I do have a working approach for doing this:
- Generate the SQL field list in the format "(array[1], array[2], ...")
- Generate the placeholders (:a1, :a2, ...)
- statement::exchange each element of the vector separately

I was wondering if there is a built-in (or more simple way) of inserting 
array types via SOCI?

Thanks!

Niko Weh


------------------------------------------------------------------------------
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/
_______________________________________________
Soci-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/soci-users

Reply via email to