php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #69743 Prepared statements in IN not returning values
Submitted: 2015-06-01 19:48 UTC Modified: 2020-10-18 04:22 UTC
From: dmitriy dot y at gmail dot com Assigned: cmb (profile)
Status: No Feedback Package: ODBC related
PHP Version: 5.5.25 OS: CentOS 7
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
46 + 43 = ?
Subscribe to this entry?

 
 [2015-06-01 19:48 UTC] dmitriy dot y at gmail dot com
Description:
------------
This works fine on Windows 8.1 64-bit, but when migrated to CentOS 7, it returns null. Connecting to MS SQL Server 2012.

Test script:
---------------
Works:
$res = @odbc_exec($db, 'SELECT CustomerID FROM Customers WHERE CustomerID IN (1000,999,1013)');


Does not work:
$query = odbc_prepare($db, 'SELECT CustomerID FROM Customers WHERE CustomerID IN (?,?,?)');
$res = @odbc_execute($query, array(1000,999,1013));


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2020-10-05 09:03 UTC] cmb@php.net
-Status: Open +Status: Feedback -Assigned To: +Assigned To: cmb
 [2020-10-05 09:03 UTC] cmb@php.net
Not enough information was provided for us to be able
to handle this bug. Please re-read the instructions at
http://bugs.php.net/how-to-report.php

If you can provide more information, feel free to add it
to this bug and change the status back to "Open".

Thank you for your interest in PHP.

For a start, it might be helpful to not suppress errors for a test
script.
 [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-2024 The PHP Group
All rights reserved.
Last updated: Sun May 26 18:01:33 2024 UTC