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

Reply via email to