Skip to content
Permalink
Browse files

replaced 'LIMIT 0' by 'WHERE 0=1' (fixes #13731)

  • Loading branch information
SebDieBln committed Nov 17, 2015
1 parent f184ec9 commit e04d5e4d702254294a3fdd7fe3d318b7d7d703ee
@@ -3,10 +3,6 @@
* SQL Window - "Retrieve columns" don't work => problem in
dlg_sql_window.py (not enough abstraction for connectors).

* SQL Window - Can't retrieve column: dlg_sql_window.py launch an
invalid request for Oracle (no LIMIT operator in Oracle). Should
patch dlg_sql_window.py to use a connector method to grab columns.

* Query-builder - Add date functions menu (needs to change the main
code of query builder).

@@ -287,7 +287,7 @@ def fillColumnCombos(self):
cols = []
quotedCols = []
connector = self.db.connector
sql = u"SELECT * FROM (%s\n) AS %s LIMIT 0" % (unicode(query), connector.quoteId(alias))
sql = u"SELECT * FROM (%s\n) AS %s WHERE 0=1" % (unicode(query), connector.quoteId(alias))

c = None
try:

0 comments on commit e04d5e4

Please sign in to comment.
You can’t perform that action at this time.