summaryrefslogtreecommitdiffstats
path: root/LICENSES
diff options
context:
space:
mode:
authorHarald Eilertsen <haraldei@anduin.net>2021-09-04 20:41:01 +0200
committerHarald Eilertsen <haraldei@anduin.net>2021-09-04 20:41:01 +0200
commit38bfa49958eca679166231f46e767f229d2561a6 (patch)
tree016db65decab002fa7be963949e9e9f711d2a7c4 /LICENSES
parentf6d0f86a9e2a0ab3af398a6fe67d09c3e7779881 (diff)
downloadgigologadmin-38bfa49958eca679166231f46e767f229d2561a6.tar.gz
gigologadmin-38bfa49958eca679166231f46e767f229d2561a6.tar.bz2
gigologadmin-38bfa49958eca679166231f46e767f229d2561a6.zip
Fix so concert id is not overwritten by venue id.
We originally had a more specified query, but simplified it to: SELECT * FROM wpg_concerts LEFT JOIN wpg_venues ON ...; But since both the concerts table and the venues table has a column id, the concert id would be overwritten with the venue id. MySQL/MariaDB does not allow columns with the same name in multiple tables when using unqualified column names in the query. So we need to be more explicit again. I was hoping that the following would work: SELECT wpg_concerts.*, wpg_venues.* FROM .... ; I think MySQL/MariaDB would handle that, but now since php turns the result into an array, where each key must be unique, this again overwrites the concert id with the venue id. So thus a more verbose specification of the columns was necessary.
Diffstat (limited to 'LICENSES')
0 files changed, 0 insertions, 0 deletions