Bug #70949 [Opn->Fbk]: SQL Statements With Limit And Offset Fail
Edit report at https://bugs.php.net/bug.php?id=70949&edit=1
ID: 70949
Updated by: laruence@php.net
Reported by: s7g2vp2 at yahoo dot co dot uk
Summary: SQL Statements With Limit And Offset Fail
-Status: Open
+Status: Feedback
Type: Bug
Package: MySQLi related
Operating System: Windows Server 2012
PHP Version: 7.0.0RC7
Block user comment: N
Private report: N
New Comment:
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.
Previous Comments:
------------------------------------------------------------------------
[2015-11-20 11:10:42] s7g2vp2 at yahoo dot co dot uk
Description:
------------
While testing our app using PHP7RC7 we noticed some of the SQL statements failed to return a result
set.
After some investigation it appears that the syntax LIMIT x OFFSET y causes a problem. The
alternative syntax LIMIT y,x does appear to work.
We are using MySQLi driver and prepared statements. The LIMIT & OFFSET values are part of the
statement and not bound.
All statements work in previous versions of PHP and also work in MySQL Workbench.
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=70949&edit=1
Thread (9 messages)