Date types in where clause of PreparedStatement

From: "Ian deSouza" <iandesouza(at)earthlink(dot)net>
To: pgsql-general(at)postgresql(dot)org
Subject: Date types in where clause of PreparedStatement
Date: 2001-02-18 16:17:50
Message-ID: OASj6.1652$DS3.159506@newsread1.prod.itd.earthlink.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Can anybody show any reason why the code using a prepared statement with a
where clause using a date won't find any records on PostgreSQL but WILL work
using Access and the jdbc-odbc bridge?

ie.

SQL: select
OrderID,CustomerID,EmployeeID,OrderDate,RequiredDate,ShippedDate,ShipVia,Fre
ight,ShipName,ShipAddress,ShipCity,ShipRegion,ShipPostalCode,ShipCountry
from Orders where OrderDate = ?
Setting value: OrderDate 1996-07-05 00:00:00.0

It does not cause an exception, but fails to retrieve anything with
PostgreSQL yet works and retrieves the right record with Access.

I further verified that a record does exist with the PostreSQL database.

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Jose Osman Sansuste T. 2001-02-18 22:41:05 Creating an odbc connection... needing help
Previous Message Jean-Christophe Boggio 2001-02-18 14:29:00 Re[2]: Weird indices