From 10074b77551dcf1ac7e92d1bdb7e0dec2a2e0a3d Mon Sep 17 00:00:00 2001 From: chris-sun-star <85611200+chris-sun-star@users.noreply.github.com> Date: Thu, 21 Sep 2023 17:32:44 +0800 Subject: [PATCH] fix query row (#70) fix query row param --- pkg/oceanbase/operation/manager.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/oceanbase/operation/manager.go b/pkg/oceanbase/operation/manager.go index 42ec5c871..aec0d2cc9 100644 --- a/pkg/oceanbase/operation/manager.go +++ b/pkg/oceanbase/operation/manager.go @@ -69,7 +69,7 @@ func (m *OceanbaseOperationManager) QueryRowWithTimeout(timeout time.Duration, r return err } func (m *OceanbaseOperationManager) QueryRow(ret any, sql string, params ...any) error { - return m.QueryRowWithTimeout(config.DefaultSqlTimeout, ret, sql, params) + return m.QueryRowWithTimeout(config.DefaultSqlTimeout, ret, sql, params...) } func (m *OceanbaseOperationManager) QueryListWithTimeout(timeout time.Duration, ret any, sql string, params ...any) error {