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

Fix ALTER TABLE .. RENAME TO .. for MySQL #586

Merged
merged 5 commits into from Apr 5, 2019

Conversation

findepi
Copy link
Member

@findepi findepi commented Apr 4, 2019

No description provided.

@cla-bot cla-bot bot added the cla-signed label Apr 4, 2019
@findepi
Copy link
Member Author

findepi commented Apr 4, 2019

cc @electrum

@findepi findepi merged commit b5225f0 into trinodb:master Apr 5, 2019
@findepi findepi deleted the findepi/rename-mysql branch April 5, 2019 07:12
@findepi findepi mentioned this pull request Apr 5, 2019
5 tasks
@findepi findepi added this to the 308 milestone Apr 5, 2019
@@ -243,6 +244,7 @@ public void renameTable(JdbcIdentity identity, JdbcTableHandle handle, SchemaTab
{
// MySQL doesn't support specifying the catalog name in a rename. By setting the
// catalogName parameter to null, it will be omitted in the ALTER TABLE statement.
renameTable(identity, null, handle.getSchemaName(), handle.getTableName(), newTableName);
verify(handle.getSchemaName() == null);
renameTable(identity, null, handle.getCatalogName(), handle.getTableName(), newTableName);
Copy link
Member

Choose a reason for hiding this comment

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

👁

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

None yet

3 participants