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
{{ message }}
Repository navigation
NpgsqlDbType having both TimestampTZ and TimestampTz breaks PowerShell #4788
ExtendedTypeSystemException: The field or property: "TimestampTz" for type: "NpgsqlTypes.NpgsqlDbType" differs only in
letter casing from the field or property: "TimestampTZ". The type must be Common Language Specification (CLS)
It seems that it's not possible to call any functions that take a NpgsqlDbType parameter in PowerShell with value TimestampTz because of this. Simply referencing TimestampTz at all will throw the above error.
I understand that previously in #1694 there is already discussion around removing it. I don't necessarily expect you to add official support for PowerShell (personally, I don't even like using it, and I'll use this as a reason to use C# instead for the case where I ran into this). However, it would be good for anyone who searches up this error to know about this limitation, and I'll leave this here in case it affects your consideration to remove the TimestampTZ value in the future.
@griever989 isn't it enough that Powershell errors in the very explicit way you're showing above? I assume you're proposing a note somewhere in our docs calling this out - would that actually help people (am assuming very few would actually see it).
A) npgsql team makes no changes, but just the existence of this github issue is self-documenting in that it would let people searching the issues/web find this very issue page and know that this is a known incompatibility and they should work around it on their own
B) npgsql team decides to remove the TimestampTZ and TimeTZ types with the Obsolete attribute which then resolves this incompatibility
Activity
roji commentedon Dec 5, 2022
@griever989 isn't it enough that Powershell errors in the very explicit way you're showing above? I assume you're proposing a note somewhere in our docs calling this out - would that actually help people (am assuming very few would actually see it).
sigseg1v commentedon Mar 10, 2023
My thought for this was one of two cases:
A) npgsql team makes no changes, but just the existence of this github issue is self-documenting in that it would let people searching the issues/web find this very issue page and know that this is a known incompatibility and they should work around it on their own
B) npgsql team decides to remove the
TimestampTZandTimeTZtypes with theObsoleteattribute which then resolves this incompatibilityroji commentedon Mar 10, 2023
Is obsoletion enough to resolve this problem for Powershell?
Also remove obsolete TimestampTZ/TimeTZ
Also remove obsolete TimestampTZ/TimeTZ
Also remove obsolete TimestampTZ/TimeTZ (#5394)