#!/usr/bin/perl
use strict;
-use Test::More tests => 72;
+use Test::More tests => 73;
use SQL::Translator;
use SQL::Translator::Schema::Constants;
use SQL::Translator::Parser::Oracle qw(parse);
comment on column qtl_trait_category.qtl_trait_category_id
is 'the primary key!';
+ -- foo bar comment
CREATE TABLE qtl_trait
(
qtl_trait_id NUMBER(11) NOT NULL
is( $f1->is_nullable, 0, 'Field cannot be null' );
is( $f1->default_value, undef, 'Default value is undefined' );
is( $f1->is_primary_key, 1, 'Field is PK' );
-is( $f1->comments, 'the primary key!', 'Comment = "the primary key!"' );
+is( join(',', $f1->comments), 'the primary key!', 'Comment = "the primary key!"' );
my $f2 = shift @t1_fields;
is( $f2->name, 'trait_category', 'Second field is "trait_category"' );
#
my $t2 = shift @tables;
is( $t2->name, 'qtl_trait', 'Table "qtl_trait" exists' );
+is( $t2->comments, 'foo bar comment', 'Comment "foo bar" exists' );
my @t2_fields = $t2->get_fields;
is( scalar @t2_fields, 4, '4 fields in table' );