Changeset 6666 for trunk/include/dblayer
- Timestamp:
- Jul 6, 2010, 2:14:17 PM (14 years ago)
- Location:
- trunk/include/dblayer
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/dblayer/functions_mysql.inc.php
r6604 r6666 637 637 } 638 638 639 function pwg_db_date_to_ts($date) 640 { 641 return 'UNIX_TIMESTAMP('.$date.')'; 642 } 643 639 644 // my_error returns (or send to standard output) the message concerning the 640 645 // error occured for the last mysql query. -
trunk/include/dblayer/functions_pdo-sqlite.inc.php
r6604 r6666 551 551 } 552 552 553 function pwg_db_date_to_ts($date) 554 { 555 return 'UNIX_TIMESTAMP('.$date.')'; 556 } 557 553 558 // my_error returns (or send to standard output) the message concerning the 554 559 // error occured for the last mysql query. -
trunk/include/dblayer/functions_pgsql.inc.php
r6604 r6666 597 597 } 598 598 599 function pwg_db_date_to_ts($date) 600 { 601 return 'EXTRACT(EPOCH FROM '.$date.')'; 602 } 603 599 604 // my_error returns (or send to standard output) the message concerning the 600 605 // error occured for the last pgsql query. -
trunk/include/dblayer/functions_sqlite.inc.php
r6604 r6666 562 562 } 563 563 564 function pwg_db_date_to_ts($date) 565 { 566 return 'UNIX_TIMESTAMP('.$date.')'; 567 } 568 564 569 // my_error returns (or send to standard output) the message concerning the 565 570 // error occured for the last mysql query.
Note: See TracChangeset
for help on using the changeset viewer.