-
Notifications
You must be signed in to change notification settings - Fork 368
add mysql_optional as dsn parameter #1022
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: 3.x
Are you sure you want to change the base?
Changes from 2 commits
838ae9a
ddac296
4823ec6
2001a30
f0212b1
8f97741
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 |
|---|---|---|
|
|
@@ -179,6 +179,57 @@ like( | |
| 'SSL connection error with incorrect SSL options in the configuration file' | ||
| ) or diag($output); | ||
|
|
||
| # ############################################################################# | ||
| # Test mysql_ssl_optional option | ||
| # ############################################################################# | ||
|
|
||
| # Restoring environment for the new test | ||
| $sb->load_file('source', "$sample/del-trg-bug-1103672.sql"); | ||
|
|
||
| ($output, $exit_code) = full_output( | ||
| sub { pt_online_schema_change::main(@args, | ||
| "$source_dsn,D=test,t=t1,u=sha256_user,p=sha256_user%password,o=1", | ||
| "--alter", "drop primary key, add column _id int unsigned not null primary key auto_increment FIRST", | ||
| qw(--execute --no-check-alter)), | ||
svetasmirnova marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| }, | ||
| ); | ||
|
|
||
| is( | ||
| $exit_code, | ||
| 0, | ||
| "No error when using mysql_ssl_optional DSN parameter (o=1)" | ||
| ) or diag($output); | ||
|
|
||
| like( | ||
| $output, | ||
| qr/Successfully altered `test`.`t1`/, | ||
| "DROP PRIMARY KEY with mysql_ssl_optional DSN parameter" | ||
| ); | ||
|
Comment on lines
+212
to
+222
|
||
|
|
||
| # Restoring environment for the new test | ||
| $sb->load_file('source', "$sample/del-trg-bug-1103672.sql"); | ||
|
|
||
| ($output, $exit_code) = full_output( | ||
| sub { pt_online_schema_change::main(@args, | ||
| "$source_dsn,D=test,t=t1", | ||
| qw(--user sha256_user --password sha256_user%password --mysql_ssl_optional 1), | ||
| "--alter", "drop primary key, add column _id int unsigned not null primary key auto_increment FIRST", | ||
| qw(--execute --no-check-alter)), | ||
svetasmirnova marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| }, | ||
| ); | ||
|
|
||
| is( | ||
| $exit_code, | ||
| 0, | ||
| "No error when using --mysql_ssl_optional option" | ||
| ) or diag($output); | ||
|
|
||
| like( | ||
| $output, | ||
| qr/Successfully altered `test`.`t1`/, | ||
| "DROP PRIMARY KEY with --mysql_ssl_optional option" | ||
| ); | ||
|
|
||
| # ############################################################################# | ||
| # Done. | ||
| # ############################################################################# | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.