|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #81052 Parameter binding with SKIP, FIRST, LIMIT do not work
Submitted: 2021-05-19 14:12 UTC Modified: -
From: madis at creditinfo dot ee Assigned:
Status: Open Package: PDO_INFORMIX (PECL)
PHP Version: 8.0.6 OS:
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:
Solve the problem:
18 + 4 = ?
Subscribe to this entry?

 [2021-05-19 14:12 UTC] madis at creditinfo dot ee
Parameter binding with SKIP, FIRST, LIMIT do not work. An old bug so OS, PHP and PDO_INFORMIX versions should not matter too much. Did the latest test with php:8.0.6-fpm Docker image and PDO_INFORMIX version 1.3.4.

Brought up on SO a long time ago:

Test script:
$pdo = new PDO();
$sql = 'SELECT FIRST ? * FROM companies';
$query = $pdo->prepare($sql);
$result = $query->fetchAll(PDO::FETCH_ASSOC);

Expected result:
No errors

Actual result:
Fatal error: Uncaught PDOException: SQLSTATE[HY004]: Invalid SQL data type: -11064 [Informix][Informix ODBC Driver]SQL data type out of range.


Add a Patch

Pull Requests

Add a Pull Request

PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 23 16:01:30 2024 UTC