You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please have a look at this error:
vendor/github.com/snowflakedb/gosnowflake/s3_storage_client.go:105:3: cannot use out.ContentLength (variable of type *int64) as int64 value in struct literal
Please answer these questions before submitting your issue.
In order to accurately debug the issue this information is required. Thanks!
What version of GO driver are you using?
v.1.7.0
What operating system and processor architecture are you using?
MacOS: Sonoma 14.0
What version of GO are you using?
run go version in your console
go1.20.3
4.Server version:* E.g. 1.90.1
You may get the server version by running a query:
SELECT CURRENT_VERSION();
What did you do?
I was trying to setup a mock for database driver: we use snowflake and postresql.
So, my code has a reference:
Client *sqlx.DB
Where sqlx is module: "github.com/jmoiron/sqlx"
I have built a mock for the database struct
type DBMockConnection struct {
Mock sqlmock.Sqlmock
DB *sql.DB
DriverName string
logger logging.Logger
}
This is fully compatible with "github.com/lib/pq", but with "github.com/snowflakedb/gosnowflake", I can't compile my code:
I see this error:
vendor/github.com/snowflakedb/gosnowflake/s3_storage_client.go:105:3: cannot use out.ContentLength (variable of type *int64) as int64 value in struct literal
What did you expect to see?
I am not expecting to see any error, seems like a very minor bug
What should have happened and what happened instead?
Can you set logging to DEBUG and collect the logs?
Please have a look at this error:
vendor/github.com/snowflakedb/gosnowflake/s3_storage_client.go:105:3: cannot use out.ContentLength (variable of type *int64) as int64 value in struct literal
Please answer these questions before submitting your issue.
In order to accurately debug the issue this information is required. Thanks!
What version of GO driver are you using?
v.1.7.0
What operating system and processor architecture are you using?
MacOS: Sonoma 14.0
What version of GO are you using?
run
go version
in your consolego1.20.3
4.Server version:* E.g. 1.90.1
You may get the server version by running a query:
I was trying to setup a mock for database driver: we use snowflake and postresql.
So, my code has a reference:
Client *sqlx.DB
Where sqlx is module: "github.com/jmoiron/sqlx"
I have built a mock for the database struct
type DBMockConnection struct {
Mock sqlmock.Sqlmock
DB *sql.DB
DriverName string
logger logging.Logger
}
This is fully compatible with "github.com/lib/pq", but with "github.com/snowflakedb/gosnowflake", I can't compile my code:
I see this error:
vendor/github.com/snowflakedb/gosnowflake/s3_storage_client.go:105:3: cannot use out.ContentLength (variable of type *int64) as int64 value in struct literal
What did you expect to see?
I am not expecting to see any error, seems like a very minor bug
What should have happened and what happened instead?
Can you set logging to DEBUG and collect the logs?
https://community.snowflake.com/s/article/How-to-generate-log-file-on-Snowflake-connectors
What is your Snowflake account identifier, if any? (Optional)
The text was updated successfully, but these errors were encountered: