We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 4268145 + bb5f3a4 commit 11ce426Copy full SHA for 11ce426
1 file changed
bdb/drivers/mysql.go
@@ -81,7 +81,7 @@ func (m *MySQLDriver) UseLastInsertID() bool {
81
func (m *MySQLDriver) TableNames(schema string, whitelist, blacklist []string) ([]string, error) {
82
var names []string
83
84
- query := fmt.Sprintf(`select table_name from information_schema.tables where table_schema = ?`)
+ query := fmt.Sprintf(`select table_name from information_schema.tables where table_schema = ? and table_type = 'BASE TABLE'`)
85
args := []interface{}{schema}
86
if len(whitelist) > 0 {
87
query += fmt.Sprintf(" and table_name in (%s);", strings.Repeat(",?", len(whitelist))[1:])
0 commit comments