Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support for CTE in postgreSQL, bcosca/fatfree#1107, bcosca/fatfree#1116…
- Loading branch information
8fd940b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks like this will cause an
UPDATE
that uses a CTE will cause the return of a result rather than the number of affected rows, even if it doesn't have aRETURNING
. Is this the intended behaviour?8fd940b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does it matter?
8fd940b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In most cases probably not, depends whether the row count is being used.
I just ran a meaningless query (since q1 isn't actually being used) to test what the new output would be.
Before the change the output is:
After the change outputs:
If the query was just
UPDATE contacts SET handled = true WHERE notes = 'test'
then the result is always justint(3)