[PECL-CVS] [pecl-database-pdo_oci] pdo_oci_param_bool_fix: 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-06T01:41:51+05:30

Commit: https://github.com/php/pecl-database-pdo_oci/commit/63c311430058394f598abf63d948043d6b39fb5f
Raw diff: https://github.com/php/pecl-database-pdo_oci/commit/63c311430058394f598abf63d948043d6b39fb5f.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"
   }
 }
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.