@@ -640,10 +640,10 @@ public void testOracleR2dbcWarning() {
640
640
Connection connection = awaitOne (sharedConnection ());
641
641
try {
642
642
643
- // Expect a warning for forcing a view that references a non-existent
643
+ // Expect a warning for invalid PL/SQL
644
644
// table
645
- String sql = "CREATE OR REPLACE FORCE VIEW testOracleR2dbcWarning AS" +
646
- " SELECT x FROM thisdoesnotexist " ;
645
+ String sql = "CREATE OR REPLACE PROCEDURE testOracleR2dbcWarning AS" +
646
+ " BEGIN this is not valid pl/sql; END; " ;
647
647
Statement warningStatement = connection .createStatement (sql );
648
648
649
649
// Collect the segments
@@ -684,7 +684,7 @@ public void testOracleR2dbcWarning() {
684
684
}
685
685
finally {
686
686
tryAwaitExecution (
687
- connection .createStatement ("DROP VIEW testOracleR2dbcWarning" ));
687
+ connection .createStatement ("DROP PROCEDURE testOracleR2dbcWarning" ));
688
688
tryAwaitNone (connection .close ());
689
689
}
690
690
}
@@ -697,11 +697,10 @@ public void testOracleR2dbcWarningIgnored() {
697
697
Connection connection = awaitOne (sharedConnection ());
698
698
try {
699
699
700
- // Expect a warning for forcing a view that references a non-existent
701
- // table
700
+ // Expect a warning for invalid PL/SQL
702
701
String sql =
703
- "CREATE OR REPLACE FORCE VIEW testOracleR2dbcWarningIgnored AS" +
704
- " SELECT x FROM thisdoesnotexist " ;
702
+ "CREATE OR REPLACE PROCEDURE testOracleR2dbcWarningIgnored AS" +
703
+ " BEGIN this is not valid pl/sql; END; " ;
705
704
Statement warningStatement = connection .createStatement (sql );
706
705
707
706
// Verify that an update count of 0 is returned.
@@ -719,7 +718,8 @@ public void testOracleR2dbcWarningIgnored() {
719
718
}
720
719
finally {
721
720
tryAwaitExecution (
722
- connection .createStatement ("DROP VIEW testOracleR2dbcWarningIgnored" ));
721
+ connection .createStatement (
722
+ "DROP PROCEDURE testOracleR2dbcWarningIgnored" ));
723
723
tryAwaitNone (connection .close ());
724
724
}
725
725
}
@@ -732,11 +732,10 @@ public void testOracleR2dbcWarningIgnored() {
732
732
public void testOracleR2dbcWarningNotIgnored () {
733
733
Connection connection = awaitOne (sharedConnection ());
734
734
try {
735
- // Expect a warning for forcing a view that references a non-existent
736
- // table
735
+ // Expect a warning for invalid PL/SQL
737
736
String sql =
738
- "CREATE OR REPLACE FORCE VIEW testOracleR2dbcWarningIgnored AS" +
739
- " SELECT x FROM thisdoesnotexist " ;
737
+ "CREATE OR REPLACE PROCEDURE testOracleR2dbcWarningIgnored AS" +
738
+ " BEGIN this is not valid pl/sql; END; " ;
740
739
Statement warningStatement = connection .createStatement (sql );
741
740
AtomicInteger segmentIndex = new AtomicInteger (0 );
742
741
awaitError (
@@ -754,7 +753,8 @@ public void testOracleR2dbcWarningNotIgnored() {
754
753
}
755
754
finally {
756
755
tryAwaitExecution (
757
- connection .createStatement ("DROP VIEW testOracleR2dbcWarningIgnored" ));
756
+ connection .createStatement (
757
+ "DROP PROCEDURE testOracleR2dbcWarningIgnored" ));
758
758
tryAwaitNone (connection .close ());
759
759
}
760
760
}
0 commit comments