Skip to content

Issue #5390: Replaced previous sorting with SQL order by enhancement.#5404

Open
stefanhaerter wants to merge 3 commits intorel-11_1from
issue-#5390-sql_sort
Open

Issue #5390: Replaced previous sorting with SQL order by enhancement.#5404
stefanhaerter wants to merge 3 commits intorel-11_1from
issue-#5390-sql_sort

Conversation

@stefanhaerter
Copy link
Copy Markdown
Contributor

closes #5390

replaces #5391

Comment thread Kernel/System/PostMaster/Filter.pm Outdated

# ensure that body statements are listed at the very end of matching conditions
# for performance reasons
. ' CASE'
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This look like valid syntax for PostgreSQL, wondering whether it is documented that only MariaDB, MySQL and PostgreSQL are supported for OTOBO databases.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As far as I saw, Oracle supports this as well.

. ' FROM postmaster_filter'
. ' WHERE f_name = ?'
. ' ORDER BY is_body, f_key, f_value',
SQL => <<~"POSTMASTER_SELECT",
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Congrats on the first indented heredoc in OTOBO!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants