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 9af7828 commit bd4bd3fCopy full SHA for bd4bd3f
activerecord/test/cases/base_test.rb
@@ -81,7 +81,13 @@ def test_column_names_are_escaped
81
}
82
83
quoted = conn.quote_column_name "foo#{badchar}bar"
84
- assert_equal("#{badchar}foo#{badchar * 2}bar#{badchar}", quoted)
+ if current_adapter?(:OracleAdapter)
85
+ # Oracle does not allow double quotes in table and column names at all
86
+ # therefore quoting removes them
87
+ assert_equal("#{badchar}foobar#{badchar}", quoted)
88
+ else
89
+ assert_equal("#{badchar}foo#{badchar * 2}bar#{badchar}", quoted)
90
+ end
91
end
92
93
def test_columns_should_obey_set_primary_key
0 commit comments