Fix null references
This commit is contained in:
parent
0b01b67661
commit
2b1df81649
|
@ -133,7 +133,7 @@ function generateSelectStatement(
|
|||
}
|
||||
if (
|
||||
knex.client.config.client === SqlClient.MS_SQL &&
|
||||
columnSchema.type === FieldType.DATETIME &&
|
||||
columnSchema?.type === FieldType.DATETIME &&
|
||||
columnSchema.timeOnly
|
||||
) {
|
||||
return knex.raw(`CONVERT(varchar, ${field}, 108) as "${field}"`)
|
||||
|
|
Loading…
Reference in New Issue