Revision 753
Added by harris almost 23 years ago
DBPostgresql.java | ||
---|---|---|
67 | 67 |
* |
68 | 68 |
* @return return the current date and time function name: "now()::date" |
69 | 69 |
*/ |
70 |
public String getDateFunction() { |
|
70 |
public String getDateTimeFunction() {
|
|
71 | 71 |
|
72 | 72 |
//System.out.println("The date and time function: " + "now()::date"); |
73 |
return "now()::date"; |
|
73 |
//to return just the date use now()::date and for the time |
|
74 |
//use now()::time |
|
75 |
return "now()"; |
|
74 | 76 |
} |
75 | 77 |
|
76 | 78 |
/** |
Also available in: Unified diff
changed the getDate method to getDateTime and changed the return
string in the postgresql implementation to "now()" from now()::date