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
Unable to reproduce "String not recognized as a valid DateTime" but I'll give CultureInfo.InvariantCulture a shot in the three calls to DateTime.Parse in the entire app.
I get the error with the following PARTITION FUNCTION ( Sql Server 2019 - Italian localization ):
CREATE PARTITION FUNCTION PF_TABLE
AS RANGE RIGHT FOR VALUES
(N'2015-01-01T00:00:00.000',
N'2016-01-01T00:00:00.000',
N'2017-01-01T00:00:00.000',
N'2018-01-01T00:00:00.000',
N'2019-01-01T00:00:00.000',
N'2020-01-01T00:00:00.000',
N'2021-01-01T00:00:00.000',
N'2022-01-01T00:00:00.000',
N'2023-01-01T00:00:00.000',
N'2024-01-01T00:00:00.000',
N'2025-01-01T00:00:00.000',
N'2026-01-01T00:00:00.000')
I suspect the problem is the "T".
I ended up modifyng the code of OpenDBDiff.SqlServer.Schema/Model/PartitionFunction.cs with TryParse.
Also seems that it's impossible to completely disable the partition-schema and partition-function analisys to avoid the error.
Thanks for pointing me in the right direction.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Unable to reproduce "String not recognized as a valid DateTime" but I'll give
CultureInfo.InvariantCulturea shot in the three calls toDateTime.Parsein the entire app.