summaryrefslogtreecommitdiff
path: root/python/skytools
diff options
context:
space:
mode:
Diffstat (limited to 'python/skytools')
-rw-r--r--python/skytools/quoting.py2
-rw-r--r--python/skytools/sqltools.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/python/skytools/quoting.py b/python/skytools/quoting.py
index 51e91905..e80d5457 100644
--- a/python/skytools/quoting.py
+++ b/python/skytools/quoting.py
@@ -100,7 +100,7 @@ def quote_fqident(s):
The '.' is taken as namespace separator and
all parts are quoted separately
"""
- return '.'.join(map(quote_ident, s.split('.')))
+ return '.'.join(map(quote_ident, s.split('.', 1)))
#
# quoting for JSON strings
diff --git a/python/skytools/sqltools.py b/python/skytools/sqltools.py
index ba1df74d..c0a057ca 100644
--- a/python/skytools/sqltools.py
+++ b/python/skytools/sqltools.py
@@ -23,7 +23,7 @@ __all__ = [
def fq_name_parts(tbl):
"Return fully qualified name parts."
- tmp = tbl.split('.')
+ tmp = tbl.split('.', 1)
if len(tmp) == 1:
return ('public', tbl)
elif len(tmp) == 2: