From: Rafael Kitover <rkitover@cpan.org>
Date: Mon, 17 Jan 2011 05:32:28 +0000 (-0500)
Subject: sybase test that doesn't fail
X-Git-Tag: 0.07003~10
X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=5c1b0a23463385bbad6691f115b8e33105a10840;p=dbsrgits%2FDBIx-Class-Schema-Loader.git

sybase test that doesn't fail
---

diff --git a/t/15sybase_common.t b/t/15sybase_common.t
index cf5d124..91f3953 100644
--- a/t/15sybase_common.t
+++ b/t/15sybase_common.t
@@ -76,6 +76,24 @@ my $tester = dbixcsl_common_tests->new(
         'binary(2)'    => { data_type => 'binary', size => 2 },
         'varbinary(2)' => { data_type => 'varbinary', size => 2 },
     },
+    # test that named constraints aren't picked up as tables
+    extra => {
+        create => [
+            q{
+                CREATE TABLE sybase_loader_test1 (
+                    id int identity primary key
+                )
+            },
+            q{
+                CREATE TABLE sybase_loader_test2 (
+                    id int identity primary key,
+                    sybase_loader_test1_id int,
+                    CONSTRAINT sybase_loader_test2_ref_slt1 FOREIGN KEY (sybase_loader_test1_id) REFERENCES sybase_loader_test1 (id)
+                )
+            },
+        ],
+        drop => [ qw/sybase_loader_test1 sybase_loader_test2/ ],
+    },
 );
 
 if( !$dsn || !$user ) {
@@ -84,3 +102,5 @@ if( !$dsn || !$user ) {
 else {
     $tester->run_tests();
 }
+
+# vim:et sts=4 sw=4 tw=0: