1
0
Fork 0
mirror of synced 2024-07-08 07:46:10 +12:00

Merge pull request #2715 from mslourens/extend_postgres_data_types

Extend Postgres data type map
This commit is contained in:
Martin McKeaveney 2021-09-23 12:25:03 +01:00 committed by GitHub
commit ec30a0b0b0

View file

@ -84,10 +84,13 @@ module PostgresModule {
bigint: FieldTypes.NUMBER, bigint: FieldTypes.NUMBER,
decimal: FieldTypes.NUMBER, decimal: FieldTypes.NUMBER,
smallint: FieldTypes.NUMBER, smallint: FieldTypes.NUMBER,
real: FieldTypes.NUMBER,
"double precision": FieldTypes.NUMBER,
timestamp: FieldTypes.DATETIME, timestamp: FieldTypes.DATETIME,
time: FieldTypes.DATETIME, time: FieldTypes.DATETIME,
boolean: FieldTypes.BOOLEAN, boolean: FieldTypes.BOOLEAN,
json: FieldTypes.JSON, json: FieldTypes.JSON,
date: FieldTypes.DATETIME,
} }
async function internalQuery(client: any, query: SqlQuery) { async function internalQuery(client: any, query: SqlQuery) {