Conditions | 2 |
Paths | 2 |
Total Lines | 10 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Tests | 5 |
CRAP Score | 2.0185 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
19 | 41 | public function lastInsertId($name = null) |
|
20 | { |
||
21 | 41 | if ($name === null) { |
|
22 | 41 | return parent::lastInsertId($name); |
|
23 | 41 | } |
|
24 | |||
25 | $stmt = $this->prepare('SELECT CONVERT(VARCHAR(MAX), current_value) FROM sys.sequences WHERE name = ?'); |
||
26 | $stmt->execute([$name]); |
||
27 | |||
28 | 3 | return $stmt->fetchColumn(); |
|
29 | } |
||
54 |