Added code to catch table comments (simply assumes that all comments before
[dbsrgits/SQL-Translator.git] / t / 19sybase-parser.t
CommitLineData
88d2bfd8 1#!/usr/bin/perl
2# vim: set ft=perl ts=4 et:
3#
4
5use strict;
6
7use FindBin qw/$Bin/;
8use Test::More 'no_plan'; #tests => 1;
9use SQL::Translator;
10use SQL::Translator::Parser::Sybase qw(parse);
11
12my $file = "$Bin/data/sybase/create.sql";
13
14ok( -e $file, "File exists" );
15
16my $t = SQL::Translator->new;
17
18my $val = parse($t, $file);
19
20my $schema = $t->schema;
21is( $schema->is_valid, 1, 'Schema is valid' );
22my @tables = $schema->get_tables;