is there a bug in datatables.net/examples/server_side/server_side.html

is there a bug in datatables.net/examples/server_side/server_side.html

london59london59 Posts: 1Questions: 0Answers: 0
edited April 2013 in General
It appears to me that the query that determines the filter set size should not use the query:

$sQuery = "
SELECT *
FROM $sTable
$sWhere
$sOrder
$sLimit
";

but should rather use my version:

$PSSsQuery = "
SELECT *
FROM $sTable
$sWhere
$sOrder
";

any thoughts?

Paul

Replies

  • allanallan Posts: 63,516Questions: 1Answers: 10,472 Site admin
    No there isn't. There are three queries:

    1. Get the data for the current page
    2. Get the number of records that are in the filtered set
    3. Get the total number of records.

    The current code performs those actions. I'm quite prepared to be proven wrong, but it looks right to me.

    Allan
This discussion has been closed.