bug fixed for oracle NVARCHAR2
This commit is contained in:
parent
12dc100317
commit
7fd31fc7e7
|
@ -740,6 +740,8 @@ func (db *oracle) GetColumns(tableName string) ([]string, map[string]*core.Colum
|
||||||
switch dt {
|
switch dt {
|
||||||
case "VARCHAR2":
|
case "VARCHAR2":
|
||||||
col.SQLType = core.SQLType{core.Varchar, len1, len2}
|
col.SQLType = core.SQLType{core.Varchar, len1, len2}
|
||||||
|
case "NVARCHAR2":
|
||||||
|
col.SQLType = core.SQLType{core.NVarchar, len1, len2}
|
||||||
case "TIMESTAMP WITH TIME ZONE":
|
case "TIMESTAMP WITH TIME ZONE":
|
||||||
col.SQLType = core.SQLType{core.TimeStampz, 0, 0}
|
col.SQLType = core.SQLType{core.TimeStampz, 0, 0}
|
||||||
case "NUMBER":
|
case "NUMBER":
|
||||||
|
|
Loading…
Reference in New Issue