We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 087d8da commit 4dadfd3Copy full SHA for 4dadfd3
tests/integration/query_tx_execute_test.go
@@ -31,7 +31,7 @@ func TestQueryTxExecute(t *testing.T) {
31
)
32
require.NoError(t, err)
33
err = db.Query().DoTx(ctx, func(ctx context.Context, tx query.TxActor) (err error) {
34
- res, err := tx.Execute(ctx, "SELECT 1")
+ res, err := tx.Execute(ctx, "SELECT 1 AS col1")
35
if err != nil {
36
return err
37
}
@@ -43,7 +43,8 @@ func TestQueryTxExecute(t *testing.T) {
43
44
45
46
- err = row.Scan(nil)
+ var col1 int
47
+ err = row.ScanNamed(query.Named("col1", &col1))
48
if err != nil && !errors.Is(err, internalQuery.ErrNotImplemented) {
49
50
0 commit comments