Browse Source

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

tags/v4.5.0beta1
Jörn Friedrich Dreyer 12 years ago
parent
commit
15cdde74d3
1 changed files with 3 additions and 3 deletions
  1. 3
    3
      lib/MDB2/Driver/Function/sqlite3.php

+ 3
- 3
lib/MDB2/Driver/Function/sqlite3.php View File

@@ -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';
}
}


Loading…
Cancel
Save