summaryrefslogtreecommitdiff
path: root/qutebrowser/misc/sql.py
diff options
context:
space:
mode:
Diffstat (limited to 'qutebrowser/misc/sql.py')
-rw-r--r--qutebrowser/misc/sql.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/qutebrowser/misc/sql.py b/qutebrowser/misc/sql.py
index 4b12d8134..39208819d 100644
--- a/qutebrowser/misc/sql.py
+++ b/qutebrowser/misc/sql.py
@@ -119,9 +119,9 @@ def raise_sqlite_error(msg, error):
# If the query we built was too long
too_long_err = (
error_code == SqliteErrorCode.ERROR and
- driver_text == "Unable to execute statement" and
(database_text.startswith("Expression tree is too large") or
- database_text == "too many SQL variables"))
+ database_text in ["too many SQL variables",
+ "LIKE or GLOB pattern too complex"]))
if error_code in known_errors or qtbug_70506 or too_long_err:
raise KnownError(msg, error)