We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c5899db commit 9a61559Copy full SHA for 9a61559
src/main/java/software/amazon/documentdb/jdbc/metadata/DocumentDbSchema.java
@@ -133,7 +133,9 @@ public void setGetTableFunction(
133
@NonNull final Function<String, DocumentDbSchemaTable> getTableFunction,
134
@NonNull final Function<Set<String>, Map<String, DocumentDbSchemaTable>> getRemainingTablesFunction)
135
throws IllegalStateException {
136
- if (this.tables != null || this.tableReferences == null) {
+ if (this.tables != null) {
137
+ return;
138
+ } else if (this.tableReferences == null) {
139
throw new IllegalStateException(
140
SqlError.lookup(SqlError.INVALID_STATE_SET_TABLE_FUNCTION));
141
}
0 commit comments