Skip to content

Commit 2d1f6b6

Browse files
committed
Add links to MySQL docs
1 parent 8bc21a0 commit 2d1f6b6

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

wp-includes/sqlite-ast/class-wp-sqlite-driver.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4383,6 +4383,9 @@ private function translate_show_like_or_where_condition( WP_Parser_Node $like_or
43834383
* NULL is rejected on INSERT, but saves IMPLICIT DEFAULT on UPDATE.
43844384
* DEFAULT saves DEFAULT.
43854385
*
4386+
* For more information about STRICT mode in MySQL, see:
4387+
* https://dev.mysql.com/doc/refman/8.4/en/sql-mode.html#sql-mode-strict
4388+
*
43864389
* For more information about IMPLICIT DEFAULT values in MySQL, see:
43874390
* https://dev.mysql.com/doc/refman/8.4/en/data-type-defaults.html#data-type-defaults-implicit
43884391
*
@@ -4631,6 +4634,12 @@ function ( $column ) use ( $is_strict_mode, $insert_map ) {
46314634
* The strict SQL modes can be set per session, and can be changed at runtime.
46324635
* In SQLite, we can emulate this using the knowledge of the table structure.
46334636
*
4637+
* For more information about STRICT mode in MySQL, see:
4638+
* https://dev.mysql.com/doc/refman/8.4/en/sql-mode.html#sql-mode-strict
4639+
*
4640+
* For more information about IMPLICIT DEFAULT values in MySQL, see:
4641+
* https://dev.mysql.com/doc/refman/8.4/en/data-type-defaults.html#data-type-defaults-implicit
4642+
*
46344643
* @param string $table_name The name of the target table.
46354644
* @param WP_Parser_Node $node The "updateList" AST node.
46364645
* @return string The translated UPDATE list.

0 commit comments

Comments
 (0)