db().select(....) no longer ignores common_filters, issue 893
This commit is contained in:
@@ -1 +1 @@
|
|||||||
Version 2.00.0 (2012-07-15 17:32:22) dev
|
Version 2.00.0 (2012-07-15 18:06:45) dev
|
||||||
|
|||||||
@@ -8310,6 +8310,8 @@ class Set(object):
|
|||||||
return self.db._adapter.count(self.query,distinct)
|
return self.db._adapter.count(self.query,distinct)
|
||||||
|
|
||||||
def select(self, *fields, **attributes):
|
def select(self, *fields, **attributes):
|
||||||
|
if self.query is None:# and fields[0]._table._common_filter != None:
|
||||||
|
return self(fields[0]._table).select(*fields,**attributes)
|
||||||
adapter = self.db._adapter
|
adapter = self.db._adapter
|
||||||
fields = adapter.expand_all(fields, adapter.tables(self.query))
|
fields = adapter.expand_all(fields, adapter.tables(self.query))
|
||||||
return adapter.select(self.query,fields,attributes)
|
return adapter.select(self.query,fields,attributes)
|
||||||
|
|||||||
Reference in New Issue
Block a user