diff --git a/.datatables-commit-sync b/.datatables-commit-sync index fbc630bc..abdbaf69 100644 --- a/.datatables-commit-sync +++ b/.datatables-commit-sync @@ -1 +1 @@ -d484e85534a1c8eb28542be5169d4c28690cae48 +22fb869ab8d64f1ac264cf32509efb4ba832e7f1 diff --git a/examples/server_side/scripts/ssp.class.php b/examples/server_side/scripts/ssp.class.php index 734f8e3a..530a388b 100644 --- a/examples/server_side/scripts/ssp.class.php +++ b/examples/server_side/scripts/ssp.class.php @@ -86,9 +86,10 @@ class SSP { * Construct the LIMIT clause for server-side processing SQL query * * @param array $request Data sent to server by DataTables + * @param array $columns Column information array * @return string SQL limit clause */ - static function limit ( $request ) + static function limit ( $request, $columns ) { $limit = ''; @@ -235,7 +236,7 @@ class SSP { $db = self::db( $conn ); // Build the SQL query string from the request - $limit = self::limit( $request ); + $limit = self::limit( $request, $columns ); $order = self::order( $request, $columns ); $where = self::filter( $request, $columns, $bindings ); @@ -309,7 +310,7 @@ class SSP { $whereAllSql = ''; // Build the SQL query string from the request - $limit = self::limit( $request ); + $limit = self::limit( $request, $columns ); $order = self::order( $request, $columns ); $where = self::filter( $request, $columns, $bindings );