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

Databases with Views produce errors and fail to backup #8

Open
BrandonRoehl opened this issue Oct 10, 2019 · 2 comments
Open

Databases with Views produce errors and fail to backup #8

BrandonRoehl opened this issue Oct 10, 2019 · 2 comments
Labels
bug Something isn't working

Comments

@BrandonRoehl
Copy link
Member

Steps to recreate

  1. Create the view
  2. Backup the database

Example view

CREATE VIEW testview AS SELECT 'test' as c1, 'other as c2;

Error with line number. This happends in the CreateSQL function in dump.go

template:mysqldumpTable:9.3: executing "mysqldumpTable" at <.CreateSQL>:error calling CreateSQL: sql: expected 4 destination arguments in Scan, not 2
@BrandonRoehl BrandonRoehl added the bug Something isn't working label Oct 10, 2019
@billyaustin84
Copy link

Hey @BrandonRoehl have you ever looked into what would be required to resolve this?

@BrandonRoehl
Copy link
Member Author

Yes the first of 2 PRs is now open you can see it here at #11 after the virtual column fix. I am going to need to make a new PR to do the same dynamic scanning for the show sql statement since the columns are not predetermined

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

No branches or pull requests

2 participants