Closed GoogleCodeExporter closed 8 years ago
DISTINCT sounds like a good idea, however I believe the where is necessary so
you can search on FIRST, LAST, or
both names together.
Original comment by subim...@gmail.com
on 2 Jun 2008 at 5:51
I didn't got rid of the where clause completely, both names together was left
there
(this is what CONCAT is meant for), but I didn't understood why do you want yet
the
FIRST or LAST name alone.
Anyway, with or without it the result should be the same, I just think its not
needed. Unless you give me an example that I didn't though about and it gives
different results.
Original comment by edmundo...@gmail.com
on 2 Jun 2008 at 4:04
OK. I tried to make it give different results and found another problem.
Creating two orders with the same e-mail address, when you search by any field
of one
order the other is returned too, even if it don't match the criteria (but it
matches
the order_user_id owner of the e-mail address).
This will need to be redone. Both selects are wrong.
Original comment by edmundo...@gmail.com
on 2 Jun 2008 at 4:32
Here is the patch, I joined with the addresses table two times giving different
names, this way the distinct clause is not needed.
I still took out the where clauses that uses first or last name alone, only the
clause with concat was left.
Original comment by edmundo...@gmail.com
on 2 Jun 2008 at 6:04
Attachments:
Thanks for the update, great patch. Fixed r97.
Original comment by subim...@gmail.com
on 15 Jun 2008 at 7:12
Original issue reported on code.google.com by
edmundo...@gmail.com
on 1 Jun 2008 at 9:03Attachments: