Skip to content

Commit

Permalink
Fix typo on property DatabasePattern.escapeTablePattern (#2507)
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaelbey authored Dec 13, 2023
1 parent 1d1858d commit fe672f3
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

package org.finos.legend.engine.plan.execution.stores.relational.connection.api.schema.model;

import com.fasterxml.jackson.annotation.JsonAlias;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;

Expand All @@ -28,23 +29,22 @@ public class DatabasePattern

private final boolean escapeSchemaPattern;

private final boolean escapteTablePattern;

private final boolean escapeTablePattern;

@JsonCreator
public DatabasePattern(
@JsonProperty("catalog") String catalog,
@JsonProperty("schemaPattern") String schemaPattern,
@JsonProperty("tablePattern") String tablePattern,
@JsonProperty("escapeSchemaPattern") boolean escapeSchemaPattern,
@JsonProperty("escapteTablePattern") boolean escapeTablePattern
@JsonProperty("escapeTablePattern") @JsonAlias("escapteTablePattern") boolean escapeTablePattern
)
{
this.catalog = catalog;
this.schemaPattern = schemaPattern;
this.tablePattern = tablePattern;
this.escapeSchemaPattern = escapeSchemaPattern;
this.escapteTablePattern = escapeTablePattern;
this.escapeTablePattern = escapeTablePattern;
}

public DatabasePattern(String schemaPattern, String tablePattern, boolean escapeSchemaPattern, boolean escapeTablePattern)
Expand Down Expand Up @@ -85,12 +85,12 @@ public boolean isEscapeSchemaPattern()

public boolean isEscapeTablePattern()
{
return escapteTablePattern;
return escapeTablePattern;
}

public DatabasePattern withNewCatalog(String catalog)
{
return new DatabasePattern(catalog, this.schemaPattern, this.tablePattern, this.escapeSchemaPattern, this.escapteTablePattern);
return new DatabasePattern(catalog, this.schemaPattern, this.tablePattern, this.escapeSchemaPattern, this.escapeTablePattern);
}

}

0 comments on commit fe672f3

Please sign in to comment.