Fixes #34

Project: http://git-wip-us.apache.org/repos/asf/calcite-avatica-go/repo
Commit: 
http://git-wip-us.apache.org/repos/asf/calcite-avatica-go/commit/7a1093f4
Tree: http://git-wip-us.apache.org/repos/asf/calcite-avatica-go/tree/7a1093f4
Diff: http://git-wip-us.apache.org/repos/asf/calcite-avatica-go/diff/7a1093f4

Branch: refs/heads/master
Commit: 7a1093f49645274a32888807f3ef8bb561001a38
Parents: 53bcaa5
Author: amalts <ama...@gmail.com>
Authored: Tue Jul 11 12:47:49 2017 +0530
Committer: Julian Hyde <jh...@apache.org>
Committed: Thu Aug 10 18:47:12 2017 -0700

----------------------------------------------------------------------
 rows.go | 3 +++
 1 file changed, 3 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/calcite-avatica-go/blob/7a1093f4/rows.go
----------------------------------------------------------------------
diff --git a/rows.go b/rows.go
index 4d69ff7..e57525b 100644
--- a/rows.go
+++ b/rows.go
@@ -140,6 +140,9 @@ func newRows(conn *conn, statementID uint32, resultSets 
[]*message.ResultSetResp
        rsets := []*resultSet{}
 
        for _, result := range resultSets {
+               if result.Signature == nil {
+                       break
+               }
                columns := []*column{}
 
                for _, col := range result.Signature.Columns {

Reply via email to