Skip to content

Commit f4c2759

Browse files
committed
Improve auto increment spelling in docs
1 parent c6074c6 commit f4c2759

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

wp-includes/sqlite-ast/class-wp-pdo-mysql-on-sqlite.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5619,12 +5619,12 @@ function ( $column ) {
56195619
if ( 'PRIMARY' === $info['INDEX_NAME'] ) {
56205620
if ( $has_autoincrement ) {
56215621
/*
5622-
* In MySQL, a compound PRIMARY KEY can have an AUTOINCREMENT
5622+
* In MySQL, a compound PRIMARY KEY can have an AUTO_INCREMENT
56235623
* column, when it is the first column in the key.
56245624
*
56255625
* SQLite doesn't support this, but we can emulate it as follows:
56265626
* 1. Keep only the first column as a PRIMARY KEY.
5627-
* Since this is the column that also has AUTOINCREMENT,
5627+
* Since this is the column that also has AUTO_INCREMENT,
56285628
* it reasonable to assume that its values are unique.
56295629
* 2. Create a UNIQUE key for all the PRIMARY KEY columns.
56305630
* This is to preserve the index of the compound key.

0 commit comments

Comments
 (0)