More generally, convert_from_base() is a hook declared in standard_use_type
as well as vector_use_type. Since it is not supposed to be called, and it
is confusing (from a new comer's perspective, i.e. me), I'd recommend
removing them.
On Wednesday, October 31, 2012, Candy Chiu wrote:
> Vadim removed convert_from_base() from standard_use_type. However, it
> still exists in use_type<values>. It is causing an issue in insert queries
> that also return the auto increment id into the domain.
>
> Student t = createStudent();
> statement st = (sql.prepare
> << "insert into Student (firstname, email, age, groupId, weight) "
> << " OUTPUT inserted.Id "
> << "values (:firstname, :email, :age, :groupId, :weight) "
> , into(student.Id),
> , use(student));
>
> The convert_from_base() in post_use overwrites the data returned into
> student.Id.
>
> On Wednesday, October 31, 2012, Mateusz Loskot wrote:
>
>> On 31 October 2012 00:58, Candy Chiu <[email protected]> wrote:
>> > I see, thanks. I will update.
>>
>> Welcome, but be careful if you aim to update as there
>> are a few 'new' issues discovered, I'm afraid:
>>
>> https://github.com/SOCI/soci/issues?state=open
>>
>> Best regards,
>> --
>> Mateusz Loskot, http://mateusz.loskot.net
>>
>>
>> ------------------------------------------------------------------------------
>> Everyone hates slow websites. So do we.
>> Make your web apps faster with AppDynamics
>> Download AppDynamics Lite for free today:
>> http://p.sf.net/sfu/appdyn_sfd2d_oct
>> _______________________________________________
>> Soci-users mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/soci-users
>>
>
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
_______________________________________________
Soci-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/soci-users