summaryrefslogtreecommitdiff
path: root/python/skytools/quoting.py
diff options
context:
space:
mode:
authorMarko Kreen2009-04-09 09:25:09 +0000
committerMarko Kreen2009-04-13 13:11:55 +0000
commit48f8ba60de975b17022096814eb8d8173eccc07a (patch)
tree2a7921209aa91ee1a3ab2f0fb0fab0aa86bef788 /python/skytools/quoting.py
parent3e66365635e9d58e1902b17adfaa7bbf7bc3ba7d (diff)
Import fixes from 2.1-stable.
- make skytools pkg depend on rsync - missing headers in Postgres modules - quoting for numeric ident
Diffstat (limited to 'python/skytools/quoting.py')
-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.