1
0
mirror of https://github.com/php/php-src.git synced 2026-04-27 10:16:41 +02:00

PDO DBLIB test fixups

This commit is contained in:
Stanley Sufficool
2010-06-29 14:08:22 +00:00
parent b193f98967
commit 930090b46b
4 changed files with 41 additions and 28 deletions
+8 -5
View File
@@ -2,15 +2,18 @@
PDO_DBLIB driver does not support transactions
--SKIPIF--
<?php
if (!extension_loaded('pdo') || !extension_loaded('pdo_dblib')) die('skip not loaded');
if (!extension_loaded('pdo_dblib')) die('skip not loaded');
require dirname(__FILE__) . '/config.inc';
require dirname(__FILE__) . '/../../../ext/pdo/tests/pdo_test.inc';
PDOTest::skip();
try {
$db = new PDO( getenv('PDOTEST_DSN'), getenv('PDOTEST_USER'), getenv('PDOTEST_PASS'));
} catch (PDOException $e) {
die('skip ' . $e->getMessage());
}
?>
--FILE--
<?php
require dirname(__FILE__) . '/../../../ext/pdo/tests/pdo_test.inc';
$db = PDOTest::test_factory(dirname(__FILE__) . '/common.phpt');
require dirname(__FILE__) . '/config.inc';
$db = new PDO( getenv('PDOTEST_DSN'), getenv('PDOTEST_USER'), getenv('PDOTEST_PASS'));
$db->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
$db->setAttribute(PDO::ATTR_STRINGIFY_FETCHES, false);
+10 -7
View File
@@ -2,15 +2,18 @@
PDO_DBLIB: Does not support get column meta
--SKIPIF--
<?php
if (!extension_loaded('pdo') || !extension_loaded('pdo_dblib')) die('skip not loaded');
if (!extension_loaded('pdo_dblib')) die('skip not loaded');
require dirname(__FILE__) . '/config.inc';
require dirname(__FILE__) . '/../../../ext/pdo/tests/pdo_test.inc';
PDOTest::skip();
try {
$db = new PDO( getenv('PDOTEST_DSN'), getenv('PDOTEST_USER'), getenv('PDOTEST_PASS'));
} catch (PDOException $e) {
die('skip ' . $e->getMessage());
}
?>
--FILE--
<?php
require dirname(__FILE__) . '/../../../ext/pdo/tests/pdo_test.inc';
$db = PDOTest::test_factory(dirname(__FILE__) . '/common.phpt');
require dirname(__FILE__) . '/config.inc';
$db = new PDO( getenv('PDOTEST_DSN'), getenv('PDOTEST_USER'), getenv('PDOTEST_PASS'));
$db->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
$db->setAttribute(PDO::ATTR_STRINGIFY_FETCHES, false);
@@ -28,11 +31,11 @@ array(8) {
["scale"]=>
int(0)
["column_source"]=>
string(13) "table_catalog"
string(13) "TABLE_CATALOG"
["native_type"]=>
string(4) "char"
["name"]=>
string(13) "table_catalog"
string(13) "TABLE_CATALOG"
["len"]=>
int(255)
["pdo_type"]=>
+15 -11
View File
@@ -2,15 +2,19 @@
PDO_DBLIB: Quoted field names
--SKIPIF--
<?php
if (!extension_loaded('pdo') || !extension_loaded('pdo_dblib')) die('skip not loaded');
if (!extension_loaded('pdo_dblib')) die('skip not loaded');
require dirname(__FILE__) . '/config.inc';
require dirname(__FILE__) . '/../../../ext/pdo/tests/pdo_test.inc';
PDOTest::skip();
try {
$db = new PDO( getenv('PDOTEST_DSN'), getenv('PDOTEST_USER'), getenv('PDOTEST_PASS'));
} catch (PDOException $e) {
die('skip ' . $e->getMessage());
}
?>
--FILE--
<?php
require dirname(__FILE__) . '/../../../ext/pdo/tests/pdo_test.inc';
$db = PDOTest::test_factory(dirname(__FILE__) . '/common.phpt');
require dirname(__FILE__) . '/config.inc';
$db = new PDO( getenv('PDOTEST_DSN'), getenv('PDOTEST_USER'), getenv('PDOTEST_PASS'));
$db->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
$db->setAttribute(PDO::ATTR_STRINGIFY_FETCHES, false);
@@ -27,23 +31,23 @@ echo "Done.\n";
array(3) {
[0]=>
array(2) {
["my field"]=>
["My Field"]=>
string(1) "1"
["another field"]=>
["Another Field"]=>
string(11) "test_string"
}
[1]=>
array(2) {
["my field"]=>
["My Field"]=>
string(1) "2"
["another field"]=>
["Another Field"]=>
string(11) "test_string"
}
[2]=>
array(2) {
["my field"]=>
["My Field"]=>
string(1) "3"
["another field"]=>
["Another Field"]=>
string(11) "test_string"
}
}
+8 -5
View File
@@ -2,15 +2,18 @@
PDO_DBLIB: Out of memory on large recordsets
--SKIPIF--
<?php
if (!extension_loaded('pdo') || !extension_loaded('pdo_dblib')) die('skip not loaded');
if (!extension_loaded('pdo_dblib')) die('skip not loaded');
require dirname(__FILE__) . '/config.inc';
require dirname(__FILE__) . '/../../../ext/pdo/tests/pdo_test.inc';
PDOTest::skip();
try {
$db = new PDO( getenv('PDOTEST_DSN'), getenv('PDOTEST_USER'), getenv('PDOTEST_PASS'));
} catch (PDOException $e) {
die('skip ' . $e->getMessage());
}
?>
--FILE--
<?php
require dirname(__FILE__) . '/../../../ext/pdo/tests/pdo_test.inc';
$db = PDOTest::test_factory(dirname(__FILE__) . '/common.phpt');
require dirname(__FILE__) . '/config.inc';
$db = new PDO( getenv('PDOTEST_DSN'), getenv('PDOTEST_USER'), getenv('PDOTEST_PASS'));
$db->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
$db->setAttribute(PDO::ATTR_STRINGIFY_FETCHES, false);