Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
rbuehlma committed May 20, 2024
1 parent 2bac9a5 commit b279773
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ fields:
length: 10
- name: "col5"
dataType: "VARCHAR"
nullable: true
foreignKeys: []
indexes:
- name: "test_table_col1_key"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ public void testRecreateIndexAfterTableChange() throws Exception {
// Verify
assertFalse(schema.getTable("test_table").getField("id").isNullable());
assertThat(schema.getTable("test_table").getIndexes().size(), is(2));
assertThat(schema.getTable("test_table").getIndex("partial_idx").getWhere(), is("col1 = 'test'"));
if (!this.getClass().getSimpleName().contains("Sqlite")) { // https://github.com/jOOQ/jOOQ/issues/16683
assertThat(schema.getTable("test_table").getIndex("partial_idx").getWhere(), is("(((col1)::text = 'test'::text))"));
}
}
}

0 comments on commit b279773

Please sign in to comment.