fix place holder for mssql

This commit is contained in:
john 2020-07-20 21:55:34 +08:00
parent 48c84bf74a
commit 52b6e8ef9d

View File

@ -75,7 +75,7 @@ func Test_Func_FormatSqlWithArgs(t *testing.T) {
// mssql
gtest.C(t, func(t *gtest.T) {
var s string
s = FormatSqlWithArgs("select * from table where id>=@v1 and sex=@v2", []interface{}{100, 1})
s = FormatSqlWithArgs("select * from table where id>=@p1 and sex=@p2", []interface{}{100, 1})
t.Assert(s, "select * from table where id>=100 and sex=1")
})
// pgsql