wp-cli / db-command

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

Add SQL mode compat query to db import command #170

Closed schlessera closed 4 years ago

schlessera commented 4 years ago

This adds the SQL mode compat logic to the *.sql file that is being used to run db import.

However, this only works if an actual file is being loaded. It doesn't take into account the use case where we use - as the file and then pipe SQL code directly into mysql. Trying to cover this case as well might open up a whole new can of worms and should be handled separately. See #171