Ignore:
Timestamp:
Nov 7, 2010, 4:48:04 PM (14 years ago)
Author:
grum
Message:

fix bug:2009 - MySQL error on search tab
fix bug:2012 - MySQL 5.1 incompatibility

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/GMaps/gmaps_root.class.inc.php

    r7619 r7676  
    358358      $date=date('Y-m-d H:i:s', time()-$time);
    359359
    360       $sql="DELETE FROM ".$this->tables['cache']." pgc
    361               USING ".$this->tables['cache']." pgc
     360      $sql="DELETE FROM ".$this->tables['cache']."
     361              USING ".$this->tables['cache']."
    362362                JOIN ".$this->tables['cache_id']." pgci
    363                 ON pgc.requestId = pgci.requestId
     363                ON ".$this->tables['cache'].".requestId = pgci.requestId
    364364            WHERE pgci.`date` < '$date';";
    365365      pwg_query($sql);
Note: See TracChangeset for help on using the changeset viewer.