hi everyone, i use webpy with mysql,when i use multiple_insert,i found it 
returns inserted ids is not correct.

because in mysql ,webpy use last_insert_id() get last insert id,but if you 
insert multiple rows, last_insert_id() just return first row id,not the 
last! not the inserted id list.
i think this mysql document explain it.
http://dev.mysql.com/doc/refman/5.0/en/information-functions.html#function_last-insert-id

i never try other database ,so i do not know oracle or postgres will have 
different behavious in getting multiple inserted ids.


-- 
You received this message because you are subscribed to the Google Groups 
"web.py" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/webpy.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to