Skip to content

Commit

Permalink
fix: make platform info compatible with quoted identifiers (#729)
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisIsidora authored Oct 22, 2021
1 parent 4da8014 commit 30bb7d0
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions pkg/snowflake/system_get_snowflake_platform_info.go
Original file line number Diff line number Diff line change
@@ -7,11 +7,11 @@ import (
)

func SystemGetSnowflakePlatformInfoQuery() string {
return `SELECT SYSTEM$GET_SNOWFLAKE_PLATFORM_INFO() AS "info"`
return `SELECT SYSTEM$GET_SNOWFLAKE_PLATFORM_INFO() AS "INFO"`
}

type RawSnowflakePlatformInfo struct {
Info string `db:"info"`
Info string `db:"INFO"`
}

type snowflakePlatformInfoInternal struct {
2 changes: 1 addition & 1 deletion pkg/snowflake/system_get_snowflake_platform_info_test.go
Original file line number Diff line number Diff line change
@@ -10,7 +10,7 @@ func TestSystemGetSnowflakePlatformInfoQuery(t *testing.T) {
r := require.New(t)
sb := SystemGetSnowflakePlatformInfoQuery()

r.Equal(sb, `SELECT SYSTEM$GET_SNOWFLAKE_PLATFORM_INFO() AS "info"`)
r.Equal(sb, `SELECT SYSTEM$GET_SNOWFLAKE_PLATFORM_INFO() AS "INFO"`)
}

func TestSystemGetSnowflakePlatformInfoGetStructuredConfigAws(t *testing.T) {

0 comments on commit 30bb7d0

Please sign in to comment.