Skip to content

Commit a717517

Browse files
committed
Fixed casing of TopicId column names, which only varied by case
While SQL isn't case sensitive, it's a best practice to maintain case consistency in references.
1 parent 0b76083 commit a717517

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

OnTopic.Data.Sql.Database/Stored Procedures/UpdateRelationships.sql

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ INSERT
2222
INTO @Existing_TopicIDs (
2323
TopicId
2424
)
25-
SELECT Target_TopicID
25+
SELECT Target_TopicId
2626
FROM Relationships
27-
WHERE Source_TopicID = @TopicID
27+
WHERE Source_TopicId = @TopicID
2828
AND RelationshipKey = @RelationshipKey
2929

3030
--------------------------------------------------------------------------------------------------------------------------------
@@ -41,8 +41,8 @@ SELECT @TopicId,
4141
Target.TopicId
4242
FROM @RelatedTopics Target
4343
FULL JOIN @Existing_TopicIDs Existing
44-
ON Existing.TopicID = Target.TopicID
45-
WHERE Existing.TopicID is null
44+
ON Existing.TopicId = Target.TopicId
45+
WHERE Existing.TopicId is null
4646

4747
--------------------------------------------------------------------------------------------------------------------------------
4848
-- RETURN TOPIC ID

0 commit comments

Comments
 (0)