Skip to content

Commit efbb08a

Browse files
brendenweelhazzik
authored andcommitted
NH-3543 - Add support for multi query to DB2 Driver
Fixes #874
1 parent 39836c2 commit efbb08a

File tree

1 file changed

+23
-1
lines changed

1 file changed

+23
-1
lines changed

src/NHibernate/Driver/DB2Driver.cs

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
using System;
2+
using NHibernate.Engine;
23

34
namespace NHibernate.Driver
45
{
@@ -40,5 +41,26 @@ public override bool SupportsMultipleOpenReaders
4041
{
4142
get { return false; }
4243
}
44+
45+
/// <summary>
46+
/// Gets a value indicating whether the driver [supports multiple queries].
47+
/// </summary>
48+
/// <value>
49+
/// <c>true</c> if [supports multiple queries]; otherwise, <c>false</c>.
50+
/// </value>
51+
public override bool SupportsMultipleQueries
52+
{
53+
get { return true; }
54+
}
55+
56+
/// <summary>
57+
/// Gets the result sets command.
58+
/// </summary>
59+
/// <param name="session">The implementor of the session.</param>
60+
/// <returns></returns>
61+
public override IResultSetsCommand GetResultSetsCommand(ISessionImplementor session)
62+
{
63+
return new BasicResultSetsCommand(session);
64+
}
4365
}
44-
}
66+
}

0 commit comments

Comments
 (0)