diff options
author | Lele Gaifax <lele@metapensiero.it> | 2007-12-19 08:03:57 +0000 |
---|---|---|
committer | Lele Gaifax <lele@metapensiero.it> | 2007-12-19 08:03:57 +0000 |
commit | e7f30cba786beeb788913b4be88c6c46d73c910d (patch) | |
tree | a7691b966e0d32814d2c59dcdaed3aa5513fcf5f | |
parent | ba0267a955d40efb09de06ce226fbab63994aa78 (diff) | |
download | sqlalchemy-e7f30cba786beeb788913b4be88c6c46d73c910d.tar.gz |
Fix the unpacking of the refered table name under Firebird
This fixes a little glitch introduced in [3959], in case of "implicit FKs"
(that is, {{{ForeignKey("orders")}}}, where the field(s) is missing).
-rw-r--r-- | test/testlib/schema.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/test/testlib/schema.py b/test/testlib/schema.py index 96a81d5be..8151508d0 100644 --- a/test/testlib/schema.py +++ b/test/testlib/schema.py @@ -42,7 +42,10 @@ def Table(*args, **kw): if isinstance(ref, schema.Column): name = ref.table.name else: - name = unpack(ref)[-2] + # take just the table name: on FB there cannot be + # a schema, so the first element is always the + # table name, possibly followed by the field name + name = unpack(ref)[0] print name, table_name if name == table_name: if fk.ondelete is None: |