diff options
author | Marko Kreen | 2010-12-06 12:17:19 +0000 |
---|---|---|
committer | Marko Kreen | 2010-12-06 12:17:19 +0000 |
commit | fab09a4aeaf8e1cb560d831147fc1cb9cbca7d1e (patch) | |
tree | 2c21f35909bebe8f17c52b4193fe3133e809b0e0 | |
parent | f4c42f009a0bd50a31170b5b8b1a95c2c56af04a (diff) |
quote_ident: special-case empty string
-rw-r--r-- | python/skytools/quoting.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/python/skytools/quoting.py b/python/skytools/quoting.py index d04394cb..1a144867 100644 --- a/python/skytools/quoting.py +++ b/python/skytools/quoting.py @@ -76,6 +76,8 @@ def quote_ident(s): if _ident_bad.search(s) or s in _ident_kwmap: s = '"%s"' % s.replace('"', '""') + elif not s: + return '""' return s def quote_fqident(s): |