From: Mark Addison Date: Tue, 23 Mar 2004 21:08:36 +0000 (+0000) Subject: Tweaked to use (test ;-) table and field stringify. X-Git-Tag: v0.06~123 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=462ede1e3bc178bf632c76e18d01fb1cac7864d2;p=dbsrgits%2FSQL-Translator.git Tweaked to use (test ;-) table and field stringify. --- diff --git a/t/data/template/basic.tt b/t/data/template/basic.tt index aaf1285..6564e64 100644 --- a/t/data/template/basic.tt +++ b/t/data/template/basic.tt @@ -2,12 +2,12 @@ Schema: [% schema.name %] Database: [% schema.database %] [%- FOREACH table = schema.get_tables %] -Table: [% table.name %] +Table: [% table %] ========================================================================== Fields [%- FOREACH field = table.get_fields %] - [% field.name %] + [% field %] data_type: [% field.data_type %] size: [% field.size %] is_nullable: [% field.is_nullable %] @@ -20,13 +20,13 @@ Fields is_valid: [% field.is_valid %] order: [% field.order %] extra: [% field.extra %] - table: [% field.table.name %] + table: [% field.table %] [% END %] Indices [%- FOREACH index = table.get_indices %] [% index.name %] - table: [% index.table.name %] + table: [% index.table %] fields: [% index.fields.join(', ') %] type: [% index.type %] options: [% index.options %]