Skip to content

Commit def450f

Browse files
committed
Add CASCADE to DROP SCHEMA in PostgreSQL tests
Without CASCADE (i.e. RESTRICT), the schema won't be deleted. https://www.postgresql.org/docs/current/sql-dropschema.html
1 parent eaf2ee6 commit def450f

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

src/test/java/org/apache/ibatis/submitted/keycolumn/CreateDB.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
-- limitations under the License.
1515
--
1616

17-
DROP SCHEMA IF EXISTS mbtest;
17+
DROP SCHEMA IF EXISTS mbtest CASCADE;
1818

1919
CREATE SCHEMA mbtest;
2020

src/test/java/org/apache/ibatis/submitted/multiple_resultsets/CreateDB.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
-- limitations under the License.
1515
--
1616

17-
DROP SCHEMA IF EXISTS mbtest;
17+
DROP SCHEMA IF EXISTS mbtest CASCADE;
1818

1919
CREATE SCHEMA mbtest;
2020

src/test/java/org/apache/ibatis/submitted/refcursor/CreateDB.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
-- limitations under the License.
1515
--
1616

17-
DROP SCHEMA IF EXISTS mbtest;
17+
DROP SCHEMA IF EXISTS mbtest CASCADE;
1818

1919
CREATE SCHEMA mbtest;
2020

src/test/java/org/apache/ibatis/submitted/sql/CreateDB.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
-- limitations under the License.
1515
--
1616

17-
DROP SCHEMA IF EXISTS mbtest;
17+
DROP SCHEMA IF EXISTS mbtest CASCADE;
1818

1919
CREATE SCHEMA mbtest;
2020

src/test/java/org/apache/ibatis/type/SqlxmlTypeHandlerTest.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
-- limitations under the License.
1515
--
1616

17-
DROP SCHEMA IF EXISTS mbtest;
17+
DROP SCHEMA IF EXISTS mbtest CASCADE;
1818

1919
CREATE SCHEMA mbtest;
2020

0 commit comments

Comments
 (0)