Skip to Content.
Sympa Menu

freetds - SQL Error

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: "pablo" <pcasullo AT lightech.com.ar>
  • To: freetds AT franklin.oit.unc.edu
  • Subject: SQL Error
  • Date: Thu, 4 Jul 2002 10:57:51 -0400


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.



  • SQL Error, pablo, 07/04/2002

Archive powered by MHonArc 2.6.24.

Top of Page