Repository navigation
Add/sqlite import export support #259
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
Changes from 1 commit
effeac9
648f5c0
6543dd9
0c81605
05714cb
f6b2da6
963fc04
c23bd71
a3e359b
b10aa9e
1d36969
d33bb66
74e4008
73fb1d3
377a450
46863b8
2753c79
9085b5e
69dfb06
a9b61e0
241b89c
f9affee
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
- Loading branch information
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -75,23 +75,23 @@ Feature: Query the database with WordPress' MySQL config | |
| Scenario: MySQL defaults are available as appropriate with --defaults flag | ||
| Given a WP install | ||
|
|
||
| When I try `wp db query --defaults --debug` | ||
| When I try `"select 1" | wp db query --defaults --debug` | ||
|
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. What is the context of this change?
Author
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. Test command expects STDIN, none was given so it would cause the command to freeze indefinitely and the test would be stuck (at least locally). |
||
| Then STDERR should contain: | ||
| """ | ||
| Debug (db): Running shell command: /usr/bin/env mysql --no-auto-rehash | ||
| """ | ||
|
|
||
| When I try `wp db query --debug` | ||
| When I try `"select 1" | wp db query --debug` | ||
| Then STDERR should contain: | ||
| """ | ||
| Debug (db): Running shell command: /usr/bin/env mysql --no-defaults --no-auto-rehash | ||
| """ | ||
|
|
||
| When I try `wp db query --no-defaults --debug` | ||
| When I try `"select 1" | wp db query --no-defaults --debug` | ||
| Then STDERR should contain: | ||
| """ | ||
| Debug (db): Running shell command: /usr/bin/env mysql --no-defaults --no-auto-rehash | ||
| """ | ||
| """ | ||
|
|
||
| Scenario: SQL modes do not include any of the modes incompatible with WordPress | ||
| Given a WP install | ||
|
|
||
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.
Nice catch and fix. I see this test was there for 5 years. How did it even work before?
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.
Maybe it depends on the environment. We both experienced this issue locally but the CI seems to be fine with it.