Conditions | 1 |
Paths | 1 |
Total Lines | 5 |
Code Lines | 1 |
Lines | 0 |
Ratio | 0 % |
Tests | 2 |
CRAP Score | 1 |
Changes | 0 |
1 | <?php |
||
16 | 1 | public function getSequenceNumber(string $name) : string |
|
17 | { |
||
18 | // SQLite does not support sequences. However, PDO::lastInsertId() ignores the name parameter, and returns |
||
19 | // the last insert ID even if a sequence name is given. We expect an exception in that case. |
||
20 | 1 | throw new DriverException('SQLite does not support sequences.'); |
|
21 | } |
||
23 |