Bug #70949 [NEW]: SQL Statements With Limit And Offset Fail

From: Date: Fri, 20 Nov 2015 11:10:43 +0000
Subject: Bug #70949 [NEW]: SQL Statements With Limit And Offset Fail
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-197350@lists.php.net to get a copy of this message
From:             s7g2vp2 at yahoo dot co dot uk
Operating system: Windows Server 2012
PHP version:      7.0.0RC7
Package:          MySQLi related
Bug Type:         Bug
Bug description:SQL Statements With Limit And Offset Fail

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 bug report at https://bugs.php.net/bug.php?id=70949&edit=1
-- 
Try a snapshot (PHP 5.4):   https://bugs.php.net/fix.php?id=70949&r=trysnapshot54
Try a snapshot (PHP 5.5):   https://bugs.php.net/fix.php?id=70949&r=trysnapshot55
Try a snapshot (trunk):     https://bugs.php.net/fix.php?id=70949&r=trysnapshottrunk
Fixed in SVN:               https://bugs.php.net/fix.php?id=70949&r=fixed
Fixed in release:           https://bugs.php.net/fix.php?id=70949&r=alreadyfixed
Need backtrace:             https://bugs.php.net/fix.php?id=70949&r=needtrace
Need Reproduce Script:      https://bugs.php.net/fix.php?id=70949&r=needscript
Try newer version:          https://bugs.php.net/fix.php?id=70949&r=oldversion
Not developer issue:        https://bugs.php.net/fix.php?id=70949&r=support
Expected behavior:          https://bugs.php.net/fix.php?id=70949&r=notwrong
Not enough info:            https://bugs.php.net/fix.php?id=70949&r=notenoughinfo
Submitted twice:            https://bugs.php.net/fix.php?id=70949&r=submittedtwice
register_globals:           https://bugs.php.net/fix.php?id=70949&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=70949&r=php4
Daylight Savings:           https://bugs.php.net/fix.php?id=70949&r=dst
IIS Stability:              https://bugs.php.net/fix.php?id=70949&r=isapi
Install GNU Sed:            https://bugs.php.net/fix.php?id=70949&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=70949&r=float
No Zend Extensions:         https://bugs.php.net/fix.php?id=70949&r=nozend
MySQL Configuration Error:  https://bugs.php.net/fix.php?id=70949&r=mysqlcfg



Thread (9 messages)

« previous php.bugs (#197350) next »