Subject: | main.t - "execute multiple" failing on MS SQL |
In main.t, the "execute multiple" test is failing with "Invalid column name 'suid'" when run against MS SQL. In SQL Server, unsurprisingly, there is no such column in master.sysprocesses.
Selecting the "suid" is in no way central to the test, so I propose to instead select the "cmd" value, which exists in both Sybase's and SQL Server's sysprocesses.
Sam
--- t\main#1.t 2014-02-14 10:26:22.000000000 +-0100
+++ t\main.t 2014-02-14 10:29:27.000000000 +-0100
@@ -111,13 +111,13 @@
$dbh->{syb_quoted_identifier} = 0;
# Test multiple result sets, varying column names
$sth = $dbh->prepare("
select uid, name from sysusers where uid = -2
-select spid, kpid, suid from master..sysprocesses where spid = \@\@spid
+select spid, kpid, cmd from master..sysprocesses where spid = \@\@spid
");
ok($sth, 'prepare multiple');
$rc = $sth->execute;
ok($rc, 'execute multiple');
my $result_set = 0;