php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #76531 Can't get dateTime field with Sybase 16 ODBC driver
Submitted: 2018-06-26 08:57 UTC Modified: 2020-10-18 04:22 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: t dot raab at sanitas dot at Assigned: cmb (profile)
Status: No Feedback Package: ODBC related
PHP Version: 7.2.7 OS: Windows 7
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.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: t dot raab at sanitas dot at
New email:
PHP Version: OS:

 

 [2018-06-26 08:57 UTC] t dot raab at sanitas dot at
Description:
------------
Dear All,

as Sybase support was dropped in PHP version 7, we are migrating our legacy application to connect to a SYBASE ASE database via ODBC. Our application is finally working quite well with ASE 15.5.

The problem is that sooner or later the database will be updated to Sybase ASE 16 and we found that retrieving any dateTime field with the newer Sybase 16 ODBC driver returns an empty string. 

We also found that connecting via pdo_odbc retrieves the dateTime fields correctly, so we believe the error lies in PHP's odbc module. Unfortunately switching to PDO is not an option, as it is not possible to retrieve the field data type via PDO.



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2020-10-05 09:43 UTC] cmb@php.net
-Status: Open +Status: Feedback -Assigned To: +Assigned To: cmb
 [2020-10-05 09:43 UTC] cmb@php.net
If this is still an issue with any of the actively supported PHP
versions[1], please update the PHP version info, provide a minimal
reproduce script and an ODBC trace of running that script.

[1] <https://www.php.net/supported-versions.php>
 [2020-10-18 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-2021 The PHP Group
All rights reserved.
Last updated: Wed Jun 23 02:01:23 2021 UTC