-
Notifications
You must be signed in to change notification settings - Fork 78
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
Trigger not working if table contains column with non-equality type #33
Comments
@dzolo any thoughts about what would be a sensible solution? |
@simoneb simple solution for
For the |
…ype for ignore_unchanged_values=false
I have created a PR at least for the |
Amazing thanks. Do you think it would be possible to include a test? |
OK, will do later. |
🎉 This issue has been resolved in version 0.5.0 🎉 The release is available on: Your optic bot 📦🚀 |
If the table contains a column which does not implement equality operator then the versioning trigger fails. The equality operator is not implemented for some PostGIS data types, JSON data types, etc.
Example error for table with PostGIS polygon type:
The reason is the
NEW IS NOT DISTINCT FROM OLD
statement in IF condition related to the ignore_unchanged_values feature. The failure occurs even if the ignore_unchanged_values is not enabled as all parts of the IF condition are executed. Thus the issue is quite severe as it breaks compatibility/functionality with the old fashion temporal_tables.The text was updated successfully, but these errors were encountered: