diff --git a/NEWS b/NEWS index e9fd46d3d5f..094f4604f58 100644 --- a/NEWS +++ b/NEWS @@ -280,6 +280,7 @@ PHP NEWS characters). (Jani) - Fixed bug #41997 (pdo_mysql: stored procedure call returning single rowset blocks future queries). (Johannes) +- Fixed bug #41996 (Problem accessing Oracle ROWID). (Martin Jansen) - Fixed bug #41599 (setTime() fails after modify() is used). (Derick) - Fixed bug #41522 (PDO firebird driver returns null if it fails to connect). (Lars W) diff --git a/ext/pdo_oci/oci_statement.c b/ext/pdo_oci/oci_statement.c index 1d2c0586157..71913989d43 100755 --- a/ext/pdo_oci/oci_statement.c +++ b/ext/pdo_oci/oci_statement.c @@ -557,7 +557,7 @@ static int oci_stmt_describe(pdo_stmt_t *stmt, int colno TSRMLS_DC) /* {{{ */ case SQLT_BIN: default: - if (dtype == SQLT_DAT || dtype == SQLT_NUM + if (dtype == SQLT_DAT || dtype == SQLT_NUM || dtype == SQLT_RDD #ifdef SQLT_TIMESTAMP || dtype == SQLT_TIMESTAMP #endif diff --git a/ext/pdo_oci/tests/bug41996.phpt b/ext/pdo_oci/tests/bug41996.phpt new file mode 100644 index 00000000000..ac8e35fe604 --- /dev/null +++ b/ext/pdo_oci/tests/bug41996.phpt @@ -0,0 +1,20 @@ +--TEST-- +PDO OCI Bug #41996 (Problem accessing Oracle ROWID) +--SKIPIF-- + +--FILE-- +prepare('SELECT rowid FROM dual'); +$stmt->execute(); +$row = $stmt->fetch(); +var_dump(strlen($row[0]) > 0); +--EXPECTF-- +bool(true)