Browse Source

Merge pull request #7306 from nocodb/fix/7303-sqlite-formula-now-fn

fix: SQLIte Formula - include time value in NOW function
pull/7308/head
Raju Udava 11 months ago committed by GitHub
parent
commit
a7c3bb48bf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      packages/nocodb/src/db/functionMappings/sqlite.ts

6
packages/nocodb/src/db/functionMappings/sqlite.ts

@ -45,7 +45,11 @@ const sqlite3 = {
), ),
}; };
}, },
NOW: 'DATE', NOW: (args: MapFnArgs) => {
return {
builder: args.knex.raw(`DATETIME('now', 'localtime')${args.colAlias}`),
};
},
SEARCH: 'INSTR', SEARCH: 'INSTR',
async INT(args: MapFnArgs) { async INT(args: MapFnArgs) {
return { return {

Loading…
Cancel
Save