summaryrefslogtreecommitdiff
path: root/tests/test_oracle.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_oracle.py')
-rw-r--r--tests/test_oracle.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/test_oracle.py b/tests/test_oracle.py
index 537d8c6..b2e704f 100644
--- a/tests/test_oracle.py
+++ b/tests/test_oracle.py
@@ -80,6 +80,16 @@ class OpTest(TestBase):
"INTEGER GENERATED ALWAYS AS (foo * 5)"
)
+ def test_alter_table_rename_oracle(self):
+ context = op_fixture("oracle")
+ op.rename_table("s", "t")
+ context.assert_("ALTER TABLE s RENAME TO t")
+
+ def test_alter_table_rename_schema_oracle(self):
+ context = op_fixture("oracle")
+ op.rename_table("s", "t", schema="myowner")
+ context.assert_("ALTER TABLE myowner.s RENAME TO t")
+
def test_alter_column_rename_oracle(self):
context = op_fixture("oracle")
op.alter_column("t", "c", name="x")