Skip to content

Commit

Permalink
BUGFIXE: Re-Load also station not used yet (LEFT JOIN)
Browse files Browse the repository at this point in the history
  • Loading branch information
Fabien Proriol committed Jul 22, 2015
1 parent 71b72e7 commit 5a68a93
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion car.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ void Car::db_load()
_fueltypelist.append(fueltype);
}
}
if(query.exec("SELECT id,name,sum(TankList.quantity) as quantity FROM StationList, TankList WHERE StationList.id == TankList.station GROUP BY StationList.id;"))
if(query.exec("SELECT id,name,sum(TankList.quantity) as quantity FROM StationList LEFT JOIN TankList ON StationList.id == TankList.station GROUP BY StationList.id;"))
{
while(query.next())
{
Expand Down

0 comments on commit 5a68a93

Please sign in to comment.