[color=darkblue]Esse erro ocorre no momento exato que pego os valores da base, no Resultset, rs.getTimestamp(5), tentei fazer comparações e tudo mais, mas os valores já estão setados dessa forma na base exatamente assim ‘0000-00-00 00:00:00’, já tentei alterar o rs.getObject(5), mas mesmo assim o erro é gerado, se alguém puder me ajudar, desde já agradeço ! [/color]
java.sql.SQLException: Cannot convert value '0000-00-00 00:00:00' from column 5 to TIMESTAMP.
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1055)
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:956)
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:926)
at com.mysql.jdbc.ResultSetImpl.getTimestampFromString(ResultSetImpl.java:6343)
at com.mysql.jdbc.ResultSetImpl.getStringInternal(ResultSetImpl.java:5670)
at com.mysql.jdbc.ResultSetImpl.getString(ResultSetImpl.java:5491)
at br.com.transaction.dao.RelatorioOSDAO.getAllRelOS(RelatorioOSDAO.java:57)
at br.com.transaction.input.InputDataRelOS.execute(InputDataRelOS.java:43)
at br.com.transaction.function.ExcuteParametros.main(ExcuteParametros.java:43)
Caused by: java.sql.SQLException: Value '0000-00-00 00:00:00' can not be represented as java.sql.Timestamp
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1055)
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:956)
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:926)
at com.mysql.jdbc.ResultSetImpl.getTimestampFromString(ResultSetImpl.java:6094)
... 5 more