We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I noticed an issue when inserting a large date like '9999-12-30T23:00:00.0000000+00:00'. It is stored in Snowflake as '1816-03-29 04:56:08.066 +0000'
'9999-12-30T23:00:00.0000000+00:00'
'1816-03-29 04:56:08.066 +0000'
When logging the parameter value in DbCommand is '9999-12-30T23:00:00.0000000+00:00'
Also when testing on Snowflake the date seems ok.
Column settings
b.Property<DateTimeOffset?>("EndDt") .HasColumnType("TIMESTAMP_TZ(9)") .HasColumnName("END_DT");
Dates around 2300-12-31 work. Dates bigger than 2500-12-31 also get corrupted.
2300-12-31
2500-12-31
Log output with parameters (:p8) also seems ok. Could this be an issue with Snowflake.Data?
INSERT INTO "CLASSIFICATION_LINES" ("ADDITIONAL_COL_VAL", "CLASSIFICATION_LINE_PARENT_ID", "CLASSIFICATION_TYPE_ID", "CODE", "CREATED", "CREATED_BY", "DESC", "EFF_DT", "END_DT", "LAST_MODIFIED", "LAST_MODIFIED_BY", "NAME", "SORT_NUM") SELECT :p0, :p1, :p2, :p3, :p4, :p5, :p6, :p7, :p8, :p9, :p10, :p11, :p12; Microsoft.EntityFrameworkCore.Database.Command: Information: Executed DbCommand (374ms) [Parameters=[p0='{"values":{}}', p1=NULL (DbType = Int64), p2='4', p3='XXXXX' (Nullable = false), p4='2024-10-08T16:14:12.5910721+00:00', p5='XXXX', p6='XXXXXX', p7='1899-12-31T23:00:00.0000000+00:00', p8='9999-12-30T23:00:00.0000000+00:00', p9='2024-10-08T16:14:12.5910721+00:00' (Nullable = true), p10='Codify', p11='XXXXX' (Nullable = false), p12='0'], CommandType='Text', CommandTimeout='0']
The text was updated successfully, but these errors were encountered:
I tried directly with Snowflake.Data version 4.1.0 and when executing the same insert using this parameter the TIMESTAMP_TZ gets corrupted.
Snowflake.Data
command.Parameters.Add(new SnowflakeDbParameter("p8", SFDataType.TIMESTAMP_TZ) { Value = DateTimeOffset.Parse("9999-12-30T23:00:00.0000000+00:00") });
I opened an issue about that on the snowflake-connector-net repo: snowflakedb/snowflake-connector-net#1036
Sorry, something went wrong.
Thank you @skornsek for your report. With the next release of EFCore.Snowflake, latest version of Snowflake.Data will be used.
No branches or pull requests
I noticed an issue when inserting a large date like
'9999-12-30T23:00:00.0000000+00:00'
. It is stored in Snowflake as'1816-03-29 04:56:08.066 +0000'
When logging the parameter value in DbCommand is
'9999-12-30T23:00:00.0000000+00:00'
Also when testing on Snowflake the date seems ok.
Column settings
Dates around
2300-12-31
work. Dates bigger than2500-12-31
also get corrupted.Log output with parameters (:p8) also seems ok. Could this be an issue with Snowflake.Data?
The text was updated successfully, but these errors were encountered: