Skip to content

Commit 252c4d6

Browse files
authored
Fix table name typo (#1204)
1 parent b9b0912 commit 252c4d6

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

test/cases/specific_schema_test_sqlserver.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ def quoted_id
171171

172172
it "returns the correct primary columns" do
173173
connection = ActiveRecord::Base.lease_connection
174-
assert_equal "field_1", connection.columns("test.sst_schema_test_mulitple_schema").detect(&:is_primary?).name
175-
assert_equal "field_2", connection.columns("test2.sst_schema_test_mulitple_schema").detect(&:is_primary?).name
174+
assert_equal "field_1", connection.columns("test.sst_schema_test_multiple_schema").detect(&:is_primary?).name
175+
assert_equal "field_2", connection.columns("test2.sst_schema_test_multiple_schema").detect(&:is_primary?).name
176176
end
177177
end

test/schema/sqlserver_specific_schema.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -304,17 +304,17 @@
304304
)
305305
NATURALPKTABLESQLINOTHERSCHEMA
306306

307-
execute "IF EXISTS(SELECT * FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_NAME = 'sst_schema_test_mulitple_schema' and TABLE_SCHEMA = 'test') DROP TABLE test.sst_schema_test_mulitple_schema"
307+
execute "IF EXISTS(SELECT * FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_NAME = 'sst_schema_test_multiple_schema' and TABLE_SCHEMA = 'test') DROP TABLE test.sst_schema_test_multiple_schema"
308308
execute <<-SCHEMATESTMULTIPLESCHEMA
309-
CREATE TABLE test.sst_schema_test_mulitple_schema(
309+
CREATE TABLE test.sst_schema_test_multiple_schema(
310310
field_1 int NOT NULL PRIMARY KEY,
311311
field_2 int,
312312
)
313313
SCHEMATESTMULTIPLESCHEMA
314314
execute "IF NOT EXISTS(SELECT * FROM sys.schemas WHERE name = 'test2') EXEC sp_executesql N'CREATE SCHEMA test2'"
315-
execute "IF EXISTS(SELECT * FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_NAME = 'sst_schema_test_mulitple_schema' and TABLE_SCHEMA = 'test2') DROP TABLE test2.sst_schema_test_mulitple_schema"
315+
execute "IF EXISTS(SELECT * FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_NAME = 'sst_schema_test_multiple_schema' and TABLE_SCHEMA = 'test2') DROP TABLE test2.sst_schema_test_multiple_schema"
316316
execute <<-SCHEMATESTMULTIPLESCHEMA
317-
CREATE TABLE test2.sst_schema_test_mulitple_schema(
317+
CREATE TABLE test2.sst_schema_test_multiple_schema(
318318
field_1 int,
319319
field_2 int NOT NULL PRIMARY KEY,
320320
)

0 commit comments

Comments
 (0)