From 7fd31fc7e76529b64cba7c91ff8ad0d48bf2b1c1 Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Fri, 3 Apr 2015 22:37:37 +0800 Subject: [PATCH] bug fixed for oracle NVARCHAR2 --- VERSION | 2 +- oracle_dialect.go | 2 ++ xorm.go | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/VERSION b/VERSION index 114b15ec..e1c72ba8 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -xorm v0.4.3.0401 +xorm v0.4.3.0403 diff --git a/oracle_dialect.go b/oracle_dialect.go index 23bf3940..71d31977 100644 --- a/oracle_dialect.go +++ b/oracle_dialect.go @@ -740,6 +740,8 @@ func (db *oracle) GetColumns(tableName string) ([]string, map[string]*core.Colum switch dt { case "VARCHAR2": col.SQLType = core.SQLType{core.Varchar, len1, len2} + case "NVARCHAR2": + col.SQLType = core.SQLType{core.NVarchar, len1, len2} case "TIMESTAMP WITH TIME ZONE": col.SQLType = core.SQLType{core.TimeStampz, 0, 0} case "NUMBER": diff --git a/xorm.go b/xorm.go index 588f7e90..e67e342a 100644 --- a/xorm.go +++ b/xorm.go @@ -13,7 +13,7 @@ import ( ) const ( - Version string = "0.4.3.0401" + Version string = "0.4.3.0403" ) func regDrvsNDialects() bool {