PostgreSQL Example Fix

PostgreSQL Example Fix

htom81htom81 Posts: 1Questions: 0Answers: 0
edited March 2013 in Bug reports
Hi,

I found a bug in the PostgreSQL example, change

[code]
/*
* Paging
*/
$sLimit = "";
if ( isset( $_GET['iDisplayStart'] ) && $_GET['iDisplayLength'] != '-1' )
{
$sLimit = "LIMIT ".intval( $_GET['iDisplayStart'] )." OFFSET ".
intval( $_GET['iDisplayLength'] );
}
[/code]
to
[code]
/*
* Paging
*/
$sLimit = "";
if ( isset( $_GET['iDisplayStart'] ) && $_GET['iDisplayLength'] != '-1' )
{
$sLimit = "LIMIT ".intval( $_GET['iDisplayLength'] )." OFFSET ".
intval( $_GET['iDisplayStart'] );
}
[/code]
to display values, otherwise no entries are shown.

Regards,
Tom

Replies

  • allanallan Posts: 57,229Questions: 1Answers: 9,111 Site admin
    I'm probably just loosing it, but I don't actually see a difference between the two?

    Allan
This discussion has been closed.