-
Notifications
You must be signed in to change notification settings - Fork 0
/
0018_fix_case_sensitivity_errors.sql.diff
166 lines (152 loc) · 5.68 KB
/
0018_fix_case_sensitivity_errors.sql.diff
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
diff --git a/src/procedure/CHECK_KNIGHTS.sql b/src/procedure/CHECK_KNIGHTS.sql
index 127d07e..0aa8e87 100644
--- a/src/procedure/CHECK_KNIGHTS.sql
+++ b/src/procedure/CHECK_KNIGHTS.sql
@@ -23,7 +23,7 @@ WHILE @@fetch_status = 0
IF @ROW = 1
BEGIN
BEGIN TRAN
- DELETE FROM KNIGHTS WHERE IDNum = @knightsindex
+ DELETE FROM KNIGHTS WHERE IDNum = @KnightsIndex
IF @@ERROR != 0
BEGIN
@@ -31,7 +31,7 @@ WHILE @@fetch_status = 0
END
ELSE
BEGIN
- UPDATE USERDATA SET Knights = 0, Fame = 0 WHERE Knights = @knightsindex
+ UPDATE USERDATA SET Knights = 0, Fame = 0 WHERE Knights = @KnightsIndex
DELETE FROM KNIGHTS_USER WHERE [sIDNum] = @KnightsIndex
END
COMMIT TRAN
diff --git a/src/procedure/DELETE_CHAR.sql b/src/procedure/DELETE_CHAR.sql
index 59b29c6..45b8554 100644
--- a/src/procedure/DELETE_CHAR.sql
+++ b/src/procedure/DELETE_CHAR.sql
@@ -67,15 +67,15 @@ DECLARE @bySkill binary(10), @byItem binary(400), @bySerial binary(400), @Member
BEGIN TRAN
IF @index = 0
- UPDATE ACCOUNT_CHAR SET strCHARID1 = NULL, bCharNum = bCharNum - 1 WHERE strAccountID = @AccountID
+ UPDATE ACCOUNT_CHAR SET strCharID1 = NULL, bCharNum = bCharNum - 1 WHERE strAccountID = @AccountID
IF @index = 1
- UPDATE ACCOUNT_CHAR SET strCHARID2 = NULL, bCharNum = bCharNum - 1 WHERE strAccountID = @AccountID
+ UPDATE ACCOUNT_CHAR SET strCharID2 = NULL, bCharNum = bCharNum - 1 WHERE strAccountID = @AccountID
IF @index = 2
- UPDATE ACCOUNT_CHAR SET strCHARID3 = NULL, bCharNum = bCharNum - 1 WHERE strAccountID = @AccountID
+ UPDATE ACCOUNT_CHAR SET strCharID3 = NULL, bCharNum = bCharNum - 1 WHERE strAccountID = @AccountID
IF @index = 3
- UPDATE ACCOUNT_CHAR SET strCHARID4 = NULL, bCharNum = bCharNum - 1 WHERE strAccountID = @AccountID
+ UPDATE ACCOUNT_CHAR SET strCharID4 = NULL, bCharNum = bCharNum - 1 WHERE strAccountID = @AccountID
IF @index = 4
- UPDATE ACCOUNT_CHAR SET strCHARID5 = NULL, bCharNum = bCharNum - 1 WHERE strAccountID = @AccountID
+ UPDATE ACCOUNT_CHAR SET strCharID5 = NULL, bCharNum = bCharNum - 1 WHERE strAccountID = @AccountID
IF @@ERROR != 0
BEGIN
@@ -85,11 +85,11 @@ IF @@ERROR != 0
END
SELECT
- @charid1 = strCHARID1,
- @charid2 = strCHARID2,
- @charid3 = strCHARID3,
- @charid4 = strCHARID4,
- @charid5 = strCHARID5
+ @charid1 = strCharID1,
+ @charid2 = strCharID2,
+ @charid3 = strCharID3,
+ @charid4 = strCharID4,
+ @charid5 = strCharID5
FROM ACCOUNT_CHAR
WHERE strAccountID = @AccountID
-- 캐릭터가 하나도 없으면 해당 레코드를 지운다.. -> 국가선택 다시 할수 있다
@@ -142,7 +142,7 @@ FROM USERDATA WHERE strUserId = @CharID
INSERT INTO DELETED_USERDATA (
strAccountID,
- strUserID,
+ strUserId,
Nation,
Race,
[Class],
@@ -223,7 +223,7 @@ IF @@ERROR != 0
RETURN
END
-DELETE FROM KNIGHTS_USER WHERE strUserId = @CharID
+DELETE FROM KNIGHTS_USER WHERE strUserID = @CharID
SELECT @Members = Members FROM KNIGHTS WHERE IDNum = @Knights
IF @Members <= 1
UPDATE KNIGHTS SET Members = 1 WHERE IDNum = @Knights
diff --git a/src/procedure/EDITER_KNIGHTS.sql b/src/procedure/EDITER_KNIGHTS.sql
index 95c6324..3946216 100644
--- a/src/procedure/EDITER_KNIGHTS.sql
+++ b/src/procedure/EDITER_KNIGHTS.sql
@@ -26,11 +26,11 @@ WHILE @@fetch_status = 0
SELECT @ROW = COUNT([strUserId]) FROM [USERDATA] WHERE Knights = @KnightsIndex
IF @ROW != 0
BEGIN
- UPDATE KNIGHTS SET [Members] = @Row WHERE IDNum = @KnightsIndex
+ UPDATE KNIGHTS SET [Members] = @ROW WHERE IDNum = @KnightsIndex
END
ELSE
BEGIN
- DELETE FROM KNIGHTS WHERE IDNum = @knightsindex
+ DELETE FROM KNIGHTS WHERE IDNum = @KnightsIndex
END
FETCH NEXT FROM job1
diff --git a/src/procedure/EXEC_KNIGHTS_USER.sql b/src/procedure/EXEC_KNIGHTS_USER.sql
index ba48468..36bd632 100644
--- a/src/procedure/EXEC_KNIGHTS_USER.sql
+++ b/src/procedure/EXEC_KNIGHTS_USER.sql
@@ -9,27 +9,27 @@ CREATE PROCEDURE [dbo].[EXEC_KNIGHTS_USER]
AS
SET NOCOUNT ON
-DECLARE @strUserID char(21)
+DECLARE @strUserId char(21)
DECLARE @KnightsIndex smallint
DECLARE job1 CURSOR FOR
SELECT
- strUserID,
+ strUserId,
Knights
FROM USERDATA
OPEN job1
FETCH NEXT FROM job1
-INTO @strUserID, @KnightsIndex
+INTO @strUserId, @KnightsIndex
WHILE @@fetch_status = 0
BEGIN
IF @KnightsIndex != 0
BEGIN
- INSERT INTO KNIGHTS_USER (sIDNum, strUserID) VALUES (@KnightsIndex, @strUserID)
+ INSERT INTO KNIGHTS_USER (sIDNum, strUserID) VALUES (@KnightsIndex, @strUserId)
END
FETCH NEXT FROM job1
- INTO @strUserID, @KnightsIndex
+ INTO @strUserId, @KnightsIndex
END
CLOSE job1
DEALLOCATE job1
diff --git a/src/procedure/LOAD_CHAR_INFO.sql b/src/procedure/LOAD_CHAR_INFO.sql
index 6e70027..5e4f795 100644
--- a/src/procedure/LOAD_CHAR_INFO.sql
+++ b/src/procedure/LOAD_CHAR_INFO.sql
@@ -22,7 +22,7 @@ IF @nRet = 0
Face,
Zone,
byItem
- FROM USERDATA WHERE strUserID = @CharId
+ FROM USERDATA WHERE strUserId = @CharId
SET @nRet = 1
RETURN
diff --git a/src/procedure/RANK_KNIGHTS.sql b/src/procedure/RANK_KNIGHTS.sql
index 019388f..67d1959 100644
--- a/src/procedure/RANK_KNIGHTS.sql
+++ b/src/procedure/RANK_KNIGHTS.sql
@@ -21,9 +21,9 @@ WHILE @@fetch_status = 0
BEGIN
SET @SumLoyalty = 0
- SELECT @SumLoyalty = SUM(Loyalty) FROM USERDATA WHERE Knights = @Knightsindex
+ SELECT @SumLoyalty = SUM(Loyalty) FROM USERDATA WHERE Knights = @KnightsIndex
IF @SumLoyalty != 0
- UPDATE KNIGHTS SET Points = @SumLoyalty WHERE IDNum = @knightsindex
+ UPDATE KNIGHTS SET Points = @SumLoyalty WHERE IDNum = @KnightsIndex
FETCH NEXT FROM job1
INTO @KnightsIndex