▲ | sgarland 4 days ago | |||||||
> Checking that you receive an int, string or enum is unavoidable. How would you be unaware of the data type if you defined the schema? Also, an ENUM is returned as a string; it’s only stored internally as an integer. > Even a JOIN might surprise you with null values. If you have foreign key constraints, you should never be able to get into a situation where you’re surprised by a NULL from an OUTER JOIN. You can certainly still have NULLs, but they shouldn’t come as a surprise. | ||||||||
▲ | vjerancrnjak 4 days ago | parent [-] | |||||||
You can name the groups, there’s no schema for your group by response. I can have a join on a cte or tmp table, then I’m out of the usual checks. You can also have old code running on new schema, so better that it dies on load. | ||||||||
|