bug fixed for oracle NVARCHAR2

This commit is contained in:
Lunny Xiao 2015-04-03 22:37:37 +08:00
parent 12dc100317
commit 7fd31fc7e7
3 changed files with 4 additions and 2 deletions

View File

@ -1 +1 @@
xorm v0.4.3.0401 xorm v0.4.3.0403

View File

@ -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":

View File

@ -13,7 +13,7 @@ import (
) )
const ( const (
Version string = "0.4.3.0401" Version string = "0.4.3.0403"
) )
func regDrvsNDialects() bool { func regDrvsNDialects() bool {