fixed this issue http://stackoverflow.com/questions/20363043/web2py-dal-left-join-and-operator-precedence
This commit is contained in:
@@ -1 +1 @@
|
|||||||
Version 2.8.2-stable+timestamp.2013.12.08.08.24.55
|
Version 2.8.2-stable+timestamp.2013.12.08.09.32.29
|
||||||
|
|||||||
@@ -2714,6 +2714,10 @@ class MySQLAdapter(BaseAdapter):
|
|||||||
self.execute('select last_insert_id();')
|
self.execute('select last_insert_id();')
|
||||||
return int(self.cursor.fetchone()[0])
|
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):
|
class PostgreSQLAdapter(BaseAdapter):
|
||||||
drivers = ('psycopg2','pg8000')
|
drivers = ('psycopg2','pg8000')
|
||||||
|
|||||||
Reference in New Issue
Block a user