@@ -377,8 +377,7 @@ public void InsertWithSelectListUsingJoins()
377
377
378
378
s . Query < Human > ( ) . Where ( x => x . Mother . Mother != null )
379
379
. Insert ( ) . As ( x => new Animal { Description = x . Description , BodyWeight = x . BodyWeight } ) ;
380
-
381
- s . CreateQuery ( "delete from Animal" ) . ExecuteUpdate ( ) ;
380
+
382
381
s . Transaction . Commit ( ) ;
383
382
s . Close ( ) ;
384
383
}
@@ -430,6 +429,11 @@ public void InsertToComponent()
430
429
[ Test ]
431
430
public void UpdateWithWhereExistsSubquery ( )
432
431
{
432
+ if ( ! Dialect . SupportsTemporaryTables )
433
+ {
434
+ Assert . Ignore ( "Cannot perform multi-table updates using dialect not supporting temp tables." ) ;
435
+ }
436
+
433
437
// multi-table ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
434
438
var joe = new Human { Name = new Name { First = "Joe" , Initial = 'Q' , Last = "Public" } } ;
435
439
var doll = new Human { Name = new Name { First = "Kyu" , Initial = 'P' , Last = "Doll" } , Friends = new [ ] { joe } } ;
@@ -582,6 +586,11 @@ public void IncrementTimestampVersion()
582
586
[ Test ]
583
587
public void UpdateOnComponent ( )
584
588
{
589
+ if ( ! Dialect . SupportsTemporaryTables )
590
+ {
591
+ Assert . Ignore ( "Cannot perform multi-table updates using dialect not supporting temp tables." ) ;
592
+ }
593
+
585
594
var human = new Human { Name = new Name { First = "Stevee" , Initial = 'X' , Last = "Ebersole" } } ;
586
595
using ( var s = OpenSession ( ) )
587
596
{
@@ -643,6 +652,11 @@ public void UpdateWithClientSideRequirementsThrowsException()
643
652
[ Test ]
644
653
public void UpdateOnManyToOne ( )
645
654
{
655
+ if ( ! Dialect . SupportsTemporaryTables )
656
+ {
657
+ Assert . Ignore ( "Cannot perform multi-table updates using dialect not supporting temp tables." ) ;
658
+ }
659
+
646
660
using ( var s = OpenSession ( ) )
647
661
using ( var t = s . BeginTransaction ( ) )
648
662
{
@@ -702,6 +716,11 @@ public void UpdateOnDiscriminatorSubclass()
702
716
[ Test ]
703
717
public void UpdateOnAnimal ( )
704
718
{
719
+ if ( ! Dialect . SupportsTemporaryTables )
720
+ {
721
+ Assert . Ignore ( "Cannot perform multi-table updates using dialect not supporting temp tables." ) ;
722
+ }
723
+
705
724
using ( var s = OpenSession ( ) )
706
725
using ( var t = s . BeginTransaction ( ) )
707
726
{
@@ -739,6 +758,11 @@ public void UpdateOnAnimal()
739
758
[ Test ]
740
759
public void UpdateOnDragonWithProtectedProperty ( )
741
760
{
761
+ if ( ! Dialect . SupportsTemporaryTables )
762
+ {
763
+ Assert . Ignore ( "Cannot perform multi-table updates using dialect not supporting temp tables." ) ;
764
+ }
765
+
742
766
using ( var s = OpenSession ( ) )
743
767
using ( var t = s . BeginTransaction ( ) )
744
768
{
@@ -754,6 +778,11 @@ public void UpdateOnDragonWithProtectedProperty()
754
778
[ Test ]
755
779
public void UpdateMultiplePropertyOnAnimal ( )
756
780
{
781
+ if ( ! Dialect . SupportsTemporaryTables )
782
+ {
783
+ Assert . Ignore ( "Cannot perform multi-table updates using dialect not supporting temp tables." ) ;
784
+ }
785
+
757
786
using ( var s = OpenSession ( ) )
758
787
using ( var t = s . BeginTransaction ( ) )
759
788
{
@@ -778,6 +807,11 @@ public void UpdateMultiplePropertyOnAnimal()
778
807
[ Test ]
779
808
public void UpdateOnMammal ( )
780
809
{
810
+ if ( ! Dialect . SupportsTemporaryTables )
811
+ {
812
+ Assert . Ignore ( "Cannot perform multi-table updates using dialect not supporting temp tables." ) ;
813
+ }
814
+
781
815
using ( var s = OpenSession ( ) )
782
816
using ( var t = s . BeginTransaction ( ) )
783
817
{
@@ -803,6 +837,11 @@ public void UpdateOnMammal()
803
837
[ Test ]
804
838
public void UpdateSetNullUnionSubclass ( )
805
839
{
840
+ if ( ! Dialect . SupportsTemporaryTables )
841
+ {
842
+ Assert . Ignore ( "Cannot perform multi-table updates using dialect not supporting temp tables." ) ;
843
+ }
844
+
806
845
// These should reach out into *all* subclass tables...
807
846
using ( var s = OpenSession ( ) )
808
847
using ( var t = s . BeginTransaction ( ) )
@@ -845,6 +884,11 @@ public void UpdateSetNullOnDiscriminatorSubclass()
845
884
[ Test ]
846
885
public void UpdateSetNullOnJoinedSubclass ( )
847
886
{
887
+ if ( ! Dialect . SupportsTemporaryTables )
888
+ {
889
+ Assert . Ignore ( "Cannot perform multi-table updates using dialect not supporting temp tables." ) ;
890
+ }
891
+
848
892
using ( var s = OpenSession ( ) )
849
893
using ( var t = s . BeginTransaction ( ) )
850
894
{
@@ -866,6 +910,11 @@ public void UpdateSetNullOnJoinedSubclass()
866
910
[ Test ]
867
911
public void DeleteWithSubquery ( )
868
912
{
913
+ if ( Dialect is MsSqlCeDialect )
914
+ {
915
+ Assert . Ignore ( "Test failing on Ms SQL CE." ) ;
916
+ }
917
+
869
918
// setup the test data...
870
919
using ( var s = OpenSession ( ) )
871
920
{
@@ -915,6 +964,10 @@ public void SimpleDeleteOnAnimal()
915
964
{
916
965
Assert . Ignore ( "Self referential FK bug" ) ;
917
966
}
967
+ if ( ! Dialect . SupportsTemporaryTables )
968
+ {
969
+ Assert . Ignore ( "Cannot perform multi-table deletes using dialect not supporting temp tables." ) ;
970
+ }
918
971
919
972
using ( var s = OpenSession ( ) )
920
973
using ( var t = s . BeginTransaction ( ) )
0 commit comments