]> granicus.if.org Git - php/commitdiff
Skip test if bigint type is unsupported by active TDS version
authorAdam Baratz <adambaratz@php.net>
Fri, 8 May 2020 19:11:38 +0000 (15:11 -0400)
committerAdam Baratz <adambaratz@php.net>
Fri, 8 May 2020 19:13:40 +0000 (15:13 -0400)
ext/pdo_dblib/tests/bug_73396.phpt

index 86ad59f43f722b4307e03030ae4c71501a9fa984..4ef77d8c9f91e454b78eb363464139df30af1748 100644 (file)
@@ -4,6 +4,7 @@ PDO_DBLIB: bigint columns are returned as strings
 <?php
 if (!extension_loaded('pdo_dblib')) die('skip not loaded');
 require __DIR__ . '/config.inc';
+if (in_array($db->getAttribute(PDO::DBLIB_ATTR_TDS_VERSION), ['4.2', '4.6', '5.0', '6.0', '7.0'])) die('skip bigint type is unsupported by active TDS version');
 ?>
 --FILE--
 <?php