From 69e6fd5abcdf0e0254142948d39bb28eab9255d0 Mon Sep 17 00:00:00 2001 From: Andreas Fernandez <andreas.fernandez@aspedia.de> Date: Mon, 24 Nov 2014 10:21:40 +0100 Subject: [PATCH] [BUGFIX] Fix typo of variable $numRows got mixed up with $numrows which could lead to invalid SQL statements. Resolves: #63281 Releases: master, 6.2 Change-Id: I209b41d3f502841b74fac7f047aa68a3e45bf271 Reviewed-on: http://review.typo3.org/34530 Reviewed-by: Mathias Schreiber <mathias.schreiber@wmdb.de> Tested-by: Mathias Schreiber <mathias.schreiber@wmdb.de> Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl> Tested-by: Wouter Wolters <typo3@wouterwolters.nl> --- typo3/sysext/dbal/Classes/Database/AdodbPreparedStatement.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/typo3/sysext/dbal/Classes/Database/AdodbPreparedStatement.php b/typo3/sysext/dbal/Classes/Database/AdodbPreparedStatement.php index 95204df18211..566b942ac279 100644 --- a/typo3/sysext/dbal/Classes/Database/AdodbPreparedStatement.php +++ b/typo3/sysext/dbal/Classes/Database/AdodbPreparedStatement.php @@ -164,7 +164,7 @@ class AdodbPreparedStatement extends \TYPO3\CMS\Dbal\Database\DatabaseConnection // If there are two parameters, do mapping differently than otherwise: $numRows = $splitLimit[1]; $offset = $splitLimit[0]; - $limit = $numrows . ' OFFSET ' . $offset; + $limit = $numRows . ' OFFSET ' . $offset; } } if ($limit !== '') { -- GitLab