From 69dadbb1f3c6d2a2a2e9c3ce56e284a45026cbcb Mon Sep 17 00:00:00 2001 From: Samy Sultan Date: Fri, 25 Jun 2021 21:29:49 +0200 Subject: [PATCH] fix for bug (index for varchar2 columns is disabled during query) due to wrong parameter type send to server --- v2/parameter.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/v2/parameter.go b/v2/parameter.go index bc9e2ece..e73153fd 100644 --- a/v2/parameter.go +++ b/v2/parameter.go @@ -12,9 +12,9 @@ type OracleType int type ParameterDirection int type NVarChar string -func (n *NVarChar) ConvertValue(v interface{}) (driver.Value, error) { - return driver.Value(string(*n)), nil -} +//func (n *NVarChar) ConvertValue(v interface{}) (driver.Value, error) { +// return driver.Value(string(*n)), nil +//} func (n *NVarChar) Value() (driver.Value, error) { return driver.Value(string(*n)), nil