Skip to content
Browse files

Merge pull request #211 from Altonymous/master

There was a reference to db_name_with_period when it should have been just db_name
  • Loading branch information...
2 parents c5a3cc7 + 7b987c8 commit 4847ce75363254e9981879b3cbc4342d2b95d1f6 @metaskills metaskills committed
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/active_record/connection_adapters/sqlserver/schema_statements.rb
View
6 lib/active_record/connection_adapters/sqlserver/schema_statements.rb
@@ -185,15 +185,15 @@ def column_definitions(table_name)
AND KCU.CONSTRAINT_NAME = TC.CONSTRAINT_NAME
AND KCU.CONSTRAINT_CATALOG = TC.CONSTRAINT_CATALOG
AND KCU.CONSTRAINT_SCHEMA = TC.CONSTRAINT_SCHEMA
- INNER JOIN #{db_name_with_period}.sys.schemas AS s
+ INNER JOIN #{db_name}.sys.schemas AS s
ON s.name = columns.TABLE_SCHEMA
AND s.schema_id = s.schema_id
- INNER JOIN #{db_name_with_period}.sys.objects AS o
+ INNER JOIN #{db_name}.sys.objects AS o
ON s.schema_id = o.schema_id
AND o.is_ms_shipped = 0
AND o.type IN ('U', 'V')
AND o.name = columns.TABLE_NAME
- INNER JOIN #{db_name_with_period}.sys.columns AS c
+ INNER JOIN #{db_name}.sys.columns AS c
ON o.object_id = c.object_id
AND c.name = columns.COLUMN_NAME
WHERE columns.TABLE_NAME = @0

0 comments on commit 4847ce7

Please sign in to comment.
Something went wrong with that request. Please try again.