Fix infinite loop when executing some SQL statements with limit part · feng2010java/sqlitebrowser@044907f · GitHub
Skip to content

Commit 044907f

Browse files
committed
Fix infinite loop when executing some SQL statements with limit part
Issue sqlitebrowser#31 was about some problems in the SqliteTableModel which caused an endless loop in the Execute SQL tab when executing statements with a LIMIT part that didn't end with a semicolon. This was fixed in 0362d61 but the regular expression in this commit only worked for statements like 'SELECT * FROM t LIMIT 0,10' and didn't detect a statement like 'SELECT * FROM t LIMIT 10' where there is only one number after 'limit', so the bug still ocurred for those commands. This is fixed by this commit.
1 parent 190deca commit 044907f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎src/sqlitetablemodel.cpp‎

Lines changed: 1 addition & 1 deletion

0 commit comments

Comments
 (0)