Skip to content

Don't pass a column object to addOrderBy - #27429

Merged
ChristophWurst merged 1 commit into
masterfrom
bug/26085/wrong-data-add-order-by
Jun 9, 2021
Merged

Don't pass a column object to addOrderBy#27429
ChristophWurst merged 1 commit into
masterfrom
bug/26085/wrong-data-add-order-by

Conversation

@kesselb

@kesselbkesselb commented Jun 8, 2021

Copy link
Copy Markdown
Contributor

Fix#26085
Close#26855

addOrderBy expects a order expression. For the migration scenario we have column objects. Column objects are not supported by quoteColumnName yet. A column object as order expression is most likely an edgy thing when migration database information.

I run into the issue today when migration some data for a test and had a chance to test it.

addOrderBy expects a order expression. For the migration scenario we have column objects. Column objects are not supported by quoteColumnName yet.
A column object as order expression is most likely an edgy thing when migration database information.
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
@kesselbkesselb added 3. to review Waiting for reviews bug labels Jun 8, 2021
@kesselbkesselb changed the title Fix #26085Don't pass a column object to addOrderByJun 8, 2021

@MorrisJobkeMorrisJobke left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Makes sense 🙈

@ChristophWurst
ChristophWurst merged commit 932a385 into masterJun 9, 2021
@ChristophWurst
ChristophWurst deleted the bug/26085/wrong-data-add-order-by branch June 9, 2021 07:12
@enoch85

Copy link
Copy Markdown
Member

Backport?

@kesselb

Copy link
Copy Markdown
ContributorAuthor

/backport to stable21

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

Labels

3. to reviewWaiting for reviewsbug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Error converting psql DB to mariadb: QuoteHelper.php line 62: Only strings, Literals and Parameters are allowed

5 participants

@kesselb@enoch85@nickvergessen@MorrisJobke@ChristophWurst