Skip to content

Commit

Permalink
fix: Inaccurate drop database statement in Oracle
Browse files Browse the repository at this point in the history
Change test names casing and exception name
  • Loading branch information
bog-walk committed Jul 30, 2023
1 parent bb6a967 commit 5f7b10f
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,21 +9,21 @@ import java.sql.SQLException
class CreateDatabaseTest : DatabaseTestsBase() {

@Test
fun `create database test`() {
fun testCreateAndDropDatabase() {
withDb(excludeSettings = listOf(TestDB.POSTGRESQL, TestDB.POSTGRESQLNG, TestDB.ORACLE)) {
val dbName = "jetbrains"
try {
SchemaUtils.dropDatabase(dbName)
} catch (e: SQLException) {
//ignore
} catch (cause: SQLException) {
// ignore
}
SchemaUtils.createDatabase(dbName)
SchemaUtils.dropDatabase(dbName)
}
}

@Test
fun `create database test in postgreSQL`() {
fun testCreateAndDropDatabaseInPostgresql() {
// PostgreSQL needs auto commit to be "ON" to allow create database statement
withDb(listOf(TestDB.POSTGRESQL, TestDB.POSTGRESQLNG)) {
connection.autoCommit = true
Expand Down

0 comments on commit 5f7b10f

Please sign in to comment.