Show
Ignore:
Timestamp:
07/06/10 14:17:37 (3 years ago)
Author:
nikrou
Message:

Bug 1766 fixed : [PostgreSQL] unkown database function UNIX_TIMESTAMP()
Add a new function pwg_db_date_to_ts() to calculate a timestamp from a date
Merge from trunk

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/2.1/include/dblayer/functions_pgsql.inc.php

    r6605 r6667  
    597597} 
    598598 
     599function pwg_db_date_to_ts($date)  
     600{ 
     601  return 'EXTRACT(EPOCH FROM '.$date.')'; 
     602} 
     603 
    599604// my_error returns (or send to standard output) the message concerning the 
    600605// error occured for the last pgsql query.