fix oracle

This commit is contained in:
Lunny Xiao 2020-03-04 13:38:05 +08:00
parent f6f647d688
commit e840c2e456
1 changed files with 2 additions and 2 deletions

View File

@ -773,8 +773,8 @@ func (db *oracle) GetColumns(queryer core.Queryer, ctx context.Context, tableNam
}
func (db *oracle) GetTables(queryer core.Queryer, ctx context.Context) ([]*schemas.Table, error) {
args := []interface{}{}
s := "SELECT table_name FROM user_tables"
s := "SELECT table_name FROM user_tables WHERE TABLESPACE_NAME = :1 AND table_name NOT LIKE :2"
args := []interface{}{strings.ToUpper(db.uri.User), "%$%"}
rows, err := queryer.QueryContext(ctx, s, args...)
if err != nil {