Changeset 17758 for extensions/EStat/lib/statDBGlobal.class.inc.php
- Timestamp:
- Sep 5, 2012, 4:15:54 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/EStat/lib/statDBGlobal.class.inc.php
r17737 r17758 223 223 SELECT uaType, IPadress, catId, $year, $month, SUM(visits), country 224 224 FROM period.statIP 225 GROUP BY uaType, IPadress, catId ;225 GROUP BY uaType, IPadress, catId, country; 226 226 227 227 REPLACE INTO main.statUA (uaData, uaValue, uaVersion, year, month, visits) … … 486 486 if(!isset($filter['country'])) $filter['country']=null; 487 487 488 $filter['IPadress']=$this->checkIPFilter($filter['IPadress']); 488 489 // check filter values - getOperator check and 'clean' the filter 489 490 $filter['IPadress']=$this->getOperator($filter['IPadress'], 'IP'); … … 543 544 case ASDF_GET_ROWS: 544 545 $sql=$select." FROM statip ".$where.$groupBy.$orderBy.$limit; 545 546 546 $sqlStm=$this->dbHandle->prepare($sql); 547 547 foreach($IPList as $num=>$IP) … … 1245 1245 ); 1246 1246 $this->dbHandle->exec("CREATE UNIQUE INDEX iIP ON statIP ('uaType', 'IPadress', 'catId', 'year', 'month');"); 1247 $this->dbHandle->exec("CREATE UNIQUEINDEX iIPPeriod ON statIP ('year', 'month', 'IPadress', 'uaType');");1247 $this->dbHandle->exec("CREATE INDEX iIPPeriod ON statIP ('year', 'month', 'IPadress', 'uaType');"); 1248 1248 } 1249 1249
Note: See TracChangeset
for help on using the changeset viewer.