From e7dc58ac6c5e5bcfd47c388ecd12258f04da56fc Mon Sep 17 00:00:00 2001 From: john Date: Wed, 15 Jul 2020 20:21:04 +0800 Subject: [PATCH] unit testing case update for package gdb --- database/gdb/gdb_z_mysql_internal_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/database/gdb/gdb_z_mysql_internal_test.go b/database/gdb/gdb_z_mysql_internal_test.go index 969ee346a..251a61a6d 100644 --- a/database/gdb/gdb_z_mysql_internal_test.go +++ b/database/gdb/gdb_z_mysql_internal_test.go @@ -75,19 +75,19 @@ 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>=@p1 and sex=@p2", []interface{}{100, 1}) + s = FormatSqlWithArgs("select * from table where id>=@v1 and sex=@v2", []interface{}{100, 1}) t.Assert(s, "select * from table where id>=100 and sex=1") }) // pgsql gtest.C(t, func(t *gtest.T) { var s string - s = FormatSqlWithArgs("select * from table where id>=$1 and sex=$2", []interface{}{100, 1}) + s = FormatSqlWithArgs("select * from table where id>=$v1 and sex=$v2", []interface{}{100, 1}) t.Assert(s, "select * from table where id>=100 and sex=1") }) // oracle gtest.C(t, func(t *gtest.T) { var s string - s = FormatSqlWithArgs("select * from table where id>=:1 and sex=:2", []interface{}{100, 1}) + s = FormatSqlWithArgs("select * from table where id>=:v1 and sex=:v2", []interface{}{100, 1}) t.Assert(s, "select * from table where id>=100 and sex=1") }) }