Problem when calling setObject on Timestamp column with JDBC driver

Поиск
Список
Период
Сортировка
Искать

Problem when calling setObject on Timestamp column with JDBC driver

От:
"Ian deSouza" <iand@metamousetrap.com>
Дата:
I'm having a problem doing a select on an Order with a where clause below,
getting a preparedStatemtnt and calling
preparedStatement.setObject(timeStamp);

Its return nothing and I know there is a row with that orderDate.

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-07 23:00:00.0

Could there be a bug here?
FAQ