You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The current logic of catching LIMIT statement has an assumption that it will be always at the very end of a sql query. Due to this, the table content preview is broken on sqlite, since LIMIT 100 OFFSET 0 will be attached (from SqlAlchemy library). It results an extra LIMIT 1000000 being added and cause the fatal error.
limit_pattern=re.compile(r""" (?ix) # case insensitive, verbose \s+ # whitespace LIMIT\s+(\d+) # LIMIT $ROWS (\s|;|.)*$ # remove the rest """)
However, still, it cannot correctly capture all the cases.
Any suggestion is welcome!
The text was updated successfully, but these errors were encountered:
conglei
changed the title
LIMIT statement is not correctly caught by current regular expression
LIMIT statement is not correctly caught by the current regular expression
Jun 22, 2018
The current logic of catching
LIMIT
statement has an assumption that it will be always at the very end of a sql query. Due to this, the table content preview is broken on sqlite, sinceLIMIT 100 OFFSET 0
will be attached (from SqlAlchemy library). It results an extraLIMIT 1000000
being added and cause the fatal error.The current RE:
The possible solution:
However, still, it cannot correctly capture all the cases.
Any suggestion is welcome!
The text was updated successfully, but these errors were encountered: