I have two tables. One with int as primary key and other with a varchar primary key.
When an empty string is inserted ( "" ) i get programming error for int but successfully stores for varchar. How does this work?
Is there a way to make varchar fields not accept empty strings? I want them to give some database error which i can catch.