diff --git a/async.go b/async.go index 928848e37..2441992f2 100644 --- a/async.go +++ b/async.go @@ -98,7 +98,9 @@ func (sr *snowflakeRestful) getAsync( } sc := &snowflakeConn{rest: sr, cfg: cfg} - if response.Success { + // the result response sometimes contains only Data and not anything else. + // if code is not set we treat as success + if response.Success || response.Code == "" { if resType == execResultType { res.insertID = -1 if isDml(response.Data.StatementTypeID) { @@ -202,4 +204,4 @@ func (sr *snowflakeRestful) getAsyncOrStatus( } return response, nil -} \ No newline at end of file +}