-
Notifications
You must be signed in to change notification settings - Fork 84
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
TRUNCATE queries #136
Comments
Thanks! |
Before laying out my similar issue (same error... different cause), I want to thank the Mariaex developers for building Mariaex! I hit the same error but with a different use case that this solution doesn't fix because I'm trying to create a table (DDL), not truncate one. If I add query to @commands_without_rows, I'll create problems for standard queries. I ran I get the same error ("(Protocol.UndefinedError) protocol Enumerable not implemented for nil") if I try
Other methods in the docs seem intended for use with DDL but apparently expect Ecto migration code, not raw SQL/DDL. When I try to use Mariaex in a migration without
it fails with the same error and the table doesn't get created (presumably because it's wrapped in a transaction):
Thanks in advance for any thoughts you might have! --James |
It seems like this query causes problems:
It may have to do with the commands that don't return rows? I didn't try to change those at all, but I will try to look into this myself if I have some time :).
The text was updated successfully, but these errors were encountered: