From 7d17a682a1b19bdcdec2b0ed8e989355cf2c2ad2 Mon Sep 17 00:00:00 2001 From: Matt Topol Date: Wed, 16 Oct 2024 13:35:48 -0400 Subject: [PATCH] fix get object tables --- go/adbc/driver/snowflake/connection.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/go/adbc/driver/snowflake/connection.go b/go/adbc/driver/snowflake/connection.go index c77b454367..5abf90476c 100644 --- a/go/adbc/driver/snowflake/connection.go +++ b/go/adbc/driver/snowflake/connection.go @@ -213,12 +213,12 @@ func (c *connectionImpl) GetObjects(ctx context.Context, depth adbc.ObjectDepth, catalog, dbSchema, tableName, &showSchemaQueryID) goGetQueryID(gQueryIDsCtx, conn, gQueryIDs, objDatabases, catalog, dbSchema, tableName, &terseDbQueryID) - objType := "objects" + objType := objObjects if len(tableType) == 1 { if strings.EqualFold("VIEW", tableType[0]) { - objType = "views" + objType = objViews } else if strings.EqualFold("TABLE", tableType[0]) { - objType = "tables" + objType = objTables } } goGetQueryID(gQueryIDsCtx, conn, gQueryIDs, objType, @@ -270,12 +270,12 @@ func (c *connectionImpl) GetObjects(ctx context.Context, depth adbc.ObjectDepth, goGetQueryID(gQueryIDsCtx, conn, gQueryIDs, objSchemas, catalog, dbSchema, tableName, &showSchemaQueryID) - objType := "objects" + objType := objObjects if len(tableType) == 1 { if strings.EqualFold("VIEW", tableType[0]) { - objType = "views" + objType = objViews } else if strings.EqualFold("TABLE", tableType[0]) { - objType = "tables" + objType = objTables } } goGetQueryID(gQueryIDsCtx, conn, gQueryIDs, objType,