Skip to content

Commit

Permalink
Close web2py#316
Browse files Browse the repository at this point in the history
  • Loading branch information
gi0baro committed Apr 21, 2016
1 parent d59b588 commit de29494
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions pydal/dialects/sqlite.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,15 @@ def regexp(self, first, second):
return '(%s REGEXP %s)' % (
self.expand(first), self.expand(second, 'string'))

def select(self, fields, tables, where=None, groupby=None, having=None,
orderby=None, limitby=None, distinct=False, for_update=False):
if distinct and distinct is not True:
raise SyntaxError(
'DISTINCT ON is not supported by SQLite')
return super(SQLDialect, self).select(
fields, tables, where, groupby, having, orderby, limitby, distinct,
for_update)

def truncate(self, table, mode=''):
tablename = table._tablename
return [
Expand Down

0 comments on commit de29494

Please # to comment.