File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed
Async/NHSpecificTest/GH1235 Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -36,7 +36,10 @@ protected override void OnTearDown()
36
36
using ( var session = OpenSession ( ) )
37
37
using ( var transaction = session . BeginTransaction ( ) )
38
38
{
39
- session . CreateQuery ( "delete from System.Object" ) . ExecuteUpdate ( ) ;
39
+ if ( Dialect . SupportsTemporaryTables )
40
+ session . CreateQuery ( "delete from System.Object" ) . ExecuteUpdate ( ) ;
41
+ else
42
+ session . Delete ( "from System.Object" ) ;
40
43
41
44
transaction . Commit ( ) ;
42
45
}
Original file line number Diff line number Diff line change @@ -24,7 +24,10 @@ protected override void OnTearDown()
24
24
using ( var session = OpenSession ( ) )
25
25
using ( var transaction = session . BeginTransaction ( ) )
26
26
{
27
- session . CreateQuery ( "delete from System.Object" ) . ExecuteUpdate ( ) ;
27
+ if ( Dialect . SupportsTemporaryTables )
28
+ session . CreateQuery ( "delete from System.Object" ) . ExecuteUpdate ( ) ;
29
+ else
30
+ session . Delete ( "from System.Object" ) ;
28
31
29
32
transaction . Commit ( ) ;
30
33
}
You can’t perform that action at this time.
0 commit comments