mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-04-24 13:47:46 +00:00
Fixed MySQL Syntax issues
This commit is contained in:
parent
7c9077beec
commit
270d4ce436
1 changed files with 42 additions and 44 deletions
|
@ -1262,10 +1262,7 @@ namespace FFXIVClassic_Map_Server
|
|||
INSERT INTO supportdesk_tickets
|
||||
(id, title, body, langCode)
|
||||
VALUES
|
||||
(@id, @title, @body, @langCode)
|
||||
ON DUPLICATE KEY UPDATE
|
||||
questData = @questData, questFlags = @questFlags
|
||||
";
|
||||
(@id, @title, @body, @langCode)";
|
||||
|
||||
cmd = new MySqlCommand(query, conn);
|
||||
cmd.Parameters.AddWithValue("@id", gmTicket.ticketIssueIndex);
|
||||
|
@ -1300,7 +1297,7 @@ namespace FFXIVClassic_Map_Server
|
|||
SELECT
|
||||
id,
|
||||
label,
|
||||
sort,
|
||||
sort
|
||||
FROM supportdesk_faqs
|
||||
ORDER BY sort";
|
||||
|
||||
|
@ -1342,15 +1339,16 @@ namespace FFXIVClassic_Map_Server
|
|||
SELECT
|
||||
body
|
||||
FROM supportdesk_faqs
|
||||
WHERE id=" + id;
|
||||
WHERE id=@id";
|
||||
|
||||
MySqlCommand cmd = new MySqlCommand(query, conn);
|
||||
cmd.Parameters.AddWithValue("@id", id);
|
||||
|
||||
using (MySqlDataReader reader = cmd.ExecuteReader())
|
||||
{
|
||||
while (reader.Read())
|
||||
{
|
||||
body = reader.GetString(2);
|
||||
body = reader.GetString(0);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1380,7 +1378,7 @@ namespace FFXIVClassic_Map_Server
|
|||
SELECT
|
||||
id,
|
||||
title,
|
||||
sort,
|
||||
sort
|
||||
FROM supportdesk_issues
|
||||
ORDER BY sort";
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue