Skip to content
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

Support TRUNCATE without TABLE #51

Closed
swissspidy opened this issue Oct 23, 2023 · 0 comments · Fixed by #66
Closed

Support TRUNCATE without TABLE #51

swissspidy opened this issue Oct 23, 2023 · 0 comments · Fixed by #66
Labels
bug Something isn't working

Comments

@swissspidy
Copy link
Member

From the docs: TRUNCATE [TABLE] tbl_name

You can do TRUNCATE wp_posts but also TRUNCATE TABLE wp_posts.

Right now, the former is not supported and results in a database error (General error: 1 incomplete input).

@swissspidy swissspidy added the bug Something isn't working label Oct 23, 2023
swissspidy added a commit to wp-cli/entity-command that referenced this issue Oct 23, 2023
This works better with the SQLite plugin right now. See WordPress/sqlite-database-integration#51
aristath added a commit that referenced this issue Dec 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant