Uh oh!
There was an error while loading. Please reload this page.
respect DB restrictions on number of arguments in statements and queries - #25036
Conversation
blizzz
commented
Jan 8, 2021
/backport to stable20 |
blizzz
commented
Jan 8, 2021
/backport to stable19 |
blizzz
commented
Jan 8, 2021
might lead to a small conflict with #24948 (execute method in our QueryBuilder), but nothing dramatic. |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
36ed317 to
e7c2cd8Compareblizzz
commented
Jan 8, 2021
rebased and adjusted to the dbal bump. |
e7c2cd8 to
ef28844CompareMorrisJobke
commented
Jan 11, 2021
Postgres says "no". |
aye. seems to be a form of off-by-1 But confirms the test is working 🚀 |
ef28844 to
90005a6CompareSigned-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
90005a6 to
f9484d1Compareblizzz
commented
Jan 11, 2021
Not anymore 🧑🔧 |
| $slice++; | ||
| $fdnsSlice = array_slice($fdns, $sliceSize * ($slice - 1), $sliceSize); | ||
| if (!isset($qb)) { |
There was a problem hiding this comment.
Psalm:
TypeDoesNotContainType: Cannot resolve types for $qb with type OCP\DB\QueryBuilder\IQueryBuilder and !isset assertion
There was a problem hiding this comment.
It occurs to me that Psalm does not understand the unset(), or am I wrong?
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
ChristophWurst
left a comment
There was a problem hiding this comment.
Has tests, so what could go wrong 👍
FYI https://www.php.net/manual/en/function.array-chunk.php seems a tad more elegant than manual slicing, but the result is the same
blizzz
commented
Jan 14, 2021
would have a bigger memory footprint as it would return all slices at once. |
Follow up of #25020
Additionally to what was stated before: