Skip to content

Databases with Views produce errors and fail to backup #8

@BrandonRoehl

Description

@BrandonRoehl

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions