fix(SQLite): error with integer timestamp fields

This commit is contained in:
Fabio Di Stasio 2023-02-04 09:07:41 +01:00
parent a124f04661
commit 2b5e1e7b39
1 changed files with 2 additions and 2 deletions

View File

@ -672,8 +672,8 @@ export class SQLiteClient extends AntaresCore {
if ([...TIME, ...DATETIME].includes(parsedType)) {
const firstNotNull = queryAllResult.find(res => res[field.name] !== null);
if (firstNotNull && firstNotNull[field.name].includes('.'))
length = firstNotNull[field.name].split('.').pop().length;
if (firstNotNull && String(firstNotNull[field.name]).includes('.'))
length = String(firstNotNull[field.name]).split('.').pop().length;
}
return {