SQL Error

pablo pcasullo at lightech.com.ar
Thu Jul 4 11:57:51 EDT 2002


Hi, I want to know if someone has come across this and if someone could
work it out...

When querying the database with:

SELECT CONVERT(char(9), fechahora, 3) + mensaje  FROM mensajes where
fechahora between "Jun 30 2002 23:58" AND "Jul 1 2002 00:02"

I have table called "mensajes" with a date type column "fechahora" and
text type column "mensaje".

the result is:

30/06/02 mensaje 1
30/06/02 mensaje 2
30/06/02 mensaje 3
30/06/02 mensaje 4
01/07/02 mensaje 5
01/07/02 mensaje 6
01/07/02 mensaje 7
01/07/02 mensaje 8

but when I perform this VERY SAME query from Java, I get the following
result:

01/07/02 mensaje 1
01/07/02 mensaje 2
01/07/02 mensaje 3
01/07/02 mensaje 4
01/07/02 mensaje 5
01/07/02 mensaje 6
01/07/02 mensaje 7
01/07/02 mensaje 8

Does anyone know what is going on here?

Best regards.



More information about the FreeTDS mailing list