[PECL-CVS] [pecl-database-pdo_oci] main: Add correction for the test to be run with Oracle Database 23ai+
[email protected] (Sharad Chandran R)
| Newsgroups | php.pecl.cvs |
|---|---|
| Message-ID | <[email protected]> |
Author: Sharad Chandran R (sharadraju)
Date: 2026-01-06T10:19:31+05:30
Commit: https://github.com/php/pecl-database-pdo_oci/commit/2d84dbcd67d58fb2d6008c2501ec5a86eb9b8da3
Raw diff: https://github.com/php/pecl-database-pdo_oci/commit/2d84dbcd67d58fb2d6008c2501ec5a86eb9b8da3.diff
Add correction for the test to be run with Oracle Database 23ai+
Changed paths:
M tests/pdo_oci_insert_boolean.phpt
Diff:
diff --git a/tests/pdo_oci_insert_boolean.phpt b/tests/pdo_oci_insert_boolean.phpt
index 6b92039..1b42e8e 100644
--- a/tests/pdo_oci_insert_boolean.phpt
+++ b/tests/pdo_oci_insert_boolean.phpt
@@ -1,5 +1,5 @@
--TEST--
-PDO_OCI: Insert BOOLEAN values into BOOLEAN column (Oracle 21c+)
+PDO_OCI: Insert BOOLEAN values into BOOLEAN column (Oracle 23ai+)
--EXTENSIONS--
pdo
pdo_oci
@@ -11,8 +11,8 @@ $db = PDOTest::factory();
$version = $db->getAttribute(PDO::ATTR_SERVER_VERSION);
preg_match('/^(\d+)\./', $version, $matches);
$majorVersion = (int)$matches[1];
-if ($majorVersion < 21) {
- die('skip BOOLEAN type supported from Oracle Database 21c');
+if ($majorVersion < 23) {
+ die('skip BOOLEAN type supported from Oracle Database 23ai');
}
PDOTest::skip();
@@ -57,16 +57,16 @@ $db->exec("DROP TABLE test_bool");
array(2) {
[0]=>
array(2) {
- ["ID"]=>
+ ["id"]=>
string(1) "1"
- ["BOOL_VAL"]=>
+ ["bool_val"]=>
string(1) "1"
}
[1]=>
array(2) {
- ["ID"]=>
+ ["id"]=>
string(1) "2"
- ["BOOL_VAL"]=>
+ ["bool_val"]=>
string(1) "0"
}
}