Re:Why favor PostgreSQL over MariaDB/MySQL?
by sigi45 on Tuesday September 05, 2017 @07:37AM
(#15174175)
As said in many other comments: This is because you used MySQL in non strict mode. You don't run MySQL on Production in non strict mode.
Re:Why favor PostgreSQL over MariaDB/MySQL?
by thehardsphere on Tuesday September 05, 2017 @10:59AM
(#15175850)
As said in many other comments, the idea that there is even a "strict mode" which was not on by default for many years is itself a problem and a red flag for other problems.
Create a table like the following:
create table user (name varchar(4));
MySql:
insert into user (name) values ('antoaravinth');
The above statement works even though I have given the size of my varchar as 4! And retrieving gives me `anto`!!
Postgres:
insert into user (name) values ('antoaravinth');
Stops me there with the relevant exception! That shows how Postgresql is doing small things right.
After seeing this, I never used MySql!