bug fixed for sqlite3 & oracle dialect
This commit is contained in:
parent
90a3d5e271
commit
c7b8826cda
|
@ -106,7 +106,7 @@ func (db *oracle) IsColumnExist(tableName string, col *core.Column) (bool, error
|
||||||
if rows.Next() {
|
if rows.Next() {
|
||||||
return true, nil
|
return true, nil
|
||||||
}
|
}
|
||||||
return false, ErrNotExist
|
return false, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (db *oracle) GetColumns(tableName string) ([]string, map[string]*core.Column, error) {
|
func (db *oracle) GetColumns(tableName string) ([]string, map[string]*core.Column, error) {
|
||||||
|
|
|
@ -101,7 +101,7 @@ func (db *sqlite3) IsColumnExist(tableName string, col *core.Column) (bool, erro
|
||||||
if rows.Next() {
|
if rows.Next() {
|
||||||
return true, nil
|
return true, nil
|
||||||
}
|
}
|
||||||
return false, ErrNotExist
|
return false, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (db *sqlite3) GetColumns(tableName string) ([]string, map[string]*core.Column, error) {
|
func (db *sqlite3) GetColumns(tableName string) ([]string, map[string]*core.Column, error) {
|
||||||
|
|
Loading…
Reference in New Issue