- SAB: #41996, Problem accessing Oracle ROWID (Martin Jansen)

This commit is contained in:
Pierre Joye 2008-07-21 17:35:50 +00:00
parent 9d4064afc0
commit 86a493f435
3 changed files with 22 additions and 1 deletions

1
NEWS
View File

@ -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)

View File

@ -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

View File

@ -0,0 +1,20 @@
--TEST--
PDO OCI Bug #41996 (Problem accessing Oracle ROWID)
--SKIPIF--
<?php
/* $Id$ */
if (!extension_loaded('pdo') || !extension_loaded('pdo_oci')) die('skip not loaded');
require dirname(__FILE__).'/../../pdo/tests/pdo_test.inc';
PDOTest::skip();
?>
--FILE--
<?php
require 'ext/pdo/tests/pdo_test.inc';
$db = PDOTest::test_factory('ext/pdo_oci/tests/common.phpt');
$stmt = $db->prepare('SELECT rowid FROM dual');
$stmt->execute();
$row = $stmt->fetch();
var_dump(strlen($row[0]) > 0);
--EXPECTF--
bool(true)