datamapper / do

DataObjects
147 stars 74 forks source link

MySQL bigint primary keys #35

Closed cbandy closed 12 years ago

cbandy commented 12 years ago

mysql_insert_id() returns an unsigned 64-bit integer, but INT2NUM() does not handle these correctly.

I added tests in a second commit because I wasn't sure of their quality or how they should fit into the suite. Should all drivers support SQL:2003 bigint?

affected_rows on the same line needs this same treatment but is beyond the scope of this PR.