Browse Source

Merge pull request #5661 from nocodb/fix/sqlite-datetime-diff-formula

fix(nocodb): datetime diff result format in sqlite
pull/5669/head
Raju Udava 2 years ago committed by GitHub
parent
commit
794cf70500
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      packages/nocodb/src/db/functionMappings/sqlite.ts

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

@ -188,7 +188,7 @@ const sqlite3 = {
default:
sql = '';
}
return { builder: knex.raw(`${sql} ${colAlias}`) };
return { builder: knex.raw(`ROUND(${sql}) ${colAlias}`) };
},
WEEKDAY: async ({ fn, knex, pt, colAlias }: MapFnArgs) => {
// strftime('%w', date) - day of week 0 - 6 with Sunday == 0

Loading…
Cancel
Save