-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MDEV-33494 fix spider init with no_zero_date global sql mode
Like the fix for MDEV-32753 and MDEV-33242, spider init queries creates new connections that use the global sql_mode of the existing connection.
- Loading branch information
1 parent
bf49e7c
commit 9d34939
Showing
3 changed files
with
16 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
set @old_sql_mode=@@global.sql_mode; | ||
set global sql_mode=(SELECT CONCAT (@@sql_mode,',no_zero_date')); | ||
install soname 'ha_spider'; | ||
set global sql_mode=@old_sql_mode; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# This test tests spider init with global no_zero_date sql mode | ||
set @old_sql_mode=@@global.sql_mode; | ||
set global sql_mode=(SELECT CONCAT (@@sql_mode,',no_zero_date')); | ||
install soname 'ha_spider'; | ||
set global sql_mode=@old_sql_mode; | ||
|
||
--disable_query_log | ||
--disable_result_log | ||
--source ../../include/clean_up_spider.inc | ||
--enable_result_log | ||
--enable_query_log |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters