Skip to content

Commit

Permalink
drivers: typo
Browse files Browse the repository at this point in the history
  • Loading branch information
hrach committed Apr 10, 2020
1 parent 179e9ad commit c0215b3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Drivers/Mysqli/MysqliDriver.php
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ public function setTransactionIsolationLevel(int $level): void
Connection::TRANSACTION_SERIALIZABLE => 'SERIALIZABLE',
];
if (!isset($levels[$level])) {
throw new NotSupportedException("Unsupported transation level $level");
throw new NotSupportedException("Unsupported transaction level $level");
}
$this->loggedQuery("SET SESSION TRANSACTION ISOLATION LEVEL {$levels[$level]}");
}
Expand Down
2 changes: 1 addition & 1 deletion src/Drivers/Pgsql/PgsqlDriver.php
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ public function setTransactionIsolationLevel(int $level): void
Connection::TRANSACTION_SERIALIZABLE => 'SERIALIZABLE',
];
if (!isset($levels[$level])) {
throw new NotSupportedException("Unsupported transation level $level");
throw new NotSupportedException("Unsupported transaction level $level");
}
$this->loggedQuery("SET SESSION CHARACTERISTICS AS TRANSACTION ISOLATION LEVEL {$levels[$level]}");
}
Expand Down

0 comments on commit c0215b3

Please sign in to comment.