Skip to content

Fix retrieval of get_post_table_characterset - #231

Merged
danielbachhuber merged 1 commit into
wp-cli:masterfrom
lipemat:fix-get-posts-table-charset
Oct 28, 2022
Merged

Fix retrieval of get_post_table_characterset #231
danielbachhuber merged 1 commit into
wp-cli:masterfrom
lipemat:fix-get-posts-table-charset

Conversation

@lipemat

@lipemat lipemat commented Oct 14, 2022

Copy link
Copy Markdown
Contributor

Query command run through assoc_args_to_str get double quotes truncated and fail to execute.

Using single quotes in the query prevent error.

Warning: Failed to get current character set of the posts table. Reason: ERROR at line 1: Unknown command '\_'

Error may be more prominent on windows.

Query command run through `assoc_args_to_str` get double quotes truncated and fail to execute. 

Using single quotes in the query prevent error.

`Warning: Failed to get current character set of the posts table. Reason: ERROR at line 1: Unknown command '\_'`

Error may be more prominent on windows.

@danielbachhuber danielbachhuber left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @lipemat !

Landing so we can let it soak and see if any issues come up: wp-cli/wp-cli#5521 (comment)

@danielbachhuber
danielbachhuber merged commit 196f4d3 into wp-cli:master Oct 28, 2022
danielbachhuber pushed a commit that referenced this pull request Nov 18, 2022
Query command run through `assoc_args_to_str` get double quotes truncated and fail to execute. 

Using single quotes in the query prevent error.

`Warning: Failed to get current character set of the posts table. Reason: ERROR at line 1: Unknown command '\_'`

Error may be more prominent on windows.
@lipemat
lipemat deleted the fix-get-posts-table-charset branch February 24, 2023 06:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

2 participants