From 930090b46b5173a7a0ea829459a102e76b22cd9d Mon Sep 17 00:00:00 2001 From: Stanley Sufficool Date: Tue, 29 Jun 2010 14:08:22 +0000 Subject: [PATCH] PDO DBLIB test fixups --- ext/pdo_dblib/tests/bug_38955.phpt | 13 ++++++++----- ext/pdo_dblib/tests/bug_45876.phpt | 17 ++++++++++------- ext/pdo_dblib/tests/bug_47588.phpt | 26 +++++++++++++++----------- ext/pdo_dblib/tests/bug_50755.phpt | 13 ++++++++----- 4 files changed, 41 insertions(+), 28 deletions(-) diff --git a/ext/pdo_dblib/tests/bug_38955.phpt b/ext/pdo_dblib/tests/bug_38955.phpt index 0fbacf7305..95f5f204b4 100644 --- a/ext/pdo_dblib/tests/bug_38955.phpt +++ b/ext/pdo_dblib/tests/bug_38955.phpt @@ -2,15 +2,18 @@ PDO_DBLIB driver does not support transactions --SKIPIF-- getMessage()); +} ?> --FILE-- setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); $db->setAttribute(PDO::ATTR_STRINGIFY_FETCHES, false); diff --git a/ext/pdo_dblib/tests/bug_45876.phpt b/ext/pdo_dblib/tests/bug_45876.phpt index 5c4269356b..6b48e5cafb 100644 --- a/ext/pdo_dblib/tests/bug_45876.phpt +++ b/ext/pdo_dblib/tests/bug_45876.phpt @@ -2,15 +2,18 @@ PDO_DBLIB: Does not support get column meta --SKIPIF-- getMessage()); +} ?> --FILE-- 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"]=> diff --git a/ext/pdo_dblib/tests/bug_47588.phpt b/ext/pdo_dblib/tests/bug_47588.phpt index 2e2aaa0117..e1835ffefe 100644 --- a/ext/pdo_dblib/tests/bug_47588.phpt +++ b/ext/pdo_dblib/tests/bug_47588.phpt @@ -2,15 +2,19 @@ PDO_DBLIB: Quoted field names --SKIPIF-- getMessage()); +} + ?> --FILE-- 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" } } diff --git a/ext/pdo_dblib/tests/bug_50755.phpt b/ext/pdo_dblib/tests/bug_50755.phpt index 3e057fcba0..8073706de6 100644 --- a/ext/pdo_dblib/tests/bug_50755.phpt +++ b/ext/pdo_dblib/tests/bug_50755.phpt @@ -2,15 +2,18 @@ PDO_DBLIB: Out of memory on large recordsets --SKIPIF-- getMessage()); +} ?> --FILE-- setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); $db->setAttribute(PDO::ATTR_STRINGIFY_FETCHES, false); -- 2.40.0