1
0
Fork 0
mirror of synced 2024-08-23 05:51:29 +12:00

Add comment

This commit is contained in:
Adria Navarro 2024-05-21 16:35:11 +02:00
parent a55f975489
commit 4bf0a43c64

View file

@ -136,6 +136,7 @@ function generateSelectStatement(
columnSchema?.type === FieldType.DATETIME &&
columnSchema.timeOnly
) {
// Time gets returned as timestamp from mssql, not matching the expected HH:mm format
return knex.raw(`CONVERT(varchar, ${field}, 108) as "${field}"`)
}
return `${field} as ${field}`