Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
gorsamp19507y@Ashkin I'd love to brigade this fool but this my first salaried position, I have PLAAANNNSZSSZSSS
-
Dotwo1137ySounds like the validation is the issue? I don't see what's wrong with a varchar PRI, what if you wanted to enforce GUIDs to avoid consecutive account IDs?
-
gorsamp19507y@Dotwo the problem happens with generated queries. When your library sees only numbers and it asks sql for the user by his id or an inner join, an error is returned because 'Evelyn' cannot be cast to int. So I have to force the type all over the place or other random shit. I would explain further but in short no customer uses anything but numbers, they must be typed in so they're not guids, it's usually 4 digits.
Once a month I get a crash for the stupid PHP site I am in charge of because the guy who made the database made the primary key of a table a varchar. It is a number 99.9% of the time but the dumbass customer always enters one entry with a string cuz the dumbass db Dev let them. I emailed the dumbass Dev telling him he is stupid and he said it is part of their philosophy. I told him I still think he is stupid so he emailed my boss.
I emailed him again telling him he is stupid.
rant
primary key