Skip to content

Commit 2bf496d

Browse files
committed
Fix bug buildMsSqlParam
1 parent 8098569 commit 2bf496d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

code.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ type DynamicSqlCodeLoader struct {
5252
DB *sql.DB
5353
Query string
5454
ParameterCount int
55-
Map func(string) string
55+
Map func(col string) string
5656
}
5757

5858
func NewDefaultDynamicSqlCodeLoader(db *sql.DB, query string, options ...int) *DynamicSqlCodeLoader {
@@ -320,7 +320,7 @@ func getBuild(db *sql.DB) func(i int) string {
320320
return buildDollarParam
321321
case "*godror.drv":
322322
return buildOracleParam
323-
case "*mysql.MySQLDriver":
323+
case "*mssql.Driver":
324324
return buildMsSqlParam
325325
default:
326326
return buildParam

0 commit comments

Comments
 (0)