summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
Diffstat (limited to 'python')
-rw-r--r--python/skytools/quoting.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/skytools/quoting.py b/python/skytools/quoting.py
index 9d281254..ce860040 100644
--- a/python/skytools/quoting.py
+++ b/python/skytools/quoting.py
@@ -66,7 +66,7 @@ _ident_kwmap = {
"errors":1,
}
-_ident_bad = re.compile(r"[^a-z0-9_]")
+_ident_bad = re.compile(r"[^a-z0-9_]|^[0-9]")
def quote_ident(s):
"""Quote SQL identifier.