Changeset 47183
- Timestamp:
- 02/05/2020 03:28:33 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/db.php
r47122 r47183 296 296 $current_modes = $wpdb->get_var( 'SELECT @@SESSION.sql_mode;' ); 297 297 298 $new_modes = array( 'IGNORE_SPACE', 'NO_AUTO_ CREATE_USER' );298 $new_modes = array( 'IGNORE_SPACE', 'NO_AUTO_VALUE_ON_ZERO' ); 299 299 300 300 $wpdb->set_sql_mode( $new_modes ); … … 316 316 $current_modes = $wpdb->get_var( 'SELECT @@SESSION.sql_mode;' ); 317 317 318 $new_modes = array( 'IGNORE_SPACE', 'NO_ZERO_DATE', 'NO_AUTO_ CREATE_USER' );318 $new_modes = array( 'IGNORE_SPACE', 'NO_ZERO_DATE', 'NO_AUTO_VALUE_ON_ZERO' ); 319 319 $wpdb->set_sql_mode( $new_modes ); 320 320 $check_new_modes = $wpdb->get_var( 'SELECT @@SESSION.sql_mode;' ); … … 334 334 $current_modes = $wpdb->get_var( 'SELECT @@SESSION.sql_mode;' ); 335 335 336 $new_modes = array( 'IGNORE_SPACE', 'ONLY_FULL_GROUP_BY', 'NO_AUTO_ CREATE_USER' );336 $new_modes = array( 'IGNORE_SPACE', 'ONLY_FULL_GROUP_BY', 'NO_AUTO_VALUE_ON_ZERO' ); 337 337 338 338 add_filter( 'incompatible_sql_modes', array( $this, 'filter_allowed_incompatible_sql_mode' ), 1, 1 );
Note: See TracChangeset
for help on using the changeset viewer.