Skip to content

Commit

Permalink
fix failed tests #268
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentlauvlwj committed May 10, 2021
1 parent a06d2dd commit 3dec339
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -859,13 +859,6 @@ class PostgreSqlTest : BaseTest() {
val arr = json<List<Int>>("arr")
}

database.useConnection { conn ->
conn.createStatement().use { statement ->
val sql = """create table t_json (obj json, arr json)"""
statement.executeUpdate(sql)
}
}

database.insert(t) {
set(it.obj, Employee { name = "vince"; salary = 100 })
set(it.arr, listOf(1, 2, 3))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@ drop table if exists t_department;
drop table if exists t_employee;
drop table if exists t_metadata;
drop table if exists t_enum;
drop type if exists mood;
drop type if exists mood;
drop table if exists t_json;
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ create table t_enum(
current_mood mood
);

create table t_json (obj json, arr json);

insert into t_department(name, location, "mixedCase") values ('tech', 'Guangzhou', 'one');
insert into t_department(name, location, "mixedCase") values ('finance', 'Beijing', 'two');

Expand Down

0 comments on commit 3dec339

Please sign in to comment.