Browse Source

Merge branch 'develop' into refactor/timezone-locale

pull/5642/head
Wing-Kam Wong 2 years ago
parent
commit
0e38e460ac
  1. 12
      packages/nocodb/package-lock.json
  2. 6
      packages/nocodb/src/db/functionMappings/sqlite.ts

12
packages/nocodb/package-lock.json generated

@ -17639,9 +17639,9 @@
"integrity": "sha512-3lqz5YjWTYnW6dlDa5TLaTCcShfar1e40rmcJVwCBJC6mWlFuj0eCHIElmG1g5kyuJ/GD+8Wn4FFCcz4gJPfaQ==" "integrity": "sha512-3lqz5YjWTYnW6dlDa5TLaTCcShfar1e40rmcJVwCBJC6mWlFuj0eCHIElmG1g5kyuJ/GD+8Wn4FFCcz4gJPfaQ=="
}, },
"node_modules/vm2": { "node_modules/vm2": {
"version": "3.9.17", "version": "3.9.18",
"resolved": "https://registry.npmjs.org/vm2/-/vm2-3.9.17.tgz", "resolved": "https://registry.npmjs.org/vm2/-/vm2-3.9.18.tgz",
"integrity": "sha512-AqwtCnZ/ERcX+AVj9vUsphY56YANXxRuqMb7GsDtAr0m0PcQX3u0Aj3KWiXM0YAHy7i6JEeHrwOnwXbGYgRpAw==", "integrity": "sha512-iM7PchOElv6Uv6Q+0Hq7dcgDtWWT6SizYqVcvol+1WQc+E9HlgTCnPozbQNSP3yDV9oXHQOEQu530w2q/BCVZg==",
"dependencies": { "dependencies": {
"acorn": "^8.7.0", "acorn": "^8.7.0",
"acorn-walk": "^8.2.0" "acorn-walk": "^8.2.0"
@ -31838,9 +31838,9 @@
} }
}, },
"vm2": { "vm2": {
"version": "3.9.17", "version": "3.9.18",
"resolved": "https://registry.npmjs.org/vm2/-/vm2-3.9.17.tgz", "resolved": "https://registry.npmjs.org/vm2/-/vm2-3.9.18.tgz",
"integrity": "sha512-AqwtCnZ/ERcX+AVj9vUsphY56YANXxRuqMb7GsDtAr0m0PcQX3u0Aj3KWiXM0YAHy7i6JEeHrwOnwXbGYgRpAw==", "integrity": "sha512-iM7PchOElv6Uv6Q+0Hq7dcgDtWWT6SizYqVcvol+1WQc+E9HlgTCnPozbQNSP3yDV9oXHQOEQu530w2q/BCVZg==",
"requires": { "requires": {
"acorn": "^8.7.0", "acorn": "^8.7.0",
"acorn-walk": "^8.2.0" "acorn-walk": "^8.2.0"

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

@ -95,9 +95,9 @@ const sqlite3 = {
builder: knex.raw( builder: knex.raw(
`CASE `CASE
WHEN ${(await fn(pt.arguments[0])).builder} LIKE '%:%' THEN WHEN ${(await fn(pt.arguments[0])).builder} LIKE '%:%' THEN
STRFTIME('%Y-%m-%d %H:%M', DATETIME(DATETIME(${fn( STRFTIME('%Y-%m-%d %H:%M', DATETIME(DATETIME(${
pt.arguments[0], (await fn(pt.arguments[0])).builder
)}, 'localtime'), }, 'localtime'),
${dateIN > 0 ? '+' : ''}${ ${dateIN > 0 ? '+' : ''}${
(await fn(pt.arguments[1])).builder (await fn(pt.arguments[1])).builder
} || ' ${String((await fn(pt.arguments[2])).builder).replace( } || ' ${String((await fn(pt.arguments[2])).builder).replace(

Loading…
Cancel
Save