Applied patch sent in by Daniel Westermann-Clark on Oct 11 2006.
authorBen Faga <faga@cshl.edu>
Fri, 10 Nov 2006 21:21:52 +0000 (21:21 +0000)
committerBen Faga <faga@cshl.edu>
Fri, 10 Nov 2006 21:21:52 +0000 (21:21 +0000)
commitb08b5416f45bfbe381637ee3091202524c78ecab
tree36f03656c6ae7d12b7a31bc22282da5e6d509813
parentef8261d008851ec597bdd3f8d49669cf03239f6a
Applied patch sent in by Daniel Westermann-Clark on Oct 11 2006.

His message:

Attached is a patch to modify the Producer::DB2 to output foreign key
definitions as ALTER TABLE statements after the CREATE TABLE
statements (to avoid dependency issues).  The patch also removes
single quotes for numeric default values in Producer::DB2, which
caused problems here on my v7 instance.

To add tests for the foreign key output, I added a table to the
schema.xml file.  This required updating some of the other tests, and
exposed a few other minor issues in the test suite relating to foreign
key output.
12 files changed:
lib/SQL/Translator/Producer/DB2.pm
lib/SQL/Translator/Producer/PostgreSQL.pm
t/16xml-parser.t
t/18ttschema-producer.t
t/34tt-base.t
t/43xml-to-db2.t
t/44-xml-to-db2-array.t
t/46xml-to-pg.t
t/48xml-to-sqlite.t
t/data/template/basic.tt
t/data/xml/schema.xml
t/lib/Producer/BaseTest.pm