Skip to content

fix for mysql  #2

@sheercat

Description

@sheercat

at dialect_mysql.go

func (this MysqlDialect) ListColumns(dbname string, table Table) string {
return fmt.Sprintf(select column_name, data_type from information_schema.columns where table_schema = 'main' and table_name='%s', table.Name)
}

is maybe

func (this MysqlDialect) ListColumns(dbname string, table Table) string {
return fmt.Sprintf(select column_name, data_type from information_schema.columns where table_schema = '%s' and table_name='%s', dbname, table.Name)
}

Thank you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions