Author: turnstep
Date: Sat Jun 23 10:40:58 2007
New Revision: 9672

Modified:
   DBD-Pg/trunk/t/02attribs.t

Log:
Fix expected test output.


Modified: DBD-Pg/trunk/t/02attribs.t
==============================================================================
--- DBD-Pg/trunk/t/02attribs.t  (original)
+++ DBD-Pg/trunk/t/02attribs.t  Sat Jun 23 10:40:58 2007
@@ -385,7 +385,7 @@
 # TYPE, PRECISION, SCALE, NULLABLE
 #
 
-$sth = $dbh->prepare('SELECT 123 AS "Sheep", id::float FROM dbd_pg_test WHERE 
id=?');
+$sth = $dbh->prepare('SELECT 123 AS "Sheep", CAST(id AS float) FROM 
dbd_pg_test WHERE id=?');
 $sth->execute(12);
 $attrib = $sth->{'NUM_OF_FIELDS'};
 is( $attrib, '2', 'Statement handle attribute "NUM_OF_FIELDS" works correctly 
for SELECT');
@@ -411,7 +411,7 @@
 is_deeply( $attrib, $colnames, 'Statement handle attribute "NAME_uc_hash" 
works correctly');
 
 $attrib = $sth->{TYPE};
-$colnames = [4, 7];
+$colnames = [4, 6];
 is_deeply( $attrib, $colnames, 'Statement handle attribute "TYPE" works 
correctly');
 
 $attrib = $sth->{PRECISION};

Reply via email to