fixed this issue http://stackoverflow.com/questions/20363043/web2py-dal-left-join-and-operator-precedence
This commit is contained in:
@@ -2714,6 +2714,10 @@ class MySQLAdapter(BaseAdapter):
|
||||
self.execute('select last_insert_id();')
|
||||
return int(self.cursor.fetchone()[0])
|
||||
|
||||
def select_limitby(self, sql_s, sql_f, sql_t, sql_w, sql_o, limitby):
|
||||
return BaseAdapter.select_limitby(
|
||||
self, sql_s, sql_f, '(%s)' % sql_t, sql_w, sql_o, limitby)
|
||||
|
||||
|
||||
class PostgreSQLAdapter(BaseAdapter):
|
||||
drivers = ('psycopg2','pg8000')
|
||||
|
||||
Reference in New Issue
Block a user