fixing tests

This commit is contained in:
Kononnable 2017-11-20 22:35:21 +01:00
parent 4e5393d00e
commit b60414792e
2 changed files with 5 additions and 5 deletions

View File

@ -152,7 +152,7 @@ export class PostgresDriver extends AbstractDriver {
colInfo.sql_type = "time with time zone"
break;
case "point":
colInfo.ts_type = "string|Object"
colInfo.ts_type = "string | Object"
colInfo.sql_type = "point"
break;
case "line":
@ -160,11 +160,11 @@ export class PostgresDriver extends AbstractDriver {
colInfo.sql_type = "line"
break;
case "lseg":
colInfo.ts_type = "string|string[]"
colInfo.ts_type = "string | string[]"
colInfo.sql_type = "lseg"
break;
case "box":
colInfo.ts_type = "string|Object"
colInfo.ts_type = "string | Object"
colInfo.sql_type = "box"
break;
case "path":
@ -176,7 +176,7 @@ export class PostgresDriver extends AbstractDriver {
colInfo.sql_type = "polygon"
break;
case "circle":
colInfo.ts_type = "string|Object"
colInfo.ts_type = "string | Object"
colInfo.sql_type = "circle"
break;
case "cidr":

View File

@ -7,7 +7,7 @@ export class ColumnInfo {
name: string = '';
default: string | null = null;
is_nullable: boolean = false;
ts_type: 'number' | 'string' | 'boolean' | 'Date' | 'Buffer' | 'Object' | 'string|Object' | 'string|string[]' | 'any';
ts_type: 'number' | 'string' | 'boolean' | 'Date' | 'Buffer' | 'Object' | 'string | Object' | 'string | string[]' | 'any';
sql_type: ColumnType;
char_max_lenght: number | null = null;
isPrimary: boolean = false;