Skip to content

Commit 3dec339

Browse files
committedMay 10, 2021
fix failed tests #268
1 parent a06d2dd commit 3dec339

File tree

3 files changed

+4
-8
lines changed

3 files changed

+4
-8
lines changed
 

‎ktorm-support-postgresql/src/test/kotlin/org/ktorm/support/postgresql/PostgreSqlTest.kt

-7
Original file line numberDiff line numberDiff line change
@@ -859,13 +859,6 @@ class PostgreSqlTest : BaseTest() {
859859
val arr = json<List<Int>>("arr")
860860
}
861861

862-
database.useConnection { conn ->
863-
conn.createStatement().use { statement ->
864-
val sql = """create table t_json (obj json, arr json)"""
865-
statement.executeUpdate(sql)
866-
}
867-
}
868-
869862
database.insert(t) {
870863
set(it.obj, Employee { name = "vince"; salary = 100 })
871864
set(it.arr, listOf(1, 2, 3))

‎ktorm-support-postgresql/src/test/resources/drop-postgresql-data.sql

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@ drop table if exists t_department;
33
drop table if exists t_employee;
44
drop table if exists t_metadata;
55
drop table if exists t_enum;
6-
drop type if exists mood;
6+
drop type if exists mood;
7+
drop table if exists t_json;

‎ktorm-support-postgresql/src/test/resources/init-postgresql-data.sql

+2
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ create table t_enum(
2929
current_mood mood
3030
);
3131

32+
create table t_json (obj json, arr json);
33+
3234
insert into t_department(name, location, "mixedCase") values ('tech', 'Guangzhou', 'one');
3335
insert into t_department(name, location, "mixedCase") values ('finance', 'Beijing', 'two');
3436

0 commit comments

Comments
 (0)
Please sign in to comment.