Total Complexity | 6 |
Total Lines | 36 |
Duplicated Lines | 0 % |
Coverage | 90% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
11 | class BatchQueryResult extends BaseBatchQueryResult |
||
12 | { |
||
13 | /** |
||
14 | * @var int MSSQL error code for exception that is thrown when last batch is size less than specified batch size |
||
15 | * |
||
16 | * {@see https://github.com/yiisoft/yii2/issues/10023} |
||
17 | */ |
||
18 | private int $mssqlNoMoreRowsErrorCode = -13; |
||
19 | |||
20 | /** |
||
21 | * Reads and collects rows for batch. |
||
22 | * |
||
23 | * @throws InvalidCallException |
||
24 | * |
||
25 | * @return array |
||
26 | * |
||
27 | * @psalm-suppress MixedArrayAccess |
||
28 | */ |
||
29 | 3 | protected function getRows(): array |
|
49 |