ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Larry Meadors <larry.mead...@gmail.com>
Subject Re: table name as parameter
Date Mon, 08 Feb 2010 23:00:52 GMT
Try this:

select * from ${value}

Larry


On Mon, Feb 8, 2010 at 3:57 PM, Tom Carchrae <carchrae@gmail.com> wrote:
>
>
>
> nmaves wrote:
>>
>> I would double check that you are not sending in null as the table name.
>>
>
> I am passing in a non-null string.  But it is definitely a problem caused by
> the table name not being mapped correctly.
>
> When i traced down inside the bowels of iBatis, it gobbles my string inside
>
> TextSqlNode.java:38
>
>        Object value = Ognl.getValue(content, context.getBindings());
>
> Up to this point, it's all looking so good.  Figuring out what is going on
> inside the OgnlParser is, well, a touch intimidating.
>
> Tom
>
>
> --
> View this message in context: http://old.nabble.com/table-name-as-parameter-tp27505213p27507728.html
> Sent from the iBATIS - User - Java mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-java-unsubscribe@ibatis.apache.org
> For additional commands, e-mail: user-java-help@ibatis.apache.org
>
>

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


Mime
View raw message