• Post Reply Bookmark Topic Watch Topic
  • New Topic

Ibatis queries returning null

 
Collin Dugas
Ranch Hand
Posts: 91
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

I am facing the following issue with IBatis.

Whenever the Database is down or there is a problem with the query or configuration error like resultmap containing fields that do not exist, the IBatis query returns null instead of throwing an exception.

I am not able to distinguish between a null resulting from the query returning a null and the null returned due to other issues(DB down, configuration, etc.)

It would be very helpful if anyone can tell me if its an issue with my code or if this is the designed behavior of Ibatis. Any tips would also help.

Regards,
 
my overalls have superpowers - they repel people who think fashion is important. Tiny ad:
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!