Skip to content

Commit

Permalink
fixed web2py bug Error in DB2 for system i Adapter when inserting rec…
Browse files Browse the repository at this point in the history
…ord into table defined in specific library #1034
  • Loading branch information
mdipierro committed Dec 4, 2015
1 parent c7d3d38 commit 3131f83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pydal/adapters/db2.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ def execute(self,command,placeholders=None):
return self.log_execute(command)

def lastrowid(self,table):
self.execute('SELECT DISTINCT IDENTITY_VAL_LOCAL() FROM %s;' % table)
self.execute('SELECT DISTINCT IDENTITY_VAL_LOCAL() FROM %s;' % table.sqlsafe)
return long(self.cursor.fetchone()[0])

def rowslice(self,rows,minimum=0,maximum=None):
Expand Down

0 comments on commit 3131f83

Please sign in to comment.