Skip to content
Merged
Prev Previous commit
Add links to MySQL docs
  • Loading branch information
JanJakes committed Oct 30, 2025
commit 2d1f6b63597dbcafd82248fee3817a3f75b4ed04
9 changes: 9 additions & 0 deletions wp-includes/sqlite-ast/class-wp-sqlite-driver.php
Original file line number Diff line number Diff line change
Expand Up @@ -4383,6 +4383,9 @@ private function translate_show_like_or_where_condition( WP_Parser_Node $like_or
* NULL is rejected on INSERT, but saves IMPLICIT DEFAULT on UPDATE.
* DEFAULT saves DEFAULT.
*
* For more information about STRICT mode in MySQL, see:
* https://dev.mysql.com/doc/refman/8.4/en/sql-mode.html#sql-mode-strict
*
* For more information about IMPLICIT DEFAULT values in MySQL, see:
* https://dev.mysql.com/doc/refman/8.4/en/data-type-defaults.html#data-type-defaults-implicit
*
Expand Down Expand Up @@ -4631,6 +4634,12 @@ function ( $column ) use ( $is_strict_mode, $insert_map ) {
* The strict SQL modes can be set per session, and can be changed at runtime.
* In SQLite, we can emulate this using the knowledge of the table structure.
*
* For more information about STRICT mode in MySQL, see:
* https://dev.mysql.com/doc/refman/8.4/en/sql-mode.html#sql-mode-strict
*
* For more information about IMPLICIT DEFAULT values in MySQL, see:
* https://dev.mysql.com/doc/refman/8.4/en/data-type-defaults.html#data-type-defaults-implicit
*
* @param string $table_name The name of the target table.
* @param WP_Parser_Node $node The "updateList" AST node.
* @return string The translated UPDATE list.
Expand Down
Loading