|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #57676 PDO_IBM has problems with XQuery
Submitted: 2007-05-18 12:29 UTC Modified: 2007-05-20 21:53 UTC
From: thorsten at phpmyfaq dot de Assigned:
Status: Duplicate Package: PDO_IBM (PECL)
PHP Version: 5.1.6 OS: Windows XP
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: thorsten at phpmyfaq dot de
New email:
PHP Version: OS:


 [2007-05-18 12:29 UTC] thorsten at phpmyfaq dot de
With IBM DB2 9.1 you can use XQuery for XML data.

This code produces an error, but works in the DB2 Control Center:

xquery db2-fn:xmlcolumn('TALKS.TALKS');

Sorry for the German error messages...

Reproduce code:
    $stmt = $db->prepare("xquery db2-fn:xmlcolumn('TALKS.TALKS')");
    if ($stmt->execute()) {
        foreach ($stmt->fetch() as $data) {
    } else {

Expected result:
After XML serialization:

<talk id="1">
		Thorsten Rinne
		IBM DB2 mit PHP 5.2 und AJAX

Actual result:
    [0] => 10505
    [1] => -16002
    [2] => [IBM][CLI Driver][DB2/NT] SQL16002N  In einem XQuery-Ausdruck folgt ein unerwartetes Token "?" auf "db2-fn". Zu den m?glichen Token geh?ren: "". Fehler QName=err:XPST0003.  SQLSTATE=10505
 (SQLExecute[-16002] at ext\pdo_odbc\odbc_stmt.c:133)
    [3] => 10505


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2007-05-20 21:53 UTC] opendev at us dot ibm dot com
This defect has already been raised and is an open issue with the PDO layer.  You can view comments and track progress on the defect at the following address:
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Sat Nov 27 20:03:20 2021 UTC