Query fails in JDBC but executes OK in CUBRID Manager