php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #68271 Cannot retrieve an XML field from an MSSQL table without a 'Convert'
Submitted: 2014-10-20 17:52 UTC Modified: 2017-03-12 04:22 UTC
From: charles dot w dot buege at temeda dot com Assigned:
Status: No Feedback Package: PDO DBlib
PHP Version: 5.5.18 OS: CentOS 6.5 x64
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: charles dot w dot buege at temeda dot com
New email:
PHP Version: OS:

 

 [2014-10-20 17:52 UTC] charles dot w dot buege at temeda dot com
Description:
------------
I'm attempting to retrieve some XML records (XML field type) from an SQL Server database.  Whenever I try to perform 'SELECT Top 10 [Status_Info] from [MyTable]' I get a 'No records found' message, but when I change the query to this - SELECT Top 10 CONVERT(varchar(max), [Status_Info]) from [MyTable] - it works.  Also, I was able to use the initial query in PHP version 5.4.25, but somewhere between 5.4.25 and 5.4.32, this bug was introduced.  I have confirmed that this problem exists as well within PHP 5.6.2.  I even tried PHP 5.4.33, but the problem is there also.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2017-03-01 22:58 UTC] adambaratz@php.net
-Status: Open +Status: Feedback -Package: PDO related +Package: PDO DBlib
 [2017-03-01 22:58 UTC] adambaratz@php.net
Could you give full example code, including DB schema?
 [2017-03-12 04:22 UTC] php-bugs at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Dec 22 11:01:30 2024 UTC