diff --git a/dialect_sqlserver.go b/dialect_sqlserver.go index 8808af59..fd635dd6 100644 --- a/dialect_sqlserver.go +++ b/dialect_sqlserver.go @@ -103,9 +103,9 @@ func (d SqlServerDialect) TruncateClause() string { return "truncate table" } -// Returns "?" +// Returns "@p(i+1)" func (d SqlServerDialect) BindVar(i int) string { - return "?" + return fmt.Sprintf("@p%d", i+1) } func (d SqlServerDialect) InsertAutoIncr(exec SqlExecutor, insertSql string, params ...interface{}) (int64, error) {