diff options
| author | Mark Newnham <mark@newnhams.com> | 2019-11-28 15:15:17 -0700 |
|---|---|---|
| committer | Mark Newnham <mark@newnhams.com> | 2019-11-28 15:15:17 -0700 |
| commit | 8eaf842d19e4206e1c44e0eda44688ebfa1728ed (patch) | |
| tree | 74cbaac1881b60cfe29e2ca4251cc814f4efad4a /tests | |
| parent | 02192183acaa167d7986e0c143112c725ca8e552 (diff) | |
| download | adodb-8eaf842d19e4206e1c44e0eda44688ebfa1728ed.tar.gz adodb-8eaf842d19e4206e1c44e0eda44688ebfa1728ed.tar.bz2 adodb-8eaf842d19e4206e1c44e0eda44688ebfa1728ed.zip | |
adodb_strip_order_by() strips incorrectly if there are multiple order by statements #549
If the SQL statement passed to adodb_strip_order contains multiple order by statements, the incorrect one is stripped. This change ensures that only the last one is stripped
Co-Authored-By: mustafa-soner-acar <mustafa-soner-acar@users.noreply.github.com>
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/test.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test.php b/tests/test.php index 983edc12..9ffe6a82 100644 --- a/tests/test.php +++ b/tests/test.php @@ -1589,7 +1589,7 @@ END Adodb; flush(); $saved = $db->debug; $db->debug=1; - $cnt = _adodb_getcount($db, 'select * from ADOXYZ where firstname in (select firstname from ADOXYZ)'); + $cnt = _adodb_S($db, 'select * from ADOXYZ where firstname in (select firstname from ADOXYZ)'); echo "<b>Count=</b> $cnt"; $db->debug=$saved; |
