Skip to content

Commit 704b62e

Browse files
committed
Use str_contains for the auto_increment EXTRA check
Match the str_contains predicate used by the column filter just above, so both call sites identify auto_increment columns the same way.
1 parent 9cb9ede commit 704b62e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5135,7 +5135,7 @@ function ( $column ) use ( $is_strict_mode, $insert_map ) {
51355135
$position = array_search( $column['COLUMN_NAME'], $insert_list, true );
51365136
$identifier = $this->quote_sqlite_identifier( $select_list[ $position ] );
51375137
$value = $this->cast_value_for_saving( $column['DATA_TYPE'], $identifier );
5138-
$is_auto_increment = 'auto_increment' === $column['EXTRA'];
5138+
$is_auto_increment = str_contains( $column['EXTRA'], 'auto_increment' );
51395139

51405140
/*
51415141
* In MySQL, inserting 0 into an AUTO_INCREMENT column increments

0 commit comments

Comments
 (0)