Closed (fixed)
Project:
Boost
Version:
6.x-1.x-dev
Component:
Code
Priority:
Minor
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
30 Mar 2010 at 21:02 UTC
Updated:
20 Apr 2010 at 23:00 UTC
Hi there,
Again, the SHOW instruction is not compatible between PostgreSQL and MySQL. So if possible, avoid! Right now, I'm getting those errors in PostgreSQL:
I see the following around line 3628:
$now = _boost_microtime_float();
$total_time = $now - $timer;
if ($total_time > 59) {
$total_time = $now;
//Ping Database to keep connection alive
db_query("SHOW PROCESSLIST");
}
I would think that a "SELECT 1" would do the trick. You may want to test with MySQL, although I do not think that I'd lose my PostgreSQL connection anyway, but if some people need that feature, a "SELECT 1" should do. (unless somehow that does not travel on the network connection?! Would the frontend know how to parse the SQL orders?)
Thank you.
Alexis
Comments
Comment #1
AlexisWilke commentedOkay! Now I understand why I had 5 pages of the error! 8-)
The $timer is not being reset properly! You want to set $timer to $now, not $total_time...
Thank you.
Alexis
Comment #2
mikeytown2 commentedcommitted