I am trying to INSERT INTO one column in MySQL database. When trying to do this, I get an error for "No default value" on an entirely different column in the DB. Why would this be if I'm not trying to insert anything into the column I'm getting the error for?
Query being used with JdbcTemplate from Spring Framework:
String sql = "INSERT INTO database_1(col1) VALUES(?)";
jdbc.batchUpdate(sql, params);
params is also populated with legitimate parameters
Output from console: INSERT INTO database_1(col_1) VALUES(?)]; Field 'col_2' doesn't have a default value; nested exception is java.sql.BatchUpdateException