Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Pgsql Bugs > BUG #4110: Erro...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 1 Topic 3711 of 3928
Post > Topic >>

BUG #4110: Error on select doing (date +1)

by Jllort@[EMAIL PROTECTED] ("Josep Llort") Apr 17, 2008 at 06:54 AM

The following bug has been logged online:

Bug reference:      4110
Logged by:          Josep Llort
Email address:      Jllort@[EMAIL PROTECTED]
 version: 8.1 8.2 8.3
Operating system:   Ubuntu Linux
Description:        Error on select doing (date +1)
Details: 

I found it when I upgrading jdbc jar file. I was using
postgresql-8.0-322.jdbc3.jar that runs propertly.

I've tested all upper versions 8.1, 8.2, since
postgresql-8.3-603.jdbc3.jar
an all seems has the same problem.

On my select i've got something like this:
" and ? + cast(emp_estmin as int) <= ? + 1 " 

'?' are date initialized on java code with ps.setDate(4, new
java.sql.Date(startDate.getTime()));

The error occurs when trying to add some int value to a date ( to
incremental purposes ).

The error ocurred is: 
ERROR: invalid input syntax for integer: "2008-05-01 +02:00"

-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@[EMAIL PROTECTED]
)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
 




 1 Posts in Topic:
BUG #4110: Error on select doing (date +1)
Jllort@[EMAIL PROTECTED]   2008-04-17 06:54:42 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan13V112 Sun Jul 20 4:06:23 CDT 2008.