-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
PGSQL issues with 5.1.2 (and earlier, due to Npgsql 6+) #11437
Comments
@maliming I'm sorry, I'm not sure I understand what you've linked. Those diffs show that setting the Npgsql legacy flag generates a DB schema with columns of type I need datetime columns to be mapped to Is this no longer supported? |
hi I haven't tried to use Npgsql |
Same problem
I fixed it by adding this line |
@MAlshehri |
I've requested an "official" response to this issue via a support question that anyone can follow here |
@hikalkan I'm having trouble getting this issue recognized on the support ticket. Do I need to somehow further clarify this problem ?? |
The solution posted recently on the support ticket mentioned seems to work for me. (adding the below to the WebModule, DbMigratorModule and TestBaseModule if postgres is used there as well) Configure<AbpClockOptions>(options =>
{
options.Kind = DateTimeKind.Utc;
}); |
ABP Commercial 5.1.2, UI Angular, EFCore Postgresql
In a freshly created solution with PGSQL DBMS, the ABP framework does not correctly handle EFCore mapping via Npgsql for DateTime props.
Steps:
This closed issue #11357 talks of changes introduced in Npgsql 6+, and hints at setting a LEGACY behaviour flag as a workaround.
This flag IS NOT present in the generated startup template sources, nor is it clear or documented WHERE to set it manually.
Using this flag is not the way forward for PGSQL compatibility, as the breaking change in DateTime handling introduces a clearer and more correct way of handling this data type.
I have this issue on 5.0.1 also, which is why I tried starting again from the baseline 5.1.2, hoping it might have been fixed...
What is the official Volosoft policy for this PGSQL compatibily issue ?
I cannot continue working with ABP Commercial sources until DateTime props are correctly mapped to
timestamp with timezone
by default, and correctly handled during read/write by the framework.The text was updated successfully, but these errors were encountered: