Skip to content
Snippets Groups Projects
Commit 976cb5aa authored by Erik Johnston's avatar Erik Johnston
Browse files

Throw if unrecognized DB type

parent b9acef53
No related branches found
No related tags found
No related merge requests found
...@@ -419,5 +419,8 @@ def _parse_query(database_engine, search_term): ...@@ -419,5 +419,8 @@ def _parse_query(database_engine, search_term):
if isinstance(database_engine, PostgresEngine): if isinstance(database_engine, PostgresEngine):
return " & ".join(result + ":*" for result in results) return " & ".join(result + ":*" for result in results)
else: elif isinstance(database_engine, Sqlite3Engine):
return " & ".join(result + "*" for result in results) return " & ".join(result + "*" for result in results)
else:
# This should be unreachable.
raise Exception("Unrecognized database engine")
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment