Skip to content

Commit 3342abb

Browse files
committed
SQL.md
1 parent 5ed33df commit 3342abb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

SQL.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ err := retry.DoTx(context.TODO(), db, func(ctx context.Context, tx *sql.Tx) erro
268268
`database/sql` driver for `YDB` supports the following types of query parameters:
269269
* multiple `sql.NamedArg` arguments (standard `database/sql` query parameters)
270270
```go
271-
rows, err := cc.QueryContext(ctx, `
271+
rows, err := db.QueryContext(ctx, `
272272
DECLARE $seasonTitle AS Utf8;
273273
DECLARE $views AS Uint64;
274274
SELECT season_id FROM seasons WHERE title LIKE $seasonTitle AND vews > $views;
@@ -279,7 +279,7 @@ err := retry.DoTx(context.TODO(), db, func(ctx context.Context, tx *sql.Tx) erro
279279
```
280280
* multiple native `ydb-go-sdk` `table.ParameterOption` arguments which are constructed with `table.ValueParam("name", value)`
281281
```go
282-
rows, err := cc.QueryContext(ctx, `
282+
rows, err := db.QueryContext(ctx, `
283283
DECLARE $seasonTitle AS Utf8;
284284
DECLARE $views AS Uint64;
285285
SELECT season_id FROM seasons WHERE title LIKE $seasonTitle AND vews > $views;
@@ -290,7 +290,7 @@ err := retry.DoTx(context.TODO(), db, func(ctx context.Context, tx *sql.Tx) erro
290290
```
291291
* single native `ydb-go-sdk` `*table.QueryParameters` argument which are constructed with `table.NewQueryParameters(parameterOptions...)`
292292
```go
293-
rows, err := cc.QueryContext(ctx, `
293+
rows, err := db.QueryContext(ctx, `
294294
DECLARE $seasonTitle AS Utf8;
295295
DECLARE $views AS Uint64;
296296
SELECT season_id FROM seasons WHERE title LIKE $seasonTitle AND vews > $views;

0 commit comments

Comments
 (0)