[Bast-commits] r7886 - DBIx-Class/0.08/branches/ado_mssql/t

caelum at dev.catalyst.perl.org caelum at dev.catalyst.perl.org
Sat Nov 14 08:41:25 GMT 2009


Author: caelum
Date: 2009-11-14 08:41:25 +0000 (Sat, 14 Nov 2009)
New Revision: 7886

Modified:
   DBIx-Class/0.08/branches/ado_mssql/t/747mssql_ado.t
Log:
add TODO test for large column list in select

Modified: DBIx-Class/0.08/branches/ado_mssql/t/747mssql_ado.t
===================================================================
--- DBIx-Class/0.08/branches/ado_mssql/t/747mssql_ado.t	2009-11-14 08:40:01 UTC (rev 7885)
+++ DBIx-Class/0.08/branches/ado_mssql/t/747mssql_ado.t	2009-11-14 08:41:25 UTC (rev 7886)
@@ -11,7 +11,7 @@
 plan skip_all => 'Set $ENV{DBICTEST_MSSQL_ADO_DSN}, _USER and _PASS to run this test'
   unless ($dsn && $user);
 
-plan tests => 10;
+plan tests => 11;
 
 my $schema = DBICTest::Schema->connect($dsn, $user, $pass);
 $schema->storage->ensure_connected;
@@ -39,6 +39,16 @@
 my $found = $schema->resultset('Artist')->search({ name => 'foo' })->first;
 is $found->artistid, $new->artistid, 'search works';
 
+# try a select with a big column list
+TODO: {
+  local $TODO = 'select with a big column list does not work';
+
+  $found = $schema->resultset('Artist')->search({ name => 'foo' }, {
+    select => ['name', map "'foo' foo_$_", 0..50]
+  })->first;
+  is $found->artistid, $new->artistid, 'select with big column list';
+}
+
 # create a few more rows
 for (1..6) {
   $schema->resultset('Artist')->create({ name => 'Artist ' . $_ });




More information about the Bast-commits mailing list