diff options
| author | Teddy Wing | 2018-03-07 11:37:30 +0100 | 
|---|---|---|
| committer | Johan Van Ryseghem | 2018-03-07 13:19:41 +0100 | 
| commit | 186662b9ef2e996ec649298debb3df352f9849bf (patch) | |
| tree | d342dd7d774a359a2a699beb3f683239a01ae6b2 /lib/tasks | |
| parent | 7034809b7ce458c32597026d69afdf5c37db6bd4 (diff) | |
| download | chouette-core-186662b9ef2e996ec649298debb3df352f9849bf.tar.bz2 | |
Chouette::Line#by_name: Use `LEFT OUTER JOIN` on "companies"
Thanks to Johan for helping me with this. He correctly remarked that
what I had before will do an `INNER JOIN`, which ends up excluding lines
that don't have an associated company. I didn't really think about the
data, and didn't realise we had lines without a company.
Big thanks to Johan for seeing that I needed to add `public.` to qualify
the `companies` table in order for the join to work. Otherwise it
doesn't work correctly and we can't filter by company name.
Refs #5889
Diffstat (limited to 'lib/tasks')
0 files changed, 0 insertions, 0 deletions
