I am running my junit tests through Eclipse, everything works just fine,including inserts bellow. When I am running it through ant from comand line I am getting :
org.springframework.jdbc.BadSqlGrammarException: StatementCallback; bad SQL grammar [insert into experiment (id, name, description, journal, user_access) values('1', 'experimentOne', 'first experiment', 'references 1', 'public')]; nested exception is java.sql.SQLException: Column count does not match in statement [insert into experiment_metadata (id, name, description, journal_references, user_access).
Can sombody help? I am sure that sql statement is correct. Thanks in advance.