Hi!

This ties into a bigger question of how to return error/information from 
callers. Stewart and I spent a bit of time talking about this at the conference 
(though with no conclusion). The basic idea is to return an object that is 
minimal copy upon return (aka... no memory allocation and the hit cost is low). 

I wouldn't get wrapped up too much in the current design of it. 

Cheers,
        -Brian

On Apr 23, 2010, at 8:09 AM, Jay Pipes wrote:

> Cursor::InsertRecordResult result= cursor->insertRecord(table[0]);
> 
> if (result.first == 0) /* successful result */
> {
>  inserted_rows= result.second.first;
>  replaced_rows= result.second.second;
> }
> 
> Thoughts?


_______________________________________________
Mailing list: https://launchpad.net/~drizzle-discuss
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~drizzle-discuss
More help   : https://help.launchpad.net/ListHelp

Reply via email to