moremore0812 / mybatisnet

Automatically exported from code.google.com/p/mybatisnet
0 stars 0 forks source link

I can't use member property by use sharp. #36

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What version of the MyBatis.NET are you using?
Mapper : 1.6.2
Access : 1.9.2
Framework : 4.0

Please describe the problem.  Unit tests are best!

1. next style is good working.
    <select id="Find" parameterClass="MemberVO" resultMap="resultMemberVO">
    <![CDATA[
    SELECT
              MEMBER_ID
              , MEMBER_NM
              , MEMBER_PWD
    FROM      TB_MEMBER
    WHERE     MEMBER_ID = '$MemberId$'
    ]]>
    </select>

2. but next style is occure error ( error is ORA-00911: invalid character )
    <select id="Find" parameterClass="MemberVO" resultMap="resultMemberVO">
    <![CDATA[
    SELECT
              MEMBER_ID
              , MEMBER_NM
              , MEMBER_PWD
    FROM      TB_MEMBER
    WHERE     MEMBER_ID = #MemberId#
    ]]>
    </select>

however, i can't use "#". i want to use "#".

What is the expected output? What do you see instead?
ORA-00911: invalid character

Please provide any additional information below.

Original issue reported on code.google.com by jyp...@motionblue.com on 16 Nov 2011 at 8:00

Attachments: