From: Jess Robinson Date: Sat, 26 Aug 2006 11:29:32 +0000 (+0000) Subject: Fixed up tests to accommodate new DB2 producer changes and sqlite tests to not test... X-Git-Tag: v0.11008~411 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=5cb666c086d808c39b90d3b22ac4541caaf4e808;p=dbsrgits%2FSQL-Translator.git Fixed up tests to accommodate new DB2 producer changes and sqlite tests to not test for comments. --- diff --git a/t/43xml-to-db2.t b/t/43xml-to-db2.t index 8e4b7ca..8a430b6 100644 --- a/t/43xml-to-db2.t +++ b/t/43xml-to-db2.t @@ -36,7 +36,7 @@ is($sql, << "SQL"); DROP TABLE Basic; CREATE TABLE Basic ( -id INTEGER GENERATED BY DEFAULT AS IDENTITY NOT NULL, +id INTEGER GENERATED BY DEFAULT AS IDENTITY (START WITH 1, INCREMENT BY 1) NOT NULL, title VARCHAR(100) NOT NULL DEFAULT 'hello', description VARCHAR(0) DEFAULT '', email VARCHAR(255), diff --git a/t/44-xml-to-db2-array.t b/t/44-xml-to-db2-array.t index d254af9..9285ded 100644 --- a/t/44-xml-to-db2-array.t +++ b/t/44-xml-to-db2-array.t @@ -34,7 +34,7 @@ my @sql = $sqlt->translate( my $want = [ 'DROP TABLE Basic;', q|CREATE TABLE Basic ( -id INTEGER GENERATED BY DEFAULT AS IDENTITY NOT NULL, +id INTEGER GENERATED BY DEFAULT AS IDENTITY (START WITH 1, INCREMENT BY 1) NOT NULL, title VARCHAR(100) NOT NULL DEFAULT 'hello', description VARCHAR(0) DEFAULT '', email VARCHAR(255), diff --git a/t/48xml-to-sqlite.t b/t/48xml-to-sqlite.t index fd05ad4..6ed2a22 100644 --- a/t/48xml-to-sqlite.t +++ b/t/48xml-to-sqlite.t @@ -38,9 +38,6 @@ is($sql, << "SQL"); BEGIN TRANSACTION; --- --- Table: Basic --- DROP TABLE Basic; CREATE TABLE Basic ( id INTEGER PRIMARY KEY NOT NULL,