Merge pull request #270 from niphlod/fix/dal_reference
fix for references, DAL tests pass also on MSSQL now
This commit is contained in:
+1
-1
@@ -1261,7 +1261,7 @@ class BaseAdapter(ConnectionPool):
|
||||
return dict([(k[0].name, k[1]) for k in fields \
|
||||
if k[0].name in table._primarykey])
|
||||
id = self.lastrowid(table)
|
||||
if not isinstance(id,int):
|
||||
if not isinstance(id, (int, long)):
|
||||
return id
|
||||
rid = Reference(id)
|
||||
(rid._table, rid._record) = (table, None)
|
||||
|
||||
Reference in New Issue
Block a user