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:20 UTC

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

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


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

Posted by "Ron Grabowski (JIRA)" <ib...@incubator.apache.org>.
     [ 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


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

Posted by "Gilles Bayon (JIRA)" <ib...@incubator.apache.org>.
     [ http://issues.apache.org/jira/browse/IBATISNET-22?page=history ]
     
Gilles Bayon closed IBATISNET-22:
---------------------------------

      Assign To: Gilles Bayon
     Resolution: Fixed
    Fix Version: DataMapper 1.2

Same as JIRA 21
Fix in SVN

> 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
>     Assignee: Gilles Bayon
>      Fix For: DataMapper 1.2

>
> 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