Hi all. Does anyone has a good reason to NOT change this line
https://github.com/web2py/web2py/blob/master/gluon/dal.py#L1255to
if not isinstance(id,(int, long))
?
For some obscure reason, when the datatype for inserts and such got "long"s all the way, this remained untouched....
I'm
asking 'cause I'm testing the DAL with MSSQL and this makes them fail,
cause the last_insert_id in MSSQL is always returned as a "long", but
when you do
id = db.person.insert(name='whatever')
you just get back the "long" without the reference attached to make this work
id.name == 'whatever'