I have a table with a column defined like
refId INTEGER NOT NULL DEFAUlT 0
If I try to set it to null using a "database tool" (in this case Sequel Pro 1.1.2), by issuing
update mytable set refId = null;
it works fine, and the column gets set to the default value of 0. However, if I try to issue exactly the same update via the JDBC driver from Java, I get
java.sql.SQLIntegrityConstraintViolationException: Column 'refId' cannot be null
This seems very strange to, not sure if it's a bug?
refId INTEGER NOT NULL DEFAUlT 0
If I try to set it to null using a "database tool" (in this case Sequel Pro 1.1.2), by issuing
update mytable set refId = null;
it works fine, and the column gets set to the default value of 0. However, if I try to issue exactly the same update via the JDBC driver from Java, I get
java.sql.SQLIntegrityConstraintViolationException: Column 'refId' cannot be null
This seems very strange to, not sure if it's a bug?