You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ibatis.apache.org by ro...@apache.org on 2005/05/30 00:28:46 UTC

svn commit: r178994 - /incubator/ibatis/trunk/cs/mapper/IBatisNet.DataMapper.Test/Maps/MySql/MySql/Complex.xml /incubator/ibatis/trunk/cs/mapper/IBatisNet.DataMapper/SqlMapConfig.xsd

Author: roberto
Date: Sun May 29 15:28:43 2005
New Revision: 178994

URL: http://svn.apache.org/viewcvs?rev=178994&view=rev
Log:
~Updated C# DataMapper 
SqlMapConfig.xsd to allow mixed content (text) so that validation can pass with tabs/newlines/linefeeds/spaces etc
Complex.xml for MySql/MySql (to match other db SqlMaps)

Modified:
    incubator/ibatis/trunk/cs/mapper/IBatisNet.DataMapper.Test/Maps/MySql/MySql/Complex.xml
    incubator/ibatis/trunk/cs/mapper/IBatisNet.DataMapper/SqlMapConfig.xsd

Modified: incubator/ibatis/trunk/cs/mapper/IBatisNet.DataMapper.Test/Maps/MySql/MySql/Complex.xml
URL: http://svn.apache.org/viewcvs/incubator/ibatis/trunk/cs/mapper/IBatisNet.DataMapper.Test/Maps/MySql/MySql/Complex.xml?rev=178994&r1=178993&r2=178994&view=diff
==============================================================================
--- incubator/ibatis/trunk/cs/mapper/IBatisNet.DataMapper.Test/Maps/MySql/MySql/Complex.xml (original)
+++ incubator/ibatis/trunk/cs/mapper/IBatisNet.DataMapper.Test/Maps/MySql/MySql/Complex.xml Sun May 29 15:28:43 2005
@@ -9,6 +9,15 @@
 			select Account_ID from Accounts where Account_ID = #obj.Map.Id#
 		</statement>
 		
+		<insert id="InsertComplexAccountViaInlineDefaultNull"
+			parameterClass="Hashtable" >
+			insert into Accounts 
+				(Account_ID, Account_FirstName, Account_LastName, Account_Email) 
+			values 
+				(#obj.Map.acct.Id#, #obj.Map.acct.FirstName#, #obj.Map.acct.LastName#, #obj.Map.acct.EmailAddress:Varchar:no_email@provided.com#
+			)
+		</insert>
+				
 	</statements>
 
 	

Modified: incubator/ibatis/trunk/cs/mapper/IBatisNet.DataMapper/SqlMapConfig.xsd
URL: http://svn.apache.org/viewcvs/incubator/ibatis/trunk/cs/mapper/IBatisNet.DataMapper/SqlMapConfig.xsd?rev=178994&r1=178993&r2=178994&view=diff
==============================================================================
--- incubator/ibatis/trunk/cs/mapper/IBatisNet.DataMapper/SqlMapConfig.xsd (original)
+++ incubator/ibatis/trunk/cs/mapper/IBatisNet.DataMapper/SqlMapConfig.xsd Sun May 29 15:28:43 2005
@@ -82,7 +82,7 @@
 		</xs:complexType>
 	</xs:element>
 	<xs:element name="sqlMapConfig">
-		<xs:complexType>
+		<xs:complexType mixed="true">
 			<xs:sequence>
 				<xs:element ref="properties" minOccurs="0" maxOccurs="1"/>
 				<xs:element ref="settings" minOccurs="0" maxOccurs="1"/>