Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -1121,7 +1121,7 @@ private void doAddColumn(Class<? extends UpgradeStep> upgradeStep) throws SQLExc
"(?is)(" + "NULL not allowed for column \"ANOTHERVALUE\"" + ".*)" // H2
+ "|(" + "Field 'anotherValue' doesn't have a default value" + ".*)" // MySQL
+ "|(" + "ORA-01400: cannot insert NULL into \\(.*ANOTHERVALUE.*\\)" + ".*)" // Oracle
+ "|(" + "ERROR: null value in column \"anothervalue\" violates not-null constraint" + ".*)" // PgSQL
+ "|(" + "ERROR: null value in column \"anothervalue\" of relation \"withdefaultvalue\" violates not-null constraint" + ".*)" // PgSQL
));
}
}
Expand Down Expand Up @@ -1356,3 +1356,5 @@ private void compareTableRecords(String tableName, Iterable<Record> expectedReco
}
}
}


Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ public void setup() {

@After
public void tearDown() {
dropUpgradeStatusTable();
schemaManager.invalidateCache();
}

Expand Down Expand Up @@ -144,3 +145,4 @@ private void addUpgradeAuditRecord() {
sqlScriptExecutorProvider.get().execute(connectionResources.sqlDialect().convertStatementToSQL(insertIntoUpgradeAudit));
}
}

Original file line number Diff line number Diff line change
Expand Up @@ -522,7 +522,7 @@ protected String getSqlFrom(ConcatenatedField concatenatedField) {

@Override
protected String getSqlFrom(BlobFieldLiteral field) {
return String.format("E'\\x%s'", field.getValue());
return String.format("decode('%s','hex')", field.getValue());
}

@Override
Expand Down Expand Up @@ -1028,4 +1028,5 @@ private Optional<PostgreSQLMetaDataProvider> getPostgreSQLMetaDataProvider(Schem
.filter(instanceOf(PostgreSQLMetaDataProvider.class))
.map(PostgreSQLMetaDataProvider.class::cast);
}
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -567,7 +567,7 @@ protected String expectedBooleanLiteral(boolean value) {
*/
@Override
protected String expectedBlobLiteral(String value) {
return String.format("E'\\x%s'", value);
return String.format("decode('%s','hex')", value);
}


Expand Down Expand Up @@ -1596,3 +1596,4 @@ protected String expectedPortableStatement() {
return "UPDATE testschema.Table SET field = TRANSLATE(field, '1', 'A')";
}
}