Skip to content

Commit a81d9e2

Browse files
authored
Merge pull request laminas#207 from laminas/2.13.x-merge-up-into-2.14.x_QmvBeu3c
Merge release 2.13.1 into 2.14.x
2 parents a7acfdb + 7710d3c commit a81d9e2

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

src/Adapter/Adapter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ protected function createDriver($parameters)
316316
}
317317

318318
if (! isset($driver) || ! $driver instanceof Driver\DriverInterface) {
319-
throw new Exception\InvalidArgumentException('DriverInterface expected', null, null);
319+
throw new Exception\InvalidArgumentException('DriverInterface expected');
320320
}
321321

322322
return $driver;

src/Adapter/Driver/Mysqli/Statement.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ public function prepare($sql = null)
188188
if (! $this->resource instanceof mysqli_stmt) {
189189
throw new Exception\InvalidQueryException(
190190
'Statement couldn\'t be produced with sql: ' . $sql,
191-
null,
191+
$this->mysqli->errno,
192192
new Exception\ErrorException($this->mysqli->error, $this->mysqli->errno)
193193
);
194194
}

src/Adapter/Driver/Oci8/Connection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ public function connect()
129129
$e = oci_error();
130130
throw new Exception\RuntimeException(
131131
'Connection error',
132-
null,
132+
$e['code'],
133133
new Exception\ErrorException($e['message'], $e['code'])
134134
);
135135
}

src/Adapter/Driver/Oci8/Statement.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ public function prepare($sql = null)
184184
$e = oci_error($this->oci8);
185185
throw new Exception\InvalidQueryException(
186186
'Statement couldn\'t be produced with sql: ' . $sql,
187-
null,
187+
$e['code'],
188188
new Exception\ErrorException($e['message'], $e['code'])
189189
);
190190
}

src/Adapter/Driver/Sqlsrv/Connection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ public function connect()
135135
if (! $this->resource) {
136136
throw new Exception\RuntimeException(
137137
'Connect Error',
138-
null,
138+
0,
139139
new ErrorException(sqlsrv_errors())
140140
);
141141
}

0 commit comments

Comments
 (0)