Author: rgrabowski
Date: Sat Apr  1 12:42:32 2006
New Revision: 390748

URL: http://svn.apache.org/viewcvs?rev=390748&view=rev
Log:
Replaced hard-coded "@" with sqlMap.DataSource.DbProvider.ParameterPrefix. 
Added Simple.xml and simple-init.sql for MySql to VS2003 and VS2005 project 
files. Set CommandTimeout on IDbCommand object for the ADONet test to more 
closely mimic what IBatisNet is doing.

Added:
    ibatis/trunk/cs/mapper/IBatisNet.DataMapper.Test/Maps/MySql/MySql/Simple.xml
    
ibatis/trunk/cs/mapper/IBatisNet.DataMapper.Test/Scripts/MySql/simple-init.sql
Modified:
    
ibatis/trunk/cs/mapper/IBatisNet.DataMapper.Test/IBatisNet.DataMapper.Test.2005.csproj
    
ibatis/trunk/cs/mapper/IBatisNet.DataMapper.Test/IBatisNet.DataMapper.Test.csproj
    
ibatis/trunk/cs/mapper/IBatisNet.DataMapper.Test/bin/Debug/SqlMap_MySql_MySql.config

Modified: 
ibatis/trunk/cs/mapper/IBatisNet.DataMapper.Test/IBatisNet.DataMapper.Test.2005.csproj
URL: 
http://svn.apache.org/viewcvs/ibatis/trunk/cs/mapper/IBatisNet.DataMapper.Test/IBatisNet.DataMapper.Test.2005.csproj?rev=390748&r1=390747&r2=390748&view=diff
==============================================================================
--- 
ibatis/trunk/cs/mapper/IBatisNet.DataMapper.Test/IBatisNet.DataMapper.Test.2005.csproj
 (original)
+++ 
ibatis/trunk/cs/mapper/IBatisNet.DataMapper.Test/IBatisNet.DataMapper.Test.2005.csproj
 Sat Apr  1 12:42:32 2006
@@ -351,6 +351,7 @@
     <Content Include="Maps\MySql\MySql\Other.xml" />
     <Content Include="Maps\MySql\MySql\ParameterClass.xml" />
     <Content Include="Maps\MySql\MySql\ResultClass.xml" />
+    <Content Include="Maps\MySql\MySql\Simple.xml" />
     <Content Include="Maps\Oracle\ODP\Account.xml" />
     <Content Include="Maps\Oracle\ODP\Category.xml" />
     <Content Include="Maps\Oracle\ODP\Complex.xml" />
@@ -434,6 +435,7 @@
     <Content Include="Scripts\MySql\more-account-records.sql" />
     <Content Include="Scripts\MySql\order-init.sql" />
     <Content Include="Scripts\MySql\other-init.sql" />
+    <Content Include="Scripts\MySql\simple-init.sql" />
     <Content Include="Scripts\MySql\swap-procedure.sql" />
     <Content Include="Scripts\MySql\user-init.sql" />
     <Content Include="Scripts\Oracle\account-init.sql" />

Modified: 
ibatis/trunk/cs/mapper/IBatisNet.DataMapper.Test/IBatisNet.DataMapper.Test.csproj
URL: 
http://svn.apache.org/viewcvs/ibatis/trunk/cs/mapper/IBatisNet.DataMapper.Test/IBatisNet.DataMapper.Test.csproj?rev=390748&r1=390747&r2=390748&view=diff
==============================================================================
--- 
ibatis/trunk/cs/mapper/IBatisNet.DataMapper.Test/IBatisNet.DataMapper.Test.csproj
 (original)
+++ 
ibatis/trunk/cs/mapper/IBatisNet.DataMapper.Test/IBatisNet.DataMapper.Test.csproj
 Sat Apr  1 12:42:32 2006
@@ -630,6 +630,10 @@
                     BuildAction = "Content"
                 />
                 <File
+                    RelPath = "Maps\MySql\MySql\Simple.xml"
+                    BuildAction = "Content"
+                />
+                <File
                     RelPath = "Maps\Oracle\ODP\Account.xml"
                     BuildAction = "Content"
                 />
@@ -1094,6 +1098,10 @@
                 />
                 <File
                     RelPath = "Scripts\MySql\other-init.sql"
+                    BuildAction = "Content"
+                />
+                <File
+                    RelPath = "Scripts\MySql\simple-init.sql"
                     BuildAction = "Content"
                 />
                 <File

Added: 
ibatis/trunk/cs/mapper/IBatisNet.DataMapper.Test/Maps/MySql/MySql/Simple.xml
URL: 
http://svn.apache.org/viewcvs/ibatis/trunk/cs/mapper/IBatisNet.DataMapper.Test/Maps/MySql/MySql/Simple.xml?rev=390748&view=auto
==============================================================================
--- 
ibatis/trunk/cs/mapper/IBatisNet.DataMapper.Test/Maps/MySql/MySql/Simple.xml 
(added)
+++ 
ibatis/trunk/cs/mapper/IBatisNet.DataMapper.Test/Maps/MySql/MySql/Simple.xml 
Sat Apr  1 12:42:32 2006
@@ -0,0 +1,38 @@
+<?xml version="1.0" encoding="utf-8" ?>
+<sqlMap namespace="Simple"
+xmlns="http://ibatis.apache.org/mapping";
+xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
+
+<alias>
+  <typeAlias alias="Simple" type="IBatisNet.DataMapper.Test.Domain.Simple, 
IBatisNet.DataMapper.Test"/>
+</alias>
+
+<statements>
+
+  <update id="UpdateSimple" parameterClass="Simple" >
+    update Simples
+    set
+    `Name` = #Name#,
+    `Address` = #Address#,
+    `Count` = #Count#,
+    `Date` = #Date#,
+    `Pay` = #Pay#
+    where
+    `ID` = #Id#
+  </update>
+
+
+  <delete id="DeleteSimple"  parameterClass="int">
+    delete from Simples 
+    where
+    `Id` = #value#
+  </delete>
+
+  <insert id="InsertSimple" parameterClass="Simple" >
+    insert into Simples ( `Name`, `Address`, `Count`, `Date`, `Pay`, `ID` )
+    values
+    (#Name#, #Address#, #Count#, #Date#, #Pay#, #Id#)
+  </insert>
+
+</statements>
+</sqlMap>

Added: 
ibatis/trunk/cs/mapper/IBatisNet.DataMapper.Test/Scripts/MySql/simple-init.sql
URL: 
http://svn.apache.org/viewcvs/ibatis/trunk/cs/mapper/IBatisNet.DataMapper.Test/Scripts/MySql/simple-init.sql?rev=390748&view=auto
==============================================================================
--- 
ibatis/trunk/cs/mapper/IBatisNet.DataMapper.Test/Scripts/MySql/simple-init.sql 
(added)
+++ 
ibatis/trunk/cs/mapper/IBatisNet.DataMapper.Test/Scripts/MySql/simple-init.sql 
Sat Apr  1 12:42:32 2006
@@ -0,0 +1,14 @@
+use IBatisNet;
+
+drop table if exists Simples;
+
+create table Simples
+(
+   ID int not null,
+   Name varchar(64) NULL,
+   Address varchar(64) NULL,
+   Count int NULL,
+   Date datetime NULL,
+   Pay decimal(18,2) NULL,   
+   primary key (ID)
+) TYPE=INNODB;
\ No newline at end of file

Modified: 
ibatis/trunk/cs/mapper/IBatisNet.DataMapper.Test/bin/Debug/SqlMap_MySql_MySql.config
URL: 
http://svn.apache.org/viewcvs/ibatis/trunk/cs/mapper/IBatisNet.DataMapper.Test/bin/Debug/SqlMap_MySql_MySql.config?rev=390748&r1=390747&r2=390748&view=diff
==============================================================================
--- 
ibatis/trunk/cs/mapper/IBatisNet.DataMapper.Test/bin/Debug/SqlMap_MySql_MySql.config
 (original)
+++ 
ibatis/trunk/cs/mapper/IBatisNet.DataMapper.Test/bin/Debug/SqlMap_MySql_MySql.config
 Sat Apr  1 12:42:32 2006
@@ -40,6 +40,7 @@
                <sqlMap resource="../../Maps/MySql/MySql/ParameterClass.xml"/>
                <sqlMap resource="../../Maps/MySql/MySql/ResultClass.xml"/>
                <sqlMap resource="../../Maps/MySql/MySql/Document.xml"/>
+               <sqlMap resource="../../Maps/MySql/MySql/Simple.xml"/>
                <!-- Rem : If used as embbeded Resources, use
                <sqlMap embedded="Account.xml, IBatisNet.DataMapper.Test"/>
                -->


Reply via email to