diff options
author | Marko Kreen | 2014-02-18 15:07:28 +0000 |
---|---|---|
committer | Marko Kreen | 2014-02-18 15:07:28 +0000 |
commit | bc42418f53130dec044d2d6cad3b3864186a0aeb (patch) | |
tree | 5da1400843fd82ad6756e716083c3d46f1e83822 /python/skytools/dbstruct.py | |
parent | 018d85b644f24cadef344e562aded22fee14d036 (diff) | |
parent | 265a6326374bebf1775cd098320d0d3f769a0fe0 (diff) |
Merge pull request #29 from andrewsw-janrain/master
quote sequence names
Diffstat (limited to 'python/skytools/dbstruct.py')
-rw-r--r-- | python/skytools/dbstruct.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/python/skytools/dbstruct.py b/python/skytools/dbstruct.py index cf7b291f..089d2096 100644 --- a/python/skytools/dbstruct.py +++ b/python/skytools/dbstruct.py @@ -637,8 +637,9 @@ class TableStruct(BaseStruct): # load seqs for col in self.col_list: if col.seqname: + fqname = quote_fqident(col.seqname) owner = self.fqname + '.' + quote_ident(col.name) - seq_args = { 'fqname': col.seqname, 'owner': skytools.quote_literal(owner) } + seq_args = { 'fqname': fqname, 'owner': skytools.quote_literal(owner) } self.seq_list += self._load_elem(curs, col.seqname, seq_args, TSeq) self.object_list += self.seq_list |