Skip to content

Conversation

@adaamz
Copy link
Contributor

@adaamz adaamz commented Aug 8, 2017

  • bug fix? no
  • new feature? yes
  • BC break? no
  • doc PR: later if accepted

Hi,
this PR adds support for UPDATE with ORDER BY.
This is good when you have sequnce column and you want to increment tail values in this column.
SQL for this action:

UPDATE myTable SET sort_order = sort_order + 1 WHERE sort_order > 100 ORDER BY sort_order DESC

Current approach is to write own query, as stated above.

WIP: I will add test and doc for this.

@adaamz
Copy link
Contributor Author

adaamz commented Aug 8, 2017

@dg
Copy link
Member

dg commented Aug 19, 2017

Thanks

@dg dg merged commit e8817ec into nette:master Aug 19, 2017
dg pushed a commit that referenced this pull request Aug 19, 2017
dg pushed a commit that referenced this pull request Aug 19, 2017
@adaamz adaamz deleted the patch-1 branch August 19, 2017 16:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants