修复使用 postgres 数据库时,位置参数重复,导致参数与值不对应的问题。 (#960)
* 修复使用 postgres 数据库时,位置参数重复,导致参数与值不对应的问题。 * 修复使用 postgres 数据库时,位置参数重复,导致参数与值不对应的问题。 Co-authored-by: toven <toven@advan.onaliyun.com>
This commit is contained in:
@@ -121,5 +121,5 @@ func TestBuildSqlLike(t *testing.T) {
|
||||
|
||||
func TestJoin(t *testing.T) {
|
||||
ret := PostgreSqlJoin([]string{"name", "age"})
|
||||
assert.Equal(t, "name = $1, age = $2", ret)
|
||||
assert.Equal(t, "name = $2, age = $3", ret)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user