From ee5ddaab523d6824d0efc4fe3a207fe308ec53de Mon Sep 17 00:00:00 2001 From: john Date: Mon, 20 Jul 2020 22:47:12 +0800 Subject: [PATCH] fix place holder for pgsql --- database/gdb/gdb_z_mysql_internal_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/database/gdb/gdb_z_mysql_internal_test.go b/database/gdb/gdb_z_mysql_internal_test.go index b010bb3db..294b46bc3 100644 --- a/database/gdb/gdb_z_mysql_internal_test.go +++ b/database/gdb/gdb_z_mysql_internal_test.go @@ -81,7 +81,7 @@ func Test_Func_FormatSqlWithArgs(t *testing.T) { // pgsql 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>=$1 and sex=$2", []interface{}{100, 1}) t.Assert(s, "select * from table where id>=100 and sex=1") }) // oracle