-
Notifications
You must be signed in to change notification settings - Fork 97
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
partial mixed case support for SF #919
Conversation
@@ -296,10 +301,10 @@ func (c *SnowflakeConnector) getColsFromTable(tableName string) (*model.ColumnIn | |||
} | |||
defer rows.Close() | |||
|
|||
var colName pgtype.Text |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why were these moved outside the loop?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd guess the goal is to avoid clearing an empty stack slot each loop, which may also be boxed depending how go analyzes Scan. This refactor has been appearing in a few previous PRs
Could use test cases demonstrating what now works. PR is pretty large so splitting refactoring to another PR would be nice, but lgtm |
Still some edge cases, but should work for basic mixed case tables.
Will revisit this later, need to spend some time with cases.
Some outstanding issues:
COPY
statement generation."INFINITE"
) which is the default casing for Snowflake but the opposite for Postgres.