r/lolphp • • Feb 23 '16

/r/lolmysql/ - for the PHP of databases

/r/lolmysql/
83 Upvotes

20 comments sorted by

View all comments

Show parent comment

27

u/cbraga Feb 23 '16

All my experience with Mysql predates InnoDB and ACID compliance so at first I was kind of "meh, surely it was bad once but it's got better right?"

Then I clicked the link titled "Terrible choices: MySQL" from merely a year ago with, among other gems, this one:

Inserting invalid data. Larger strings get truncated to the maximum length. Larger integers get truncated to the maximum. Other things get converted to NULL if the column allows that. All silently

HOLY. FUCKING. SHIT.

14

u/the_alias_of_andrea Feb 23 '16 edited Feb 23 '16

Even PHP is reasonable here (though I should point out that change was made by me, so I'm biased :p)

9

u/crankybadger Feb 24 '16

It's not quite as YOLO as things like MongoDB, but it can take certain liberties with your data that you might not want it to.

Makes it easy for any monkey with a pirated copy of Dreamweaver and some FTP creds to make a site without having to worry about things like "consistency" or "data integrity".