|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #69553 SELECT VARCHAR >255 return empty
Submitted: 2015-04-30 14:24 UTC Modified: 2015-05-10 04:22 UTC
From: a dot mothe at oenodata dot fr Assigned: cmb (profile)
Status: No Feedback Package: PDO ODBC
PHP Version: 5.5.24 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.
Block user comment
Status: Assign to:
Bug Type:
From: a dot mothe at oenodata dot fr
New email:
PHP Version: OS:


 [2015-04-30 14:24 UTC] a dot mothe at oenodata dot fr
I Use a Ingres database (9.2)
to connect to this database, i use pdo odbc.

Since Php 5.5.x and above (5.6.x), when i request database with un simple select, if column is a varchar > 255, i don't have result. No error, no message...

With PHP 5.4.x and below, i don't have this problem...

if a use a clasical connexion (odbc_do, odbc_fetch_array etc...) with PHP 5.5.x, i don't have this problem.

i don't find anything in a doc on PDO-ODBC between 5.4.x and 5.5.x


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2015-05-01 18:59 UTC]
-Status: Open +Status: Feedback -Assigned To: +Assigned To: cmb
 [2015-05-01 18:59 UTC]
Thank you for this bug report. To properly diagnose the problem, we
need a short but complete example script to be able to reproduce
this bug ourselves. 

A proper reproducing script starts with <?php and ends with ?>,
is max. 10-20 lines long and does not require any external 
resources such as databases, etc. If the script requires a 
database to demonstrate the issue, please make sure it creates 
all necessary tables, stored procedures etc.

Please avoid embedding huge scripts into the report.

I tried the following with Ingres 10.1.0 and PHP 5.6.8, and it
worked as expected:

    $conn = new PDO('odbc:69553');
    $conn->exec('drop table foo');
    $conn->exec('create table foo (bar varchar(300))');
    $bar = str_repeat('*', 280);
    $conn->exec("insert into foo values ('$bar')");
    $stmt = $conn->query('select bar from foo');
 [2015-05-10 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-2023 The PHP Group
All rights reserved.
Last updated: Wed Jun 07 22:03:40 2023 UTC