bug fixed for sqlite3 & oracle dialect

This commit is contained in:
Lunny Xiao 2014-05-14 20:26:42 +08:00
parent 90a3d5e271
commit c7b8826cda
2 changed files with 2 additions and 2 deletions

View File

@ -106,7 +106,7 @@ func (db *oracle) IsColumnExist(tableName string, col *core.Column) (bool, error
if rows.Next() {
return true, nil
}
return false, ErrNotExist
return false, nil
}
func (db *oracle) GetColumns(tableName string) ([]string, map[string]*core.Column, error) {

View File

@ -101,7 +101,7 @@ func (db *sqlite3) IsColumnExist(tableName string, col *core.Column) (bool, erro
if rows.Next() {
return true, nil
}
return false, ErrNotExist
return false, nil
}
func (db *sqlite3) GetColumns(tableName string) ([]string, map[string]*core.Column, error) {