I’m getting ”Data type mismatch in criteria
_expression_” error when trying to insert or update DateTime fields in
Access DB. Problem occurs only when culture settings are different in
web server and db. I verified the problem with running same insert and update
clauses with .NET OleDbCommand and it worked fine. Error occurs only when using Ibatis and it’s OleDb1.1
provider. Currently I resolved problem by setting culture in code to ”en-us”
right before calling mapper.Insert or mapper.Update methods, but this ain’t
very good solution J Any ideas how to resolve problem? -------------------------------------------- Mr Jouni Karppinen tel. +358 44
567 9478
|
- Re: Problem with culture settings and DateTime Jouni Karppinen