Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove schemaInfo property from TableInfo #2954

Merged
merged 1 commit into from
Nov 20, 2015
Merged

Conversation

mfussenegger
Copy link
Member

In most cases schemaInfo was only used to check if it is a systemSchema
which was redundant because in all cases there was already a
DocTableInfo instance available which indicates that it can't be a
systemSchema.

This also makes testing a bit easiser as the schemaInfo doesn't have to
be mocked (and in some cases we forgot to mock it's name which lead to
strange tests where the schemaName was just empty)

@@ -206,7 +204,7 @@ public void testBuildCreateTablePrimaryKey() throws Exception {
new ColumnIdent("pk_col_two")
);

DocTableInfo tableInfo = new TestDocTableInfo(MY_SCHEMA_INFO,
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is it possible to delete MY_SCHEMA_INFO?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yep, removed it

@memcmp
Copy link

memcmp commented Nov 20, 2015

otherwise ack

In most cases schemaInfo was only used to check if it is a systemSchema
which was redundant because in all cases there was already a
DocTableInfo instance available which indicates that it can't be a
systemSchema.

This also makes testing a bit easiser as the schemaInfo doesn't have to
be mocked (and in some cases we forgot to mock it's name which lead to
strange tests where the schemaName was just empty)
@mfussenegger mfussenegger merged commit 4ccc79f into master Nov 20, 2015
@mfussenegger mfussenegger deleted the j/no-schema-info branch November 20, 2015 12:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants