@@ -258,8 +258,9 @@ func (sc *snowflakeConn) BeginTx(
258
258
return nil , driver .ErrBadConn
259
259
}
260
260
isDesc := isDescribeOnly (ctx )
261
+ isInternal := isInternal (ctx )
261
262
if _ , err := sc .exec (ctx , "BEGIN" , false , /* noResult */
262
- false /* isInternal */ , isDesc , nil ); err != nil {
263
+ isInternal , isDesc , nil ); err != nil {
263
264
return nil , err
264
265
}
265
266
return & snowflakeTx {sc , ctx }, nil
@@ -318,9 +319,9 @@ func (sc *snowflakeConn) ExecContext(
318
319
}
319
320
noResult := isAsyncMode (ctx )
320
321
isDesc := isDescribeOnly (ctx )
321
- // TODO handle isInternal
322
+ isInternal := isInternal ( ctx )
322
323
ctx = setResultType (ctx , execResultType )
323
- data , err := sc .exec (ctx , query , noResult , false /* isInternal */ , isDesc , args )
324
+ data , err := sc .exec (ctx , query , noResult , isInternal , isDesc , args )
324
325
if err != nil {
325
326
logger .WithContext (ctx ).Infof ("error: %v" , err )
326
327
if data != nil {
@@ -407,8 +408,8 @@ func (sc *snowflakeConn) queryContextInternal(
407
408
noResult := isAsyncMode (ctx )
408
409
isDesc := isDescribeOnly (ctx )
409
410
ctx = setResultType (ctx , queryResultType )
410
- // TODO: handle isInternal
411
- data , err := sc .exec (ctx , query , noResult , false /* isInternal */ , isDesc , args )
411
+ isInternal := isInternal ( ctx )
412
+ data , err := sc .exec (ctx , query , noResult , isInternal , isDesc , args )
412
413
if err != nil {
413
414
logger .WithContext (ctx ).Errorf ("error: %v" , err )
414
415
if data != nil {
@@ -475,9 +476,9 @@ func (sc *snowflakeConn) Ping(ctx context.Context) error {
475
476
}
476
477
noResult := isAsyncMode (ctx )
477
478
isDesc := isDescribeOnly (ctx )
478
- // TODO: handle isInternal
479
+ isInternal := isInternal ( ctx )
479
480
ctx = setResultType (ctx , execResultType )
480
- _ , err := sc .exec (ctx , "SELECT 1" , noResult , false , /* isInternal */
481
+ _ , err := sc .exec (ctx , "SELECT 1" , noResult , isInternal ,
481
482
isDesc , []driver.NamedValue {})
482
483
return err
483
484
}
@@ -518,7 +519,8 @@ func (sc *snowflakeConn) QueryArrowStream(ctx context.Context, query string, bin
518
519
ctx = WithArrowBatches (context .WithValue (ctx , asyncMode , false ))
519
520
ctx = setResultType (ctx , queryResultType )
520
521
isDesc := isDescribeOnly (ctx )
521
- data , err := sc .exec (ctx , query , false , false /* isinternal */ , isDesc , bindings )
522
+ isInternal := isInternal (ctx )
523
+ data , err := sc .exec (ctx , query , false , isInternal , isDesc , bindings )
522
524
if err != nil {
523
525
logger .WithContext (ctx ).Errorf ("error: %v" , err )
524
526
if data != nil {
0 commit comments