Scroll to top

Jan 17, 2023

The home on the web of Colin Walker.
Find out more on /about, say /EHLO, or tune in to the daily RSS feed.

Jan 17, 2023#p2

After making the recent changes to the database connections, I only realised today that I'd introduced a bug with the post archive.

Older tables created in WordPress used a different character set and collation to those used by the new system. I had originally accounted for this but forgot to do so when updating the connections.

I have, therefore, updated the database connection class (for reading) to accept an optional parameter. If this is passed to the class constructor it will change the character set accordingly and everything works as it should.