diff options
Diffstat (limited to 'src/go/plugins/postgres/conn.go')
-rwxr-xr-x | src/go/plugins/postgres/conn.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/go/plugins/postgres/conn.go b/src/go/plugins/postgres/conn.go index de9a22188c2..041a6584e22 100755 --- a/src/go/plugins/postgres/conn.go +++ b/src/go/plugins/postgres/conn.go @@ -73,7 +73,7 @@ func (conn *PGConn) Query(ctx context.Context, query string, args ...interface{} return } -// QueryByName executes a query from queryStorage by its name and returns a singe row. +// QueryByName executes a query from queryStorage by its name and returns a single row. func (conn *PGConn) QueryByName(ctx context.Context, queryName string, args ...interface{}) (rows *sql.Rows, err error) { if sql, ok := (*conn.queryStorage).Get(queryName + sqlExt); ok { normalizedSQL := strings.TrimRight(strings.TrimSpace(sql), ";") @@ -95,7 +95,7 @@ func (conn *PGConn) QueryRow(ctx context.Context, query string, args ...interfac return } -// QueryRowByName executes a query from queryStorage by its name and returns a singe row. +// QueryRowByName executes a query from queryStorage by its name and returns a single row. func (conn *PGConn) QueryRowByName(ctx context.Context, queryName string, args ...interface{}) (row *sql.Row, err error) { if sql, ok := (*conn.queryStorage).Get(queryName + sqlExt); ok { normalizedSQL := strings.TrimRight(strings.TrimSpace(sql), ";") |