Skip to content

oracle table rename requires the "TO" not schema-qualified #670

@kipstakkr

Description

@kipstakkr

I am trying to use op.rename_table with old_table_name, new_table_name and schema, but it is creating an incorrect SQL statement.

For example,
For the method call, op.rename_table('table_a', 'table_b', schema='tables')

Expected SQL statement to be executed:-

ALTER TABLE tables.table_a RENAME TO table_b

Actual SQL statement it is executing currently:-

ALTER TABLE tables.table_a RENAME TO tables.table_b

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions