test
This commit is contained in:
parent
968035909d
commit
f96f43c997
2
sql.go
2
sql.go
@ -28,7 +28,7 @@ func initDB() {
|
||||
err = rows.Scan(&name)
|
||||
failOnError(err, "initDB : show tables listing")
|
||||
|
||||
if ok, _ := regexp.MatchString(`^.*_v$`, name); !ok {
|
||||
if ok, _ := regexp.MatchString(`^.*_v$`, name); ok {
|
||||
_, err = tx.Exec("drop view " + name)
|
||||
failOnError(err, "initDB : drop view "+name)
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user