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/19 04:53:24 UTC
svn commit: r170856 -
/incubator/ibatis/trunk/cs/mapper/IBatisNet.DataMapper.Test/Maps/Oracle/OracleClient
/incubator/ibatis/trunk/cs/mapper/IBatisNet.DataMapper.Test/NUnit/SqlMapTests
/incubator/ibatis/trunk/cs/mapper/IBatisNet.DataMapper/Configuration/ParameterMapping
Author: roberto
Date: Wed May 18 19:53:23 2005
New Revision: 170856
URL: http://svn.apache.org/viewcvs?rev=170856&view=rev
Log:
~Updated C# DataMapper:
Add checks for Decimal and DateTime System.Types in ParameterMap.cs for changes in SVN r170826 (Oracle MS OracleClient and ODP tests pass again).
Updated Oracle/OracleClient/LineItem.xml to match Oracle/ODP/LineItem.xml.
Updated StatementTest.cs (added summary comment to one test).
Modified:
incubator/ibatis/trunk/cs/mapper/IBatisNet.DataMapper.Test/Maps/Oracle/OracleClient/LineItem.xml
incubator/ibatis/trunk/cs/mapper/IBatisNet.DataMapper.Test/NUnit/SqlMapTests/StatementTest.cs
incubator/ibatis/trunk/cs/mapper/IBatisNet.DataMapper/Configuration/ParameterMapping/ParameterMap.cs
Modified: incubator/ibatis/trunk/cs/mapper/IBatisNet.DataMapper.Test/Maps/Oracle/OracleClient/LineItem.xml
URL: http://svn.apache.org/viewcvs/incubator/ibatis/trunk/cs/mapper/IBatisNet.DataMapper.Test/Maps/Oracle/OracleClient/LineItem.xml?rev=170856&r1=170855&r2=170856&view=diff
==============================================================================
--- incubator/ibatis/trunk/cs/mapper/IBatisNet.DataMapper.Test/Maps/Oracle/OracleClient/LineItem.xml (original)
+++ incubator/ibatis/trunk/cs/mapper/IBatisNet.DataMapper.Test/Maps/Oracle/OracleClient/LineItem.xml Wed May 18 19:53:23 2005
@@ -173,9 +173,9 @@
-->
<delete id="DeleteWithComments" >
<!-- Delete LineItems -->
- delete from LineItems where Order_ID = 10
+ BEGIN delete from LineItems where Order_ID = 10;
<!-- Delete LineItems -->
- delete from LineItems where Order_ID = 9
+ delete from LineItems where Order_ID = 9; END;
</delete>
</statements>
Modified: incubator/ibatis/trunk/cs/mapper/IBatisNet.DataMapper.Test/NUnit/SqlMapTests/StatementTest.cs
URL: http://svn.apache.org/viewcvs/incubator/ibatis/trunk/cs/mapper/IBatisNet.DataMapper.Test/NUnit/SqlMapTests/StatementTest.cs?rev=170856&r1=170855&r2=170856&view=diff
==============================================================================
--- incubator/ibatis/trunk/cs/mapper/IBatisNet.DataMapper.Test/NUnit/SqlMapTests/StatementTest.cs (original)
+++ incubator/ibatis/trunk/cs/mapper/IBatisNet.DataMapper.Test/NUnit/SqlMapTests/StatementTest.cs Wed May 18 19:53:23 2005
@@ -308,6 +308,9 @@
}
[Test]
+ /// <summary>
+ /// Test ExecuteQueryForPaginatedList
+ /// </summary>
public void TestExecuteQueryForPaginatedList()
{
// Get List of all 5
@@ -1054,7 +1057,6 @@
/// <summary>
/// Test JIRA 30 (repeating property)
- /// TODO JIRA 30 repeating property for all providers
/// </summary>
[Test]
public void TestJIRA30()
Modified: incubator/ibatis/trunk/cs/mapper/IBatisNet.DataMapper/Configuration/ParameterMapping/ParameterMap.cs
URL: http://svn.apache.org/viewcvs/incubator/ibatis/trunk/cs/mapper/IBatisNet.DataMapper/Configuration/ParameterMapping/ParameterMap.cs?rev=170856&r1=170855&r2=170856&view=diff
==============================================================================
--- incubator/ibatis/trunk/cs/mapper/IBatisNet.DataMapper/Configuration/ParameterMapping/ParameterMap.cs (original)
+++ incubator/ibatis/trunk/cs/mapper/IBatisNet.DataMapper/Configuration/ParameterMapping/ParameterMap.cs Wed May 18 19:53:23 2005
@@ -257,6 +257,8 @@
if (parameterValue.GetType() != typeof(string) &&
parameterValue.GetType() != typeof(Guid) &&
+ parameterValue.GetType() != typeof(Decimal) &&
+ parameterValue.GetType() != typeof(DateTime) &&
!parameterValue.GetType().IsPrimitive)
{
value = ObjectProbe.GetPropertyValue(value, mapping.PropertyName);
Re: svn commit: r170856 - /incubator/ibatis/trunk/cs/mapper/IBatisNet.DataMapper.Test/Maps/Oracle/OracleClient /incubator/ibatis/trunk/cs/mapper/IBatisNet.DataMapper.Test/NUnit/SqlMapTests /incubator/ibatis/trunk/cs/mapper/IBatisNet.DataMapper/Config
Posted by Roberto R <ro...@gmail.com>.
I LOVE Oracle! lol
Roberto
On 5/19/05, Gilles Bayon <ib...@gmail.com> wrote:
>
> Funny, because I have passed test with SqlClient, Oledb, obdc, npgsql
> without problem !
>
>
Re: svn commit: r170856 - /incubator/ibatis/trunk/cs/mapper/IBatisNet.DataMapper.Test/Maps/Oracle/OracleClient /incubator/ibatis/trunk/cs/mapper/IBatisNet.DataMapper.Test/NUnit/SqlMapTests /incubator/ibatis/trunk/cs/mapper/IBatisNet.DataMapper/Config
Posted by Gilles Bayon <ib...@gmail.com>.
Funny, because I have passed test with SqlClient, Oledb, obdc, npgsql
without problem !
On 5/19/05, roberto@apache.org <ro...@apache.org> wrote:
> Author: roberto
> Date: Wed May 18 19:53:23 2005
> New Revision: 170856
>
> URL: http://svn.apache.org/viewcvs?rev=170856&view=rev
> Log:
> ~Updated C# DataMapper:
> Add checks for Decimal and DateTime System.Types in ParameterMap.cs for changes in SVN r170826 (Oracle MS OracleClient and ODP tests pass again).
> Updated Oracle/OracleClient/LineItem.xml to match Oracle/ODP/LineItem.xml.
> Updated StatementTest.cs (added summary comment to one test).
>
>
>
>
> Modified:
> incubator/ibatis/trunk/cs/mapper/IBatisNet.DataMapper.Test/Maps/Oracle/OracleClient/LineItem.xml
> incubator/ibatis/trunk/cs/mapper/IBatisNet.DataMapper.Test/NUnit/SqlMapTests/StatementTest.cs
> incubator/ibatis/trunk/cs/mapper/IBatisNet.DataMapper/Configuration/ParameterMapping/ParameterMap.cs
>
> Modified: incubator/ibatis/trunk/cs/mapper/IBatisNet.DataMapper.Test/Maps/Oracle/OracleClient/LineItem.xml
> URL: http://svn.apache.org/viewcvs/incubator/ibatis/trunk/cs/mapper/IBatisNet.DataMapper.Test/Maps/Oracle/OracleClient/LineItem.xml?rev=170856&r1=170855&r2=170856&view=diff
> ==============================================================================
> --- incubator/ibatis/trunk/cs/mapper/IBatisNet.DataMapper.Test/Maps/Oracle/OracleClient/LineItem.xml (original)
> +++ incubator/ibatis/trunk/cs/mapper/IBatisNet.DataMapper.Test/Maps/Oracle/OracleClient/LineItem.xml Wed May 18 19:53:23 2005
> @@ -173,9 +173,9 @@
> -->
> <delete id="DeleteWithComments" >
> <!-- Delete LineItems -->
> - delete from LineItems where Order_ID = 10
> + BEGIN delete from LineItems where Order_ID = 10;
> <!-- Delete LineItems -->
> - delete from LineItems where Order_ID = 9
> + delete from LineItems where Order_ID = 9; END;
> </delete>
>
> </statements>
>
> Modified: incubator/ibatis/trunk/cs/mapper/IBatisNet.DataMapper.Test/NUnit/SqlMapTests/StatementTest.cs
> URL: http://svn.apache.org/viewcvs/incubator/ibatis/trunk/cs/mapper/IBatisNet.DataMapper.Test/NUnit/SqlMapTests/StatementTest.cs?rev=170856&r1=170855&r2=170856&view=diff
> ==============================================================================
> --- incubator/ibatis/trunk/cs/mapper/IBatisNet.DataMapper.Test/NUnit/SqlMapTests/StatementTest.cs (original)
> +++ incubator/ibatis/trunk/cs/mapper/IBatisNet.DataMapper.Test/NUnit/SqlMapTests/StatementTest.cs Wed May 18 19:53:23 2005
> @@ -308,6 +308,9 @@
> }
>
> [Test]
> + /// <summary>
> + /// Test ExecuteQueryForPaginatedList
> + /// </summary>
> public void TestExecuteQueryForPaginatedList()
> {
> // Get List of all 5
> @@ -1054,7 +1057,6 @@
>
> /// <summary>
> /// Test JIRA 30 (repeating property)
> - /// TODO JIRA 30 repeating property for all providers
> /// </summary>
> [Test]
> public void TestJIRA30()
>
> Modified: incubator/ibatis/trunk/cs/mapper/IBatisNet.DataMapper/Configuration/ParameterMapping/ParameterMap.cs
> URL: http://svn.apache.org/viewcvs/incubator/ibatis/trunk/cs/mapper/IBatisNet.DataMapper/Configuration/ParameterMapping/ParameterMap.cs?rev=170856&r1=170855&r2=170856&view=diff
> ==============================================================================
> --- incubator/ibatis/trunk/cs/mapper/IBatisNet.DataMapper/Configuration/ParameterMapping/ParameterMap.cs (original)
> +++ incubator/ibatis/trunk/cs/mapper/IBatisNet.DataMapper/Configuration/ParameterMapping/ParameterMap.cs Wed May 18 19:53:23 2005
> @@ -257,6 +257,8 @@
>
> if (parameterValue.GetType() != typeof(string) &&
> parameterValue.GetType() != typeof(Guid) &&
> + parameterValue.GetType() != typeof(Decimal) &&
> + parameterValue.GetType() != typeof(DateTime) &&
> !parameterValue.GetType().IsPrimitive)
> {
> value = ObjectProbe.GetPropertyValue(value, mapping.PropertyName);
>
>
>