Skip to content

Commit 2bd2721

Browse files
committed
fixup! Report prepared statements as unsupported
1 parent eb7d4ec commit 2bd2721

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎packages/mysql-on-sqlite/src/sqlite/class-wp-mysql-on-sqlite.php‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
*
77
* PDO uses camel case naming, enable non-snake case:
88
* phpcs:disable WordPress.NamingConventions.ValidFunctionName.MethodNameInvalid
9+
* phpcs:disable WordPress.NamingConventions.ValidVariableName.UsedPropertyNotSnakeCase
910
*
1011
* PDO uses $string as a parameter name, enable it:
1112
* phpcs:disable Universal.NamingConventions.NoReservedKeywordParameterNames.stringFound
@@ -1675,7 +1676,7 @@ private function snapshot_column_meta(): array {
16751676
* @throws WP_MySQL_On_SQLite_Exception When exception mode is enabled.
16761677
*/
16771678
private function handle_pdo_error( WP_MySQL_On_SQLite_Exception $exception ): bool {
1678-
$this->error_info = $exception->errorInfo; // phpcs:ignore WordPress.NamingConventions.ValidVariableName.UsedPropertyNotSnakeCase
1679+
$this->error_info = $exception->errorInfo;
16791680
$this->error_code = $this->error_info[0];
16801681

16811682
if ( PDO::ERRMODE_EXCEPTION === $this->error_mode ) {

0 commit comments

Comments
 (0)