Skip to content

armgit / txtai

Public Imported from GitHub
0

💡 All-in-one AI framework for semantic search, LLM orchestration and language model workflows

Update comment

davidmezzettic402b129d9fe
diff --git a/src/python/txtai/database/sql/base.py b/src/python/txtai/database/sql/base.py
index 439f18b1..0fd8e75e 100644
--- a/src/python/txtai/database/sql/base.py
+++ b/src/python/txtai/database/sql/base.py
@@ -94,7 +94,7 @@ class SQL:
True if this is a valid SQL query, False otherwise
"""
- # Reduce query to a single line, lower-cased and stripped of leading/trailing whitespace
+ # Reduce query to a lower-cased single line stripped of leading/trailing whitespace
query = query.lower().strip(";").replace("\n", " ").replace("\t", " ").strip()
# Detect if this is a valid txtai SQL statement