From: Ken Youens-Clark Date: Mon, 18 Aug 2003 18:04:00 +0000 (+0000) Subject: Adding Sybase parser test. X-Git-Tag: v0.04~299 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=88d2bfd801e0b9ef68b4ff1295f58538b631d47e;p=dbsrgits%2FSQL-Translator.git Adding Sybase parser test. --- diff --git a/t/19sybase-parser.t b/t/19sybase-parser.t new file mode 100644 index 0000000..1ee4260 --- /dev/null +++ b/t/19sybase-parser.t @@ -0,0 +1,22 @@ +#!/usr/bin/perl +# vim: set ft=perl ts=4 et: +# + +use strict; + +use FindBin qw/$Bin/; +use Test::More 'no_plan'; #tests => 1; +use SQL::Translator; +use SQL::Translator::Parser::Sybase qw(parse); + +my $file = "$Bin/data/sybase/create.sql"; + +ok( -e $file, "File exists" ); + +my $t = SQL::Translator->new; + +my $val = parse($t, $file); + +my $schema = $t->schema; +is( $schema->is_valid, 1, 'Schema is valid' ); +my @tables = $schema->get_tables;