You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ibatis.apache.org by "Ron Grabowski (JIRA)" <ib...@incubator.apache.org> on 2005/01/27 01:45:21 UTC

[jira] Commented: (IBATISNET-22) statements containing undefined global properties silently fail

     [ http://issues.apache.org/jira/browse/IBATISNET-22?page=comments#action_58129 ]
     
Ron Grabowski commented on IBATISNET-22:
----------------------------------------

To avoid confusion, this is the entire properties file:

<?xml version="1.0" encoding="utf-8" ?> 
<settings>
	<add key="hello" value="world" />
</settings>

> statements containing undefined global properties silently fail
> ---------------------------------------------------------------
>
>          Key: IBATISNET-22
>          URL: http://issues.apache.org/jira/browse/IBATISNET-22
>      Project: iBatis for .NET
>         Type: Bug
>     Versions: DataMapper 1.1
>  Environment: Windows Server 2003, DataMapper 1.0.1.321
>     Reporter: Ron Grabowski

>
> If I define a properties file in my sqlmap.config file:
>  <properties resource="database.config"/>
> as such:
>  <settings>
> 	<add key="hello" value="world" />
>  </settings>
> and create a statement like this:
>  <select id="SelectUserName">
>   SELECT Username FROM User WHERE Username = ${username}
>  </select>
> The statement does not appear to get processed by PreparedStatementFactory. Nothing is written to the log file and no exceptions are raised. It just silently fails.
> I suspect that ${xxxxx} is being misinterpreted as $xxxxx$ and some tokenizer somewhere is getting confused.
> In fact I don't think ${xxxxx} strings are being substituted with their respective properties at all. I wrote a temporary work for this to try and resolve another bug:
>  http://issues.apache.org/jira/browse/IBATISNET-21#action_58127

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira