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
PostgreSQL is strict and does not do any magic typecasting. SQLServer does typecasting automagically. https://dev.mysql.com/doc/refman/8.4/en/type-conversion.html#:~:text=For%20example%2C%20MySQL%20automatically%20converts,as%20necessary%2C%20and%20vice%20versa.&text=It%20is%20also%20possible%20to,using%20the%20CAST()%20function.
That is why the Problem does not appear by MySQL users.
change this
'l.id = dfs.setting_value',
to this
'CAST(l.id AS text) = dfs.setting_value',
in this file /usr/share/icingaweb2/modules/director/library/Director/Objects/DirectorDatalist.php (line 106):
create data list and use it. You should use PostgreSQL as backend. Try to delete the data list, you will get the same error above in the screenshot.
The text was updated successfully, but these errors were encountered:
ref/IP/55374
Sorry, something went wrong.
raviks789
Successfully merging a pull request may close this issue.
Current Behavior
PostgreSQL is strict and does not do any magic typecasting. SQLServer does typecasting automagically. https://dev.mysql.com/doc/refman/8.4/en/type-conversion.html#:~:text=For%20example%2C%20MySQL%20automatically%20converts,as%20necessary%2C%20and%20vice%20versa.&text=It%20is%20also%20possible%20to,using%20the%20CAST()%20function.
That is why the Problem does not appear by MySQL users.
Possible Solution
change this
'l.id = dfs.setting_value',
to this
'CAST(l.id AS text) = dfs.setting_value',
in this file /usr/share/icingaweb2/modules/director/library/Director/Objects/DirectorDatalist.php (line 106):
Steps to Reproduce (for bugs)
create data list and use it. You should use PostgreSQL as backend. Try to delete the data list, you will get the same error above in the screenshot.
Your Environment
The text was updated successfully, but these errors were encountered: