Skip to content

Commit bfdec1c

Browse files
committed
Fixed RAISERROR format
The `RAISERROR()` calls in `MoveTopic` used the incorrect `%n` token; they meant to use the `%d` token, which is used for numbers.
1 parent d2ea8d3 commit bfdec1c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ ELSE
9595
IF @TopicID IS NULL OR @OriginalLeft IS NULL OR @OriginalRight IS NULL
9696
BEGIN
9797
RAISERROR (
98-
N'The topic ("%n") could not be found.',
98+
N'The topic ("%d") could not be found.',
9999
15, -- Severity,
100100
1, -- State,
101101
@TopicID
@@ -107,7 +107,7 @@ IF @TopicID IS NULL OR @OriginalLeft IS NULL OR @OriginalRight IS NULL
107107
IF @ParentID IS NULL OR @InsertionPoint IS NULL
108108
BEGIN
109109
RAISERROR (
110-
N'The parent ("%n") could not be found.',
110+
N'The parent ("%d") could not be found.',
111111
15, -- Severity,
112112
1, -- State,
113113
@ParentID
@@ -119,7 +119,7 @@ IF @ParentID IS NULL OR @InsertionPoint IS NULL
119119
IF @InsertionPoint >= @OriginalLeft AND @InsertionPoint <= @OriginalRight
120120
BEGIN
121121
RAISERROR (
122-
N'A topic ("%n") cannot be moved within a child of itself ("%n").',
122+
N'A topic ("%d") cannot be moved within a child of itself ("%d").',
123123
10, -- Severity,
124124
1, -- State,
125125
@TopicID,

0 commit comments

Comments
 (0)