diff options
Diffstat (limited to 'ext/pdo/tests/bug_73234.phpt')
-rw-r--r-- | ext/pdo/tests/bug_73234.phpt | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/ext/pdo/tests/bug_73234.phpt b/ext/pdo/tests/bug_73234.phpt index 7e708d7424..dddf5c5bf0 100644 --- a/ext/pdo/tests/bug_73234.phpt +++ b/ext/pdo/tests/bug_73234.phpt @@ -15,7 +15,16 @@ require_once getenv('REDIR_TEST_DIR') . 'pdo_test.inc'; $db = PDOTest::factory(); $db->setAttribute(PDO::ATTR_EMULATE_PREPARES, true); -$db->exec('CREATE TABLE test(id INT)'); + +switch ($db->getAttribute(PDO::ATTR_DRIVER_NAME)) { + case 'dblib': + $sql = 'CREATE TABLE test(id INT NULL)'; + break; + default: + $sql = 'CREATE TABLE test(id INT)'; + break; +} +$db->exec($sql); $stmt = $db->prepare('INSERT INTO test VALUES(:value)'); |