Skip to content
Snippets Groups Projects
Commit 15cdde74 authored by Jörn Friedrich Dreyer's avatar Jörn Friedrich Dreyer
Browse files

return standard SQL values (sqlite3 understands CURRENT_...)

parent 59cf1d19
No related branches found
No related tags found
No related merge requests found
......@@ -55,12 +55,12 @@ class MDB2_Driver_Function_sqlite3 extends MDB2_Driver_Function_Common
{
switch ($type) {
case 'time':
return 'time(\'now\')';
return 'CURRENT_TIME';
case 'date':
return 'date(\'now\')';
return 'CURRENT_DATE';
case 'timestamp':
default:
return 'datetime(\'now\')';
return 'CURRENT_TIMESTAMP';
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment