diff --git a/src/main/java/cz/startnet/utils/pgdiff/parsers/CreateRuleParser.java b/src/main/java/cz/startnet/utils/pgdiff/parsers/CreateRuleParser.java index 056b7f8f..7b0b5257 100644 --- a/src/main/java/cz/startnet/utils/pgdiff/parsers/CreateRuleParser.java +++ b/src/main/java/cz/startnet/utils/pgdiff/parsers/CreateRuleParser.java @@ -60,7 +60,7 @@ public static void parse(final PgDatabase database, rule.setQuery(query); - final String schemaName = ParserUtils.getSchemaName(ruleName, database); + final String schemaName = ParserUtils.getSchemaName(relationName, database); final PgSchema schema = database.getSchema(schemaName); if (schema == null) {