linkable icon indicating copy to clipboard operation
linkable copied to clipboard

Cakephp pagination and Linkable behavior is Not working in Postgres (have to modify behavior to fix it).

Open phpcoder2011 opened this issue 14 years ago • 1 comments

Hi. I think that this will not work in postgres. But it is probably easy to fix. For those who have an issue go to linkable behavior class and change every record like this

"elseif($query['fields'] != 'COUNT(*) AS count') {"

to something like this:

"elseif(strpos($query['fields'], 'COUNT(*)') === false) {"

phpcoder2011 avatar Oct 11 '11 07:10 phpcoder2011

I have absolutely no experience with setting up a Postgres server, so it's not easy for me to test a fix. Would you be able to provide a tested patch?

Terr avatar Oct 11 '11 08:10 Terr