wp-cli / db-command

Performs basic database operations using credentials stored in wp-config.php.
MIT License
71 stars 59 forks source link

Emulate WordPress SQL mode compat hack #169

Closed schlessera closed 4 years ago

schlessera commented 4 years ago

This prepends a SELECT statement to each query that goes directly through the mysql binary (instead of the WPDB abstraction) to set the SQL mode to a state compatible with WordPress Core behavior.

Fixes #168