You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user-java@ibatis.apache.org by David McReynolds <dm...@secureworks.net> on 2009/07/22 19:38:33 UTC

weird behavior

Anyone know under what circumstances ibatis would fail to locate a
record when I can take the query from the log and run it and find the
record. The field I'm searching on is a simple integer.

Turned on debug for java.sql and ibatis. The query is logged, along with
the parameter. The result set is empty. I take that query, from the log,
paste it into an mysql session, change the "?" to the parameter value I
get from the log, and behold, I get a result.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-java-unsubscribe@ibatis.apache.org
For additional commands, e-mail: user-java-help@ibatis.apache.org


Re: weird behavior

Posted by Larry Meadors <la...@gmail.com>.
On Wed, Jul 22, 2009 at 12:29 PM, David
McReynolds<dm...@secureworks.net> wrote:
> There are only two kinds of programming errors: "stupid programmer
> mistakes and stupid programmer mistakes".
>
> Brandon Goodin wrote:
>> perhaps you haven't specified a resultClass/resultMap?

I've never spent a day trying to figure that one out. ;-)

Larry

---------------------------------------------------------------------
To unsubscribe, e-mail: user-java-unsubscribe@ibatis.apache.org
For additional commands, e-mail: user-java-help@ibatis.apache.org


Re: weird behavior

Posted by David McReynolds <dm...@secureworks.net>.
DOH!

There are only two kinds of programming errors: "stupid programmer
mistakes and stupid programmer mistakes".

Brandon Goodin wrote:
> perhaps you haven't specified a resultClass/resultMap?
>
> Brandon Goodin
>
>
> On Wed, Jul 22, 2009 at 12:38 PM, David McReynolds
> <dmcreynolds@secureworks.net <ma...@secureworks.net>> wrote:
>
>     Anyone know under what circumstances ibatis would fail to locate a
>     record when I can take the query from the log and run it and find the
>     record. The field I'm searching on is a simple integer.
>
>     Turned on debug for java.sql and ibatis. The query is logged,
>     along with
>     the parameter. The result set is empty. I take that query, from
>     the log,
>     paste it into an mysql session, change the "?" to the parameter
>     value I
>     get from the log, and behold, I get a result.
>
>     ---------------------------------------------------------------------
>     To unsubscribe, e-mail: user-java-unsubscribe@ibatis.apache.org
>     <ma...@ibatis.apache.org>
>     For additional commands, e-mail: user-java-help@ibatis.apache.org
>     <ma...@ibatis.apache.org>
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-java-unsubscribe@ibatis.apache.org
For additional commands, e-mail: user-java-help@ibatis.apache.org


Re: weird behavior

Posted by Brandon Goodin <br...@gmail.com>.
perhaps you haven't specified a resultClass/resultMap?
Brandon Goodin


On Wed, Jul 22, 2009 at 12:38 PM, David McReynolds <
dmcreynolds@secureworks.net> wrote:

> Anyone know under what circumstances ibatis would fail to locate a
> record when I can take the query from the log and run it and find the
> record. The field I'm searching on is a simple integer.
>
> Turned on debug for java.sql and ibatis. The query is logged, along with
> the parameter. The result set is empty. I take that query, from the log,
> paste it into an mysql session, change the "?" to the parameter value I
> get from the log, and behold, I get a result.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-java-unsubscribe@ibatis.apache.org
> For additional commands, e-mail: user-java-help@ibatis.apache.org
>
>