Skip to content

Commit 88f7f52

Browse files
committed
Remove DBDebug test for throwing error.
If the error is not thrown here it will through one on query execution.
1 parent a8106ac commit 88f7f52

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

system/Database/Postgre/Builder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,7 @@ protected function _upsertBatch(string $table, array $keys, array $values): stri
366366

367367
$alias = $this->QBOptions['alias'] ?? '"excluded"';
368368

369-
if (strtolower($alias) !== '"excluded"' && $this->db->DBDebug) {
369+
if (strtolower($alias) !== '"excluded"') {
370370
throw new DatabaseException('Postgres alias is always named "excluded". A custom alias cannot be used.');
371371
}
372372

system/Database/SQLite3/Builder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ protected function _upsertBatch(string $table, array $keys, array $values): stri
166166

167167
$alias = $this->QBOptions['alias'] ?? '`excluded`';
168168

169-
if (strtolower($alias) !== '`excluded`' && $this->db->DBDebug) {
169+
if (strtolower($alias) !== '`excluded`') {
170170
throw new DatabaseException('SQLite alias is always named "excluded". A custom alias cannot be used.');
171171
}
172172

0 commit comments

Comments
 (0)