aboutsummaryrefslogtreecommitdiff
path: root/src/server/database/Database
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2016-08-10 00:05:56 +0200
committerShauren <shauren.trinity@gmail.com>2016-08-10 00:05:56 +0200
commitbd3541d106bbdb50ad53e38e6c7f2bc78dd6c1dc (patch)
treefe04d16d9ca7e5f8afa0e87926cf45aeb357ef16 /src/server/database/Database
parent51657e44d1430a93a4256a535af0a67660c95119 (diff)
Core/DataStores: Implemented all curve types from Curve.db2
Diffstat (limited to 'src/server/database/Database')
-rw-r--r--src/server/database/Database/Implementation/HotfixDatabase.cpp3
-rw-r--r--src/server/database/Database/Implementation/HotfixDatabase.h2
2 files changed, 5 insertions, 0 deletions
diff --git a/src/server/database/Database/Implementation/HotfixDatabase.cpp b/src/server/database/Database/Implementation/HotfixDatabase.cpp
index 71a874d7198..65d1b825570 100644
--- a/src/server/database/Database/Implementation/HotfixDatabase.cpp
+++ b/src/server/database/Database/Implementation/HotfixDatabase.cpp
@@ -183,6 +183,9 @@ void HotfixDatabaseConnection::DoPrepareStatements()
"CategoryID, SpellCategory, Quality, SpellWeight FROM currency_types ORDER BY ID DESC", CONNECTION_SYNCH);
PREPARE_LOCALE_STMT(HOTFIX_SEL_CURRENCY_TYPES, "SELECT ID, Name_lang, Description_lang FROM currency_types_locale WHERE locale = ?", CONNECTION_SYNCH);
+ // Curve.db2
+ PrepareStatement(HOTFIX_SEL_CURVE, "SELECT ID, Type, Unused FROM curve ORDER BY ID DESC", CONNECTION_SYNCH);
+
// CurvePoint.db2
PrepareStatement(HOTFIX_SEL_CURVE_POINT, "SELECT ID, X, Y, CurveID, `Index` FROM curve_point ORDER BY ID DESC", CONNECTION_SYNCH);
diff --git a/src/server/database/Database/Implementation/HotfixDatabase.h b/src/server/database/Database/Implementation/HotfixDatabase.h
index 66d9d65cb07..1b6fef8b5d0 100644
--- a/src/server/database/Database/Implementation/HotfixDatabase.h
+++ b/src/server/database/Database/Implementation/HotfixDatabase.h
@@ -114,6 +114,8 @@ enum HotfixDatabaseStatements
HOTFIX_SEL_CURRENCY_TYPES,
HOTFIX_SEL_CURRENCY_TYPES_LOCALE,
+ HOTFIX_SEL_CURVE,
+
HOTFIX_SEL_CURVE_POINT,
HOTFIX_SEL_DESTRUCTIBLE_MODEL_DATA,