From: Peter Rabbitson Date: Sat, 3 Oct 2009 18:06:40 +0000 (+0000) Subject: Fix TT templates and tests X-Git-Tag: v0.11008~78 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=e3472b3bac5c2e839d8ce7ee3e71684dfd1a432b;p=dbsrgits%2FSQL-Translator.git Fix TT templates and tests --- diff --git a/t/18ttschema-producer.t b/t/18ttschema-producer.t index 82ce0fe..e28a616 100644 --- a/t/18ttschema-producer.t +++ b/t/18ttschema-producer.t @@ -289,6 +289,20 @@ Fields order: 1 table: Another + num + data_type: numeric + size: 10,2 + is_nullable: 1 + default_value: + is_primary_key: 0 + is_unique: 0 + is_auto_increment: 0 + is_foreign_key: 0 + foreign_key_reference: + is_valid: 1 + order: 2 + table: Another + Indices diff --git a/t/34tt-base.t b/t/34tt-base.t index 6cda785..f69f2aa 100644 --- a/t/34tt-base.t +++ b/t/34tt-base.t @@ -50,5 +50,5 @@ Fields: id title description email explicitnulldef explicitemptystring emptytagd Another ------ -Fields: id +Fields: id num diff --git a/t/data/template/basic.tt b/t/data/template/basic.tt index 9e7045a..f4e4689 100644 --- a/t/data/template/basic.tt +++ b/t/data/template/basic.tt @@ -12,7 +12,7 @@ Fields [%- FOREACH field = table.get_fields %] [% field %] data_type: [% field.data_type %] - size: [% field.size %] + size: [% field.size.join(',') %] is_nullable: [% field.is_nullable %] default_value: [% field.default_value %] is_primary_key: [% field.is_primary_key %]