Skip to content

Commit de29494

Browse files
committed
Close web2py#316
1 parent d59b588 commit de29494

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

pydal/dialects/sqlite.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,15 @@ def regexp(self, first, second):
2828
return '(%s REGEXP %s)' % (
2929
self.expand(first), self.expand(second, 'string'))
3030

31+
def select(self, fields, tables, where=None, groupby=None, having=None,
32+
orderby=None, limitby=None, distinct=False, for_update=False):
33+
if distinct and distinct is not True:
34+
raise SyntaxError(
35+
'DISTINCT ON is not supported by SQLite')
36+
return super(SQLDialect, self).select(
37+
fields, tables, where, groupby, having, orderby, limitby, distinct,
38+
for_update)
39+
3140
def truncate(self, table, mode=''):
3241
tablename = table._tablename
3342
return [

0 commit comments

Comments
 (0)