Definitely not, out parameters are part of the parameter set, not part of
the result set.

When we implemented using SOCI for ODBC for stored procedures (which was
supposed to be not supported) we did not find any support for output
parameters and we handled these with ODBC "direct". In our library we used
vector<char> as the type for receiving strings.

The ideal way would be use() variations that take (non-const) pointers.


On Wed, Jun 20, 2012 at 11:45 AM, Vadim Zeitlin <vz-s...@zeitlins.org>wrote:

> On Tue, 19 Jun 2012 22:44:10 -0700 Stephen Hutton <
> shut...@featurecomplete.com> wrote:
>
> SH> >  Can use() parameters actually be modified? I hope not but I've been
> SH> > surprised by SOCI before...
> SH>
> SH> If recall correctly, this is for binding to stored procedure out
> SH> parameters.
>
>  But shouldn't into() be used for "out" parameters? Perhaps this could be
> useful for in/out parameters but I don't even know if such thing is
> supported by SOCI -- is it?
>
>  ODBC backend definitely doesn't support this and use SQL_PARAM_INPUT for
> use() input parameters so at least for it this convert_from_base() call is
> perfectly useless (and not always harmless).
>
>  I didn't examine all the other backends yet but from a quick look at them
> it doesn't look like they support input/output parameters neither. Does
> anybody know more about this?
>
>  Thanks,
> VZ
>
>
> ------------------------------------------------------------------------------
> 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
> Soci-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/soci-users
>
>
------------------------------------------------------------------------------
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
Soci-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/soci-users

Reply via email to