projects
/
skytools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
018d85b
)
quote sequence names
author
Andrew Sackville-West
<awest@janrain.com>
Tue, 4 Feb 2014 18:47:31 +0000
(10:47 -0800)
committer
Andrew Sackville-West
<awest@janrain.com>
Tue, 4 Feb 2014 18:47:43 +0000
(10:47 -0800)
fixes a bug where _load_elem fails on sequences in schemas that start
with non-alpha characters.
python/skytools/dbstruct.py
patch
|
blob
|
blame
|
history
diff --git
a/python/skytools/dbstruct.py
b/python/skytools/dbstruct.py
index cf7b291f0a26bf49f7521c688427739e01a7ee8c..089d209650eacc58df680cafe2ed955a49b5fbf1 100644
(file)
--- 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.se
qname, 'owner': skytools.quote_literal(owner) }
+ seq_args = { 'fqname':
f
qname, 'owner': skytools.quote_literal(owner) }
self.seq_list += self._load_elem(curs, col.seqname, seq_args, TSeq)
self.object_list += self.seq_list