improvements for MSSQL driver via DBD::ADO
[dbsrgits/DBIx-Class.git] / t / lib / DBICTest / Schema / VaryingMAX.pm
diff --git a/t/lib/DBICTest/Schema/VaryingMAX.pm b/t/lib/DBICTest/Schema/VaryingMAX.pm
new file mode 100644 (file)
index 0000000..beca65f
--- /dev/null
@@ -0,0 +1,34 @@
+package # hide from PAUSE
+    DBICTest::Schema::VaryingMAX;
+
+use base qw/DBICTest::BaseResult/;
+
+# Test VARCHAR(MAX) type for MSSQL (used in ADO tests)
+
+__PACKAGE__->table('varying_max_test');
+
+__PACKAGE__->add_columns(
+  'id' => {
+    data_type => 'integer',
+    is_auto_increment => 1,
+  },
+  'varchar_max' => {
+    data_type => 'varchar',
+    size => 'max',
+    is_nullable => 1,
+  },
+  'nvarchar_max' => {
+    data_type => 'nvarchar',
+    size => 'max',
+    is_nullable => 1,
+  },
+  'varbinary_max' => {
+    data_type => 'varbinary(max)', # alternately
+    size => undef,
+    is_nullable => 1,
+  },
+);
+
+__PACKAGE__->set_primary_key('id');
+
+1;