Skip to content

Commit b880775

Browse files
author
mikhaild908@gmail.com
committed
rollback ResultClassTest.TestDateTime(); updated date parameter of GetDate statement for SQLite3;
1 parent 67c973c commit b880775

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/IBatisNet.DataMapper.Test/Maps/SQLite3/ResultClass.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
3939
<statement id="GetDate"
4040
parameterClass="Int"
4141
resultClass="date" >
42-
select datetime(strftime('%s','now'), 'unixepoch', 'localtime') from Orders where Order_ID = #value#
42+
select datetime(strftime('%s','2003-02-15 08:15:00'), 'unixepoch') from Orders where Order_ID = #value#
4343
</statement>
4444
<statement id="GetDateWithoutResultClass"
4545
parameterClass="Int"

src/IBatisNet.DataMapper.Test/NUnit/SqlMapTests/Generics/ResultClassTest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ public void TestChar()
7474
public void TestDateTime()
7575
{
7676
DateTime orderDate = sqlMap.QueryForObject<DateTime>("GetDate", 1);
77-
System.DateTime date = DateTime.Now;
77+
System.DateTime date = new DateTime(2003, 2, 15, 8, 15, 00);
7878

7979
Assert.AreEqual(date.ToString(), orderDate.ToString());
8080
}

0 commit comments

Comments
 (0)