Changeset 6605 for branches/2.1/include/dblayer
- Timestamp:
- Jun 25, 2010, 9:45:19 PM (14 years ago)
- Location:
- branches/2.1/include/dblayer
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.1/include/dblayer/functions_mysql.inc.php
r6579 r6605 561 561 */ 562 562 563 564 563 function pwg_db_get_recent_period_expression($period, $date='CURRENT_DATE') 565 564 { … … 581 580 } 582 581 582 function pwg_db_get_flood_period_expression($seconds) 583 { 584 return 'SUBDATE(now(), INTERVAL '.$seconds.' SECOND)'; 585 } 586 583 587 function pwg_db_get_hour($date) 584 588 { -
branches/2.1/include/dblayer/functions_pdo-sqlite.inc.php
r6581 r6605 500 500 } 501 501 502 function pwg_db_get_flood_period_expression($seconds) 503 { 504 return 'datetime(\'now\', \'localtime\', \''.-$seconds.' seconds\')'; 505 } 506 502 507 function pwg_db_get_hour($date) 503 508 { -
branches/2.1/include/dblayer/functions_pgsql.inc.php
r6592 r6605 547 547 } 548 548 549 function pwg_db_get_flood_period_expression($seconds) 550 { 551 return 'now() - \''.$seconds.' SECOND\'::interval'; 552 } 553 549 554 function pwg_db_get_hour($date) 550 555 { -
branches/2.1/include/dblayer/functions_sqlite.inc.php
r6581 r6605 512 512 } 513 513 514 function pwg_db_get_flood_period_expression($seconds) 515 { 516 return 'datetime(\'now\', \'localtime\', \''.-$seconds.' seconds\')'; 517 } 518 514 519 function pwg_db_get_hour($date) 515 520 {
Note: See TracChangeset
for help on using the changeset viewer.