Browse Source

Merge pull request #6767 from nocodb/fix/6683-sqlite-datetime

fix: Avoid treating default value `CURRENT_TIMESTAMP`as string
pull/6812/head
աӄա 1 year ago committed by GitHub
parent
commit
c4ddc13f21
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 8
      packages/nocodb/src/db/sql-client/lib/sqlite/SqliteClient.ts

8
packages/nocodb/src/db/sql-client/lib/sqlite/SqliteClient.ts

@ -2198,6 +2198,14 @@ class SqliteClient extends KnexClient {
} }
return result; return result;
} }
genValue(value): any {
if (value === 'CURRENT_TIMESTAMP') {
return value;
}
return super.genValue(value);
}
} }
export default SqliteClient; export default SqliteClient;

Loading…
Cancel
Save