-
-
Notifications
You must be signed in to change notification settings - Fork 2k
MDEV-39675 mariadb_upgrade utility failed when path=nonexist #5106
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: 12.3
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -599,3 +599,19 @@ FLUSH TABLES mysql.user; | |
| FLUSH PRIVILEGES; | ||
| SELECT CHARACTER_SET_CLIENT, COLLATION_CONNECTION FROM INFORMATION_SCHEMA.VIEWS | ||
| WHERE TABLE_SCHEMA='mysql' AND TABLE_NAME='user'; | ||
|
|
||
| --echo # End of 11.4 tests | ||
|
|
||
| --echo # | ||
| --echo # MDEV-39675 mariadb_upgrade utility failed when path=nonexist | ||
| --echo # | ||
|
|
||
| set @old_path=@@global.path; | ||
| set global path='non-existant'; | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
|
|
||
| --exec $MYSQL_UPGRADE --force --silent 2>&1 | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. are you sure, I'd suggest to make some innocuous change in the sys schema that |
||
| --remove_file $MYSQLD_DATADIR/mariadb_upgrade_info | ||
|
|
||
| set global path=@old_path; | ||
|
|
||
| --echo # End of 12.3 tests | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -30,7 +30,7 @@ set default_storage_engine=Aria; | |
| set enforce_storage_engine=NULL; | ||
| set alter_algorithm='DEFAULT'; | ||
| set use_stat_tables='NEVER'; | ||
|
|
||
| set path 'CURRENT_SCHEMA'; | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. For consistency with the preceding lines in this script (lines 30-32), it is recommended to use the assignment operator = when setting the path variable. While SET PATH '...' is a valid statement syntax in MariaDB, using set path='...'; aligns better with the existing style of the file where system variables are assigned using the = operator. set path='CURRENT_SCHEMA';References
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Nope. SQL Standard syntax is |
||
|
|
||
| -- | ||
| -- Upgrade mysql.column_stats table early because its quite noisy otherwise | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Correcting the typo 'non-existant' to 'non-existent' to maintain consistency with the suggested change in the .test file.