Skip to content

Commit b942cd5

Browse files
committed
#2340 - Remove trailing semicolon from query
(Currently writing an OCI Adapter) OCI doesn't allow a trailing semicolon. There can be a problem Still output the semicolon, so that output can be easily copy/pasted
1 parent 5bad109 commit b942cd5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Phinx/Db/Adapter/PdoAdapter.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -197,8 +197,8 @@ abstract public function disconnect(): void;
197197
*/
198198
public function execute(string $sql, array $params = []): int
199199
{
200-
$sql = rtrim($sql, "; \t\n\r\0\x0B") . ';';
201-
$this->verboseLog($sql);
200+
$sql = rtrim($sql, "; \t\n\r\0\x0B");
201+
$this->verboseLog($sql.';');
202202

203203
if ($this->isDryRunEnabled()) {
204204
return 0;

0 commit comments

Comments
 (0)