SQL-Abfrage vereinfacht
This commit is contained in:
parent
7144489afb
commit
664c24974b
@ -118,7 +118,7 @@ func (db *DB) WriteBriefing(b *types.Briefing) error {
|
||||
func (db *DB) ReadAll() ([]*types.Briefing, error) {
|
||||
bs := make([]*types.Briefing, 0)
|
||||
|
||||
rows, err := db.Query("SELECT *" + " FROM " + db.Name)
|
||||
rows, err := db.Query("SELECT * FROM " + db.Name)
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("*DB.ReadAll: db.Query(\"SELECT * FROM \"+db.Name): %v\n", err)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user