2014-11-11 13:14:36 +00:00
/*
2019-01-01 10:13:49 +01:00
* Copyright (C) 2008-2019 TrinityCore <https://www.trinitycore.org/>
2014-11-11 13:14:36 +00:00
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
* Free Software Foundation; either version 2 of the License, or (at your
* option) any later version.
*
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
* more details.
*
* You should have received a copy of the GNU General Public License along
* with this program. If not, see <http://www.gnu.org/licenses/>.
*/
2016-05-27 23:13:47 +02:00
// DO NOT EDIT!
// Autogenerated from DB2Structure.h
2016-05-02 18:52:15 +02:00
2014-11-11 13:14:36 +00:00
#include "HotfixDatabase.h"
2017-05-12 18:49:51 +02:00
#include "PreparedStatement.h"
2015-01-17 17:59:13 +01:00
// Force locale statments to appear exactly in locale declaration order, right after normal data fetch statement
2015-02-22 10:29:12 +01:00
#define PREPARE_LOCALE_STMT(stmtBase, sql, con) \
static_assert(stmtBase + 1 == stmtBase##_LOCALE, "Invalid prepared statement index for " #stmtBase "_LOCALE"); \
PrepareStatement(stmtBase##_LOCALE, sql, con);
2014-11-11 13:14:36 +00:00
void HotfixDatabaseConnection :: DoPrepareStatements ()
{
if ( ! m_reconnecting )
m_stmts . resize ( MAX_HOTFIXDATABASE_STATEMENTS );
2014-12-24 22:24:32 +01:00
2015-09-07 18:03:33 +02:00
// Achievement.db2
2018-09-25 21:08:38 +02:00
PrepareStatement ( HOTFIX_SEL_ACHIEVEMENT , "SELECT Description, Title, Reward, ID, InstanceID, Faction, Supercedes, Category, MinimumCriteria, "
2019-06-08 13:19:48 +02:00
"Points, Flags, UiOrder, IconFileID, RewardItemID, CriteriaTree, SharesCriteria FROM achievement ORDER BY ID DESC" , CONNECTION_SYNCH );
2018-09-25 21:08:38 +02:00
PREPARE_LOCALE_STMT ( HOTFIX_SEL_ACHIEVEMENT , "SELECT ID, Description_lang, Title_lang, Reward_lang FROM achievement_locale WHERE locale = ?" , CONNECTION_SYNCH );
2015-09-07 18:03:33 +02:00
2018-10-04 18:50:21 +02:00
// AnimationData.db2
2019-06-18 19:33:29 +02:00
PrepareStatement ( HOTFIX_SEL_ANIMATION_DATA , "SELECT ID, BehaviorID, BehaviorTier, Fallback, Flags1, Flags2 FROM animation_data ORDER BY ID DESC" , CONNECTION_SYNCH );
2018-10-04 18:50:21 +02:00
2016-01-24 15:56:10 +01:00
// AnimKit.db2
PrepareStatement ( HOTFIX_SEL_ANIM_KIT , "SELECT ID, OneShotDuration, OneShotStopAnimKitID, LowDefAnimKitID FROM anim_kit ORDER BY ID DESC" , CONNECTION_SYNCH );
2015-03-04 12:17:06 +01:00
// AreaGroupMember.db2
2018-02-18 16:32:03 +01:00
PrepareStatement ( HOTFIX_SEL_AREA_GROUP_MEMBER , "SELECT ID, AreaID, AreaGroupID FROM area_group_member ORDER BY ID DESC" , CONNECTION_SYNCH );
2015-03-04 12:17:06 +01:00
2016-02-06 17:53:37 +01:00
// AreaTable.db2
2018-09-25 21:08:38 +02:00
PrepareStatement ( HOTFIX_SEL_AREA_TABLE , "SELECT ID, ZoneName, AreaName, ContinentID, ParentAreaID, AreaBit, SoundProviderPref, "
"SoundProviderPrefUnderwater, AmbienceID, UwAmbience, ZoneMusic, UwZoneMusic, ExplorationLevel, IntroSound, UwIntroSound, FactionGroupMask, "
"AmbientMultiplier, MountFlags, PvpCombatWorldStateID, WildBattlePetLevelMin, WildBattlePetLevelMax, WindSettingsID, Flags1, Flags2, "
"LiquidTypeID1, LiquidTypeID2, LiquidTypeID3, LiquidTypeID4 FROM area_table ORDER BY ID DESC" , CONNECTION_SYNCH );
2016-02-06 17:53:37 +01:00
PREPARE_LOCALE_STMT ( HOTFIX_SEL_AREA_TABLE , "SELECT ID, AreaName_lang FROM area_table_locale WHERE locale = ?" , CONNECTION_SYNCH );
// AreaTrigger.db2
2018-09-25 21:08:38 +02:00
PrepareStatement ( HOTFIX_SEL_AREA_TRIGGER , "SELECT PosX, PosY, PosZ, ID, ContinentID, PhaseUseFlags, PhaseID, PhaseGroupID, Radius, BoxLength, "
"BoxWidth, BoxHeight, BoxYaw, ShapeType, ShapeID, AreaTriggerActionSetID, Flags FROM area_trigger ORDER BY ID DESC" , CONNECTION_SYNCH );
2016-02-06 17:53:37 +01:00
2016-01-24 15:56:10 +01:00
// ArmorLocation.db2
2018-03-12 18:20:26 +01:00
PrepareStatement ( HOTFIX_SEL_ARMOR_LOCATION , "SELECT ID, Clothmodifier, Leathermodifier, Chainmodifier, Platemodifier, Modifier FROM armor_location"
" ORDER BY ID DESC" , CONNECTION_SYNCH );
2016-01-24 15:56:10 +01:00
2016-08-15 00:03:38 +02:00
// Artifact.db2
2018-09-25 21:08:38 +02:00
PrepareStatement ( HOTFIX_SEL_ARTIFACT , "SELECT Name, ID, UiTextureKitID, UiNameColor, UiBarOverlayColor, UiBarBackgroundColor, "
"ChrSpecializationID, Flags, ArtifactCategoryID, UiModelSceneID, SpellVisualKitID FROM artifact ORDER BY ID DESC" , CONNECTION_SYNCH );
2016-08-15 00:03:38 +02:00
PREPARE_LOCALE_STMT ( HOTFIX_SEL_ARTIFACT , "SELECT ID, Name_lang FROM artifact_locale WHERE locale = ?" , CONNECTION_SYNCH );
// ArtifactAppearance.db2
2018-09-25 21:08:38 +02:00
PrepareStatement ( HOTFIX_SEL_ARTIFACT_APPEARANCE , "SELECT Name, ID, ArtifactAppearanceSetID, DisplayIndex, UnlockPlayerConditionID, "
"ItemAppearanceModifierID, UiSwatchColor, UiModelSaturation, UiModelOpacity, OverrideShapeshiftFormID, OverrideShapeshiftDisplayID, "
2019-06-08 13:19:48 +02:00
"UiItemAppearanceID, UiAltItemAppearanceID, Flags, UiCameraID, UsablePlayerConditionID FROM artifact_appearance ORDER BY ID DESC" , CONNECTION_SYNCH );
2016-08-15 00:03:38 +02:00
PREPARE_LOCALE_STMT ( HOTFIX_SEL_ARTIFACT_APPEARANCE , "SELECT ID, Name_lang FROM artifact_appearance_locale WHERE locale = ?" , CONNECTION_SYNCH );
// ArtifactAppearanceSet.db2
2018-09-25 21:08:38 +02:00
PrepareStatement ( HOTFIX_SEL_ARTIFACT_APPEARANCE_SET , "SELECT Name, Description, ID, DisplayIndex, UiCameraID, AltHandUICameraID, "
"ForgeAttachmentOverride, Flags, ArtifactID FROM artifact_appearance_set ORDER BY ID DESC" , CONNECTION_SYNCH );
2018-03-12 18:20:26 +01:00
PREPARE_LOCALE_STMT ( HOTFIX_SEL_ARTIFACT_APPEARANCE_SET , "SELECT ID, Name_lang, Description_lang FROM artifact_appearance_set_locale"
" WHERE locale = ?" , CONNECTION_SYNCH );
2016-08-15 00:03:38 +02:00
// ArtifactCategory.db2
2018-03-12 18:20:26 +01:00
PrepareStatement ( HOTFIX_SEL_ARTIFACT_CATEGORY , "SELECT ID, XpMultCurrencyID, XpMultCurveID FROM artifact_category ORDER BY ID DESC" , CONNECTION_SYNCH );
2016-08-15 00:03:38 +02:00
// ArtifactPower.db2
2018-09-25 21:08:38 +02:00
PrepareStatement ( HOTFIX_SEL_ARTIFACT_POWER , "SELECT DisplayPosX, DisplayPosY, ID, ArtifactID, MaxPurchasableRank, Label, Flags, Tier"
" FROM artifact_power ORDER BY ID DESC" , CONNECTION_SYNCH );
2016-08-15 00:03:38 +02:00
// ArtifactPowerLink.db2
2018-03-12 18:20:26 +01:00
PrepareStatement ( HOTFIX_SEL_ARTIFACT_POWER_LINK , "SELECT ID, PowerA, PowerB FROM artifact_power_link ORDER BY ID DESC" , CONNECTION_SYNCH );
2016-08-15 00:03:38 +02:00
2017-05-07 16:47:49 +02:00
// ArtifactPowerPicker.db2
PrepareStatement ( HOTFIX_SEL_ARTIFACT_POWER_PICKER , "SELECT ID, PlayerConditionID FROM artifact_power_picker ORDER BY ID DESC" , CONNECTION_SYNCH );
2016-08-15 00:03:38 +02:00
// ArtifactPowerRank.db2
2018-09-25 21:08:38 +02:00
PrepareStatement ( HOTFIX_SEL_ARTIFACT_POWER_RANK , "SELECT ID, RankIndex, SpellID, ItemBonusListID, AuraPointsOverride, ArtifactPowerID"
2018-03-12 18:20:26 +01:00
" FROM artifact_power_rank ORDER BY ID DESC" , CONNECTION_SYNCH );
2016-08-15 00:03:38 +02:00
// ArtifactQuestXp.db2
2018-03-12 18:20:26 +01:00
PrepareStatement ( HOTFIX_SEL_ARTIFACT_QUEST_XP , "SELECT ID, Difficulty1, Difficulty2, Difficulty3, Difficulty4, Difficulty5, Difficulty6, "
"Difficulty7, Difficulty8, Difficulty9, Difficulty10 FROM artifact_quest_xp ORDER BY ID DESC" , CONNECTION_SYNCH );
2016-08-15 00:03:38 +02:00
2018-07-31 23:31:44 +02:00
// ArtifactTier.db2
PrepareStatement ( HOTFIX_SEL_ARTIFACT_TIER , "SELECT ID, ArtifactTier, MaxNumTraits, MaxArtifactKnowledge, KnowledgePlayerCondition, "
"MinimumEmpowerKnowledge FROM artifact_tier ORDER BY ID DESC" , CONNECTION_SYNCH );
// ArtifactUnlock.db2
2018-09-25 21:08:38 +02:00
PrepareStatement ( HOTFIX_SEL_ARTIFACT_UNLOCK , "SELECT ID, PowerID, PowerRank, ItemBonusListID, PlayerConditionID, ArtifactID FROM artifact_unlock"
2018-07-31 23:31:44 +02:00
" ORDER BY ID DESC" , CONNECTION_SYNCH );
2015-07-07 12:13:14 +02:00
// AuctionHouse.db2
2016-01-24 15:56:10 +01:00
PrepareStatement ( HOTFIX_SEL_AUCTION_HOUSE , "SELECT ID, Name, FactionID, DepositRate, ConsignmentRate FROM auction_house ORDER BY ID DESC" , CONNECTION_SYNCH );
2015-07-07 12:13:14 +02:00
PREPARE_LOCALE_STMT ( HOTFIX_SEL_AUCTION_HOUSE , "SELECT ID, Name_lang FROM auction_house_locale WHERE locale = ?" , CONNECTION_SYNCH );
2016-01-24 15:56:10 +01:00
// BankBagSlotPrices.db2
PrepareStatement ( HOTFIX_SEL_BANK_BAG_SLOT_PRICES , "SELECT ID, Cost FROM bank_bag_slot_prices ORDER BY ID DESC" , CONNECTION_SYNCH );
2016-04-25 22:03:34 +02:00
// BannedAddons.db2
PrepareStatement ( HOTFIX_SEL_BANNED_ADDONS , "SELECT ID, Name, Version, Flags FROM banned_addons ORDER BY ID DESC" , CONNECTION_SYNCH );
2015-07-07 12:13:14 +02:00
// BarberShopStyle.db2
2018-09-25 21:08:38 +02:00
PrepareStatement ( HOTFIX_SEL_BARBER_SHOP_STYLE , "SELECT DisplayName, Description, ID, Type, CostModifier, Race, Sex, Data FROM barber_shop_style"
2015-07-07 12:13:14 +02:00
" ORDER BY ID DESC" , CONNECTION_SYNCH );
PREPARE_LOCALE_STMT ( HOTFIX_SEL_BARBER_SHOP_STYLE , "SELECT ID, DisplayName_lang, Description_lang FROM barber_shop_style_locale WHERE locale = ?" , CONNECTION_SYNCH );
2015-09-09 14:52:32 +02:00
// BattlePetBreedQuality.db2
2018-03-12 18:20:26 +01:00
PrepareStatement ( HOTFIX_SEL_BATTLE_PET_BREED_QUALITY , "SELECT ID, StateMultiplier, QualityEnum FROM battle_pet_breed_quality ORDER BY ID DESC" , CONNECTION_SYNCH );
2015-09-09 14:52:32 +02:00
// BattlePetBreedState.db2
2018-09-25 21:08:38 +02:00
PrepareStatement ( HOTFIX_SEL_BATTLE_PET_BREED_STATE , "SELECT ID, BattlePetStateID, Value, BattlePetBreedID FROM battle_pet_breed_state"
2018-03-12 18:20:26 +01:00
" ORDER BY ID DESC" , CONNECTION_SYNCH );
2015-09-09 14:52:32 +02:00
// BattlePetSpecies.db2
2018-09-25 21:08:38 +02:00
PrepareStatement ( HOTFIX_SEL_BATTLE_PET_SPECIES , "SELECT Description, SourceText, ID, CreatureID, SummonSpellID, IconFileDataID, PetTypeEnum, "
"Flags, SourceTypeEnum, CardUIModelSceneID, LoadoutUIModelSceneID FROM battle_pet_species ORDER BY ID DESC" , CONNECTION_SYNCH );
PREPARE_LOCALE_STMT ( HOTFIX_SEL_BATTLE_PET_SPECIES , "SELECT ID, Description_lang, SourceText_lang FROM battle_pet_species_locale WHERE locale = ?" , CONNECTION_SYNCH );
2015-09-09 14:52:32 +02:00
// BattlePetSpeciesState.db2
2018-09-25 21:08:38 +02:00
PrepareStatement ( HOTFIX_SEL_BATTLE_PET_SPECIES_STATE , "SELECT ID, BattlePetStateID, Value, BattlePetSpeciesID FROM battle_pet_species_state"
2018-03-12 18:20:26 +01:00
" ORDER BY ID DESC" , CONNECTION_SYNCH );
2015-09-09 14:52:32 +02:00
2016-04-25 22:03:34 +02:00
// BattlemasterList.db2
2018-09-25 21:08:38 +02:00
PrepareStatement ( HOTFIX_SEL_BATTLEMASTER_LIST , "SELECT ID, Name, GameType, ShortDescription, LongDescription, InstanceType, MinLevel, MaxLevel, "
"RatedPlayers, MinPlayers, MaxPlayers, GroupsAllowed, MaxGroupSize, HolidayWorldState, Flags, IconFileDataID, RequiredPlayerConditionID, "
"MapID1, MapID2, MapID3, MapID4, MapID5, MapID6, MapID7, MapID8, MapID9, MapID10, MapID11, MapID12, MapID13, MapID14, MapID15, MapID16"
2017-04-06 23:39:34 +02:00
" FROM battlemaster_list ORDER BY ID DESC" , CONNECTION_SYNCH );
PREPARE_LOCALE_STMT ( HOTFIX_SEL_BATTLEMASTER_LIST , "SELECT ID, Name_lang, GameType_lang, ShortDescription_lang, LongDescription_lang"
" FROM battlemaster_list_locale WHERE locale = ?" , CONNECTION_SYNCH );
2016-04-25 22:03:34 +02:00
2015-01-17 17:59:13 +01:00
// BroadcastText.db2
2018-09-25 21:08:38 +02:00
PrepareStatement ( HOTFIX_SEL_BROADCAST_TEXT , "SELECT Text, Text1, ID, LanguageID, ConditionID, EmotesID, Flags, ChatBubbleDurationMs, "
"SoundEntriesID1, SoundEntriesID2, EmoteID1, EmoteID2, EmoteID3, EmoteDelay1, EmoteDelay2, EmoteDelay3 FROM broadcast_text ORDER BY ID DESC" , CONNECTION_SYNCH );
2018-03-12 18:20:26 +01:00
PREPARE_LOCALE_STMT ( HOTFIX_SEL_BROADCAST_TEXT , "SELECT ID, Text_lang, Text1_lang FROM broadcast_text_locale WHERE locale = ?" , CONNECTION_SYNCH );
2015-01-17 17:59:13 +01:00
2018-05-13 20:43:44 +02:00
// CfgRegions.db2
2019-07-14 15:21:32 +02:00
PrepareStatement ( HOTFIX_SEL_CFG_REGIONS , "SELECT ID, Tag, RegionID, Raidorigin, RegionGroupMask, ChallengeOrigin FROM cfg_regions ORDER BY ID DESC" , CONNECTION_SYNCH );
2018-05-13 20:43:44 +02:00
2017-08-23 20:50:41 +02:00
// CharacterFacialHairStyles.db2
PrepareStatement ( HOTFIX_SEL_CHARACTER_FACIAL_HAIR_STYLES , "SELECT ID, Geoset1, Geoset2, Geoset3, Geoset4, Geoset5, RaceID, SexID, VariationID"
" FROM character_facial_hair_styles ORDER BY ID DESC" , CONNECTION_SYNCH );
// CharBaseSection.db2
2018-09-25 21:08:38 +02:00
PrepareStatement ( HOTFIX_SEL_CHAR_BASE_SECTION , "SELECT ID, LayoutResType, VariationEnum, ResolutionVariationEnum FROM char_base_section"
2018-03-12 18:20:26 +01:00
" ORDER BY ID DESC" , CONNECTION_SYNCH );
2017-08-23 20:50:41 +02:00
2016-04-25 22:03:34 +02:00
// CharSections.db2
2018-09-25 21:08:38 +02:00
PrepareStatement ( HOTFIX_SEL_CHAR_SECTIONS , "SELECT ID, RaceID, SexID, BaseSection, VariationIndex, ColorIndex, Flags, MaterialResourcesID1, "
"MaterialResourcesID2, MaterialResourcesID3 FROM char_sections ORDER BY ID DESC" , CONNECTION_SYNCH );
2016-04-25 22:03:34 +02:00
2015-07-07 12:13:14 +02:00
// CharStartOutfit.db2
2018-09-25 21:08:38 +02:00
PrepareStatement ( HOTFIX_SEL_CHAR_START_OUTFIT , "SELECT ID, ClassID, SexID, OutfitID, PetDisplayID, PetFamilyID, ItemID1, ItemID2, ItemID3, "
"ItemID4, ItemID5, ItemID6, ItemID7, ItemID8, ItemID9, ItemID10, ItemID11, ItemID12, ItemID13, ItemID14, ItemID15, ItemID16, ItemID17, "
"ItemID18, ItemID19, ItemID20, ItemID21, ItemID22, ItemID23, ItemID24, RaceID FROM char_start_outfit ORDER BY ID DESC" , CONNECTION_SYNCH );
2015-07-07 12:13:14 +02:00
2016-02-06 17:53:37 +01:00
// CharTitles.db2
2018-03-12 18:20:26 +01:00
PrepareStatement ( HOTFIX_SEL_CHAR_TITLES , "SELECT ID, Name, Name1, MaskID, Flags FROM char_titles ORDER BY ID DESC" , CONNECTION_SYNCH );
PREPARE_LOCALE_STMT ( HOTFIX_SEL_CHAR_TITLES , "SELECT ID, Name_lang, Name1_lang FROM char_titles_locale WHERE locale = ?" , CONNECTION_SYNCH );
2016-02-06 17:53:37 +01:00
2016-01-31 19:25:51 +01:00
// ChatChannels.db2
2018-02-18 16:32:03 +01:00
PrepareStatement ( HOTFIX_SEL_CHAT_CHANNELS , "SELECT ID, Name, Shortcut, Flags, FactionGroup FROM chat_channels ORDER BY ID DESC" , CONNECTION_SYNCH );
2016-01-31 19:25:51 +01:00
PREPARE_LOCALE_STMT ( HOTFIX_SEL_CHAT_CHANNELS , "SELECT ID, Name_lang, Shortcut_lang FROM chat_channels_locale WHERE locale = ?" , CONNECTION_SYNCH );
2016-04-25 22:03:34 +02:00
// ChrClasses.db2
2018-09-25 21:08:38 +02:00
PrepareStatement ( HOTFIX_SEL_CHR_CLASSES , "SELECT Name, Filename, NameMale, NameFemale, PetNameToken, ID, CreateScreenFileDataID, "
2019-06-08 13:19:48 +02:00
"SelectScreenFileDataID, IconFileDataID, LowResScreenFileDataID, StartingLevel, SpellTextureBlobFileDataID, Flags, CinematicSequenceID, "
"DefaultSpec, PrimaryStatPriority, DisplayPower, RangedAttackPowerPerAgility, AttackPowerPerAgility, AttackPowerPerStrength, SpellClassSet"
" FROM chr_classes ORDER BY ID DESC" , CONNECTION_SYNCH );
2018-09-25 21:08:38 +02:00
PREPARE_LOCALE_STMT ( HOTFIX_SEL_CHR_CLASSES , "SELECT ID, Name_lang, NameMale_lang, NameFemale_lang FROM chr_classes_locale WHERE locale = ?" , CONNECTION_SYNCH );
2016-04-25 22:03:34 +02:00
2015-07-07 12:13:14 +02:00
// ChrClassesXPowerTypes.db2
2018-02-18 16:32:03 +01:00
PrepareStatement ( HOTFIX_SEL_CHR_CLASSES_X_POWER_TYPES , "SELECT ID, PowerType, ClassID FROM chr_classes_x_power_types ORDER BY ID DESC" , CONNECTION_SYNCH );
2015-07-07 12:13:14 +02:00
2016-01-24 15:56:10 +01:00
// ChrRaces.db2
2018-09-25 21:08:38 +02:00
PrepareStatement ( HOTFIX_SEL_CHR_RACES , "SELECT ClientPrefix, ClientFileString, Name, NameFemale, NameLowercase, NameFemaleLowercase, ID, Flags, "
"MaleDisplayId, FemaleDisplayId, HighResMaleDisplayId, HighResFemaleDisplayId, CreateScreenFileDataID, SelectScreenFileDataID, "
"MaleCustomizeOffset1, MaleCustomizeOffset2, MaleCustomizeOffset3, FemaleCustomizeOffset1, FemaleCustomizeOffset2, FemaleCustomizeOffset3, "
"LowResScreenFileDataID, AlteredFormStartVisualKitID1, AlteredFormStartVisualKitID2, AlteredFormStartVisualKitID3, "
"AlteredFormFinishVisualKitID1, AlteredFormFinishVisualKitID2, AlteredFormFinishVisualKitID3, HeritageArmorAchievementID, StartingLevel, "
"UiDisplayOrder, FemaleSkeletonFileDataID, MaleSkeletonFileDataID, HelmVisFallbackRaceID, FactionID, CinematicSequenceID, ResSicknessSpellID, "
"SplashSoundID, BaseLanguage, CreatureType, Alliance, RaceRelated, UnalteredVisualRaceID, CharComponentTextureLayoutID, "
"CharComponentTexLayoutHiResID, DefaultClassID, NeutralRaceID, MaleModelFallbackRaceID, MaleModelFallbackSex, FemaleModelFallbackRaceID, "
"FemaleModelFallbackSex, MaleTextureFallbackRaceID, MaleTextureFallbackSex, FemaleTextureFallbackRaceID, FemaleTextureFallbackSex"
" FROM chr_races ORDER BY ID DESC" , CONNECTION_SYNCH );
2018-03-12 18:20:26 +01:00
PREPARE_LOCALE_STMT ( HOTFIX_SEL_CHR_RACES , "SELECT ID, Name_lang, NameFemale_lang, NameLowercase_lang, NameFemaleLowercase_lang"
2018-02-18 16:32:03 +01:00
" FROM chr_races_locale WHERE locale = ?" , CONNECTION_SYNCH );
2016-01-24 15:56:10 +01:00
2016-01-31 19:25:51 +01:00
// ChrSpecialization.db2
2018-09-25 21:08:38 +02:00
PrepareStatement ( HOTFIX_SEL_CHR_SPECIALIZATION , "SELECT Name, FemaleName, Description, ID, ClassID, OrderIndex, PetTalentType, Role, Flags, "
"SpellIconFileID, PrimaryStatPriority, AnimReplacements, MasterySpellID1, MasterySpellID2 FROM chr_specialization ORDER BY ID DESC" , CONNECTION_SYNCH );
2018-03-12 18:20:26 +01:00
PREPARE_LOCALE_STMT ( HOTFIX_SEL_CHR_SPECIALIZATION , "SELECT ID, Name_lang, FemaleName_lang, Description_lang FROM chr_specialization_locale"
2016-01-31 19:25:51 +01:00
" WHERE locale = ?" , CONNECTION_SYNCH );
2016-04-27 16:53:18 +02:00
// CinematicCamera.db2
2018-09-25 21:08:38 +02:00
PrepareStatement ( HOTFIX_SEL_CINEMATIC_CAMERA , "SELECT ID, OriginX, OriginY, OriginZ, SoundID, OriginFacing, FileDataID FROM cinematic_camera"
2016-04-27 16:53:18 +02:00
" ORDER BY ID DESC" , CONNECTION_SYNCH );
2015-07-07 12:13:14 +02:00
// CinematicSequences.db2
PrepareStatement ( HOTFIX_SEL_CINEMATIC_SEQUENCES , "SELECT ID, SoundID, Camera1, Camera2, Camera3, Camera4, Camera5, Camera6, Camera7, Camera8"
" FROM cinematic_sequences ORDER BY ID DESC" , CONNECTION_SYNCH );
2018-09-25 21:08:38 +02:00
// ContentTuning.db2
2019-07-14 15:21:32 +02:00
PrepareStatement ( HOTFIX_SEL_CONTENT_TUNING , "SELECT ID, MinLevel, MaxLevel, Flags, ExpansionID FROM content_tuning ORDER BY ID DESC" , CONNECTION_SYNCH );
// ContentTuningXExpected.db2
PrepareStatement ( HOTFIX_SEL_CONTENT_TUNING_X_EXPECTED , "SELECT ID, ExpectedStatModID, ContentTuningID FROM content_tuning_x_expected"
2018-09-25 21:08:38 +02:00
" ORDER BY ID DESC" , CONNECTION_SYNCH );
2017-05-14 11:40:55 +02:00
// ConversationLine.db2
2018-03-12 18:20:26 +01:00
PrepareStatement ( HOTFIX_SEL_CONVERSATION_LINE , "SELECT ID, BroadcastTextID, SpellVisualKitID, AdditionalDuration, NextConversationLineID, "
"AnimKitID, SpeechType, StartAnimation, EndAnimation FROM conversation_line ORDER BY ID DESC" , CONNECTION_SYNCH );
2017-05-14 11:40:55 +02:00
2015-07-07 12:13:14 +02:00
// CreatureDisplayInfo.db2
2018-09-25 21:08:38 +02:00
PrepareStatement ( HOTFIX_SEL_CREATURE_DISPLAY_INFO , "SELECT ID, ModelID, SoundID, SizeClass, CreatureModelScale, CreatureModelAlpha, BloodID, "
"ExtendedDisplayInfoID, NPCSoundID, ParticleColorID, PortraitCreatureDisplayInfoID, PortraitTextureFileDataID, ObjectEffectPackageID, "
"AnimReplacementSetID, Flags, StateSpellVisualKitID, PlayerOverrideScale, PetInstanceScale, UnarmedWeaponType, MountPoofSpellVisualKitID, "
"DissolveEffectID, Gender, DissolveOutEffectID, CreatureModelMinLod, TextureVariationFileDataID1, TextureVariationFileDataID2, "
"TextureVariationFileDataID3 FROM creature_display_info ORDER BY ID DESC" , CONNECTION_SYNCH );
2016-01-24 15:56:10 +01:00
// CreatureDisplayInfoExtra.db2
2018-09-25 21:08:38 +02:00
PrepareStatement ( HOTFIX_SEL_CREATURE_DISPLAY_INFO_EXTRA , "SELECT ID, DisplayRaceID, DisplaySexID, DisplayClassID, SkinID, FaceID, HairStyleID, "
"HairColorID, FacialHairID, Flags, BakeMaterialResourcesID, HDBakeMaterialResourcesID, CustomDisplayOption1, CustomDisplayOption2, "
"CustomDisplayOption3 FROM creature_display_info_extra ORDER BY ID DESC" , CONNECTION_SYNCH );
2015-07-07 12:13:14 +02:00
2016-02-06 17:53:37 +01:00
// CreatureFamily.db2
2018-09-25 21:08:38 +02:00
PrepareStatement ( HOTFIX_SEL_CREATURE_FAMILY , "SELECT ID, Name, MinScale, MinScaleLevel, MaxScale, MaxScaleLevel, PetFoodMask, PetTalentType, "
"IconFileID, SkillLine1, SkillLine2 FROM creature_family ORDER BY ID DESC" , CONNECTION_SYNCH );
2016-02-06 17:53:37 +01:00
PREPARE_LOCALE_STMT ( HOTFIX_SEL_CREATURE_FAMILY , "SELECT ID, Name_lang FROM creature_family_locale WHERE locale = ?" , CONNECTION_SYNCH );
2016-04-25 22:03:34 +02:00
// CreatureModelData.db2
2018-09-25 21:08:38 +02:00
PrepareStatement ( HOTFIX_SEL_CREATURE_MODEL_DATA , "SELECT ID, GeoBox1, GeoBox2, GeoBox3, GeoBox4, GeoBox5, GeoBox6, Flags, FileDataID, BloodID, "
"FootprintTextureID, FootprintTextureLength, FootprintTextureWidth, FootprintParticleScale, FoleyMaterialID, FootstepCameraEffectID, "
"DeathThudCameraEffectID, SoundID, SizeClass, CollisionWidth, CollisionHeight, WorldEffectScale, CreatureGeosetDataID, HoverHeight, "
"AttachedEffectScale, ModelScale, MissileCollisionRadius, MissileCollisionPush, MissileCollisionRaise, MountHeight, OverrideLootEffectScale, "
2019-07-14 15:21:32 +02:00
"OverrideNameScale, OverrideSelectionRadius, TamedPetBaseScale, Unknown820_1, Unknown820_2, Unknown820_31, Unknown820_32"
" FROM creature_model_data ORDER BY ID DESC" , CONNECTION_SYNCH );
2016-04-25 22:03:34 +02:00
2015-07-07 12:13:14 +02:00
// CreatureType.db2
PrepareStatement ( HOTFIX_SEL_CREATURE_TYPE , "SELECT ID, Name, Flags FROM creature_type ORDER BY ID DESC" , CONNECTION_SYNCH );
PREPARE_LOCALE_STMT ( HOTFIX_SEL_CREATURE_TYPE , "SELECT ID, Name_lang FROM creature_type_locale WHERE locale = ?" , CONNECTION_SYNCH );
2015-09-07 18:03:33 +02:00
// Criteria.db2
2018-09-25 21:08:38 +02:00
PrepareStatement ( HOTFIX_SEL_CRITERIA , "SELECT ID, Type, Asset, ModifierTreeId, StartEvent, StartAsset, StartTimer, FailEvent, FailAsset, Flags, "
"EligibilityWorldStateID, EligibilityWorldStateValue FROM criteria ORDER BY ID DESC" , CONNECTION_SYNCH );
2015-09-07 18:03:33 +02:00
// CriteriaTree.db2
2018-09-25 21:08:38 +02:00
PrepareStatement ( HOTFIX_SEL_CRITERIA_TREE , "SELECT ID, Description, Parent, Amount, Operator, CriteriaID, OrderIndex, Flags FROM criteria_tree"
2015-09-07 18:03:33 +02:00
" ORDER BY ID DESC" , CONNECTION_SYNCH );
PREPARE_LOCALE_STMT ( HOTFIX_SEL_CRITERIA_TREE , "SELECT ID, Description_lang FROM criteria_tree_locale WHERE locale = ?" , CONNECTION_SYNCH );
2015-03-04 12:17:06 +01:00
// CurrencyTypes.db2
2018-09-25 21:08:38 +02:00
PrepareStatement ( HOTFIX_SEL_CURRENCY_TYPES , "SELECT ID, Name, Description, CategoryID, InventoryIconFileID, SpellWeight, SpellCategory, MaxQty, "
2019-06-08 13:19:48 +02:00
"MaxEarnablePerWeek, Flags, Quality, FactionID, ItemGroupSoundsID FROM currency_types ORDER BY ID DESC" , CONNECTION_SYNCH );
2016-01-24 15:56:10 +01:00
PREPARE_LOCALE_STMT ( HOTFIX_SEL_CURRENCY_TYPES , "SELECT ID, Name_lang, Description_lang FROM currency_types_locale WHERE locale = ?" , CONNECTION_SYNCH );
2015-03-04 12:17:06 +01:00
2016-08-10 00:05:56 +02:00
// Curve.db2
2018-03-12 18:20:26 +01:00
PrepareStatement ( HOTFIX_SEL_CURVE , "SELECT ID, Type, Flags FROM curve ORDER BY ID DESC" , CONNECTION_SYNCH );
2016-08-10 00:05:56 +02:00
2015-02-22 10:29:12 +01:00
// CurvePoint.db2
2018-03-12 18:20:26 +01:00
PrepareStatement ( HOTFIX_SEL_CURVE_POINT , "SELECT ID, PosX, PosY, CurveID, OrderIndex FROM curve_point ORDER BY ID DESC" , CONNECTION_SYNCH );
2015-01-17 17:59:13 +01:00
2015-07-07 12:13:14 +02:00
// DestructibleModelData.db2
2018-09-25 21:08:38 +02:00
PrepareStatement ( HOTFIX_SEL_DESTRUCTIBLE_MODEL_DATA , "SELECT ID, State0ImpactEffectDoodadSet, State0AmbientDoodadSet, State1Wmo, "
"State1DestructionDoodadSet, State1ImpactEffectDoodadSet, State1AmbientDoodadSet, State2Wmo, State2DestructionDoodadSet, "
"State2ImpactEffectDoodadSet, State2AmbientDoodadSet, State3Wmo, State3InitDoodadSet, State3AmbientDoodadSet, EjectDirection, DoNotHighlight, "
"State0Wmo, HealEffect, HealEffectSpeed, State0NameSet, State1NameSet, State2NameSet, State3NameSet FROM destructible_model_data"
2018-03-12 18:20:26 +01:00
" ORDER BY ID DESC" , CONNECTION_SYNCH );
2016-01-24 15:56:10 +01:00
2016-02-06 17:53:37 +01:00
// Difficulty.db2
2018-09-25 21:08:38 +02:00
PrepareStatement ( HOTFIX_SEL_DIFFICULTY , "SELECT ID, Name, InstanceType, OrderIndex, OldEnumValue, FallbackDifficultyID, MinPlayers, MaxPlayers, "
"Flags, ItemContext, ToggleDifficultyID, GroupSizeHealthCurveID, GroupSizeDmgCurveID, GroupSizeSpellPointsCurveID FROM difficulty"
2018-03-12 18:20:26 +01:00
" ORDER BY ID DESC" , CONNECTION_SYNCH );
2016-02-06 17:53:37 +01:00
PREPARE_LOCALE_STMT ( HOTFIX_SEL_DIFFICULTY , "SELECT ID, Name_lang FROM difficulty_locale WHERE locale = ?" , CONNECTION_SYNCH );
// DungeonEncounter.db2
2019-06-08 13:19:48 +02:00
PrepareStatement ( HOTFIX_SEL_DUNGEON_ENCOUNTER , "SELECT Name, ID, MapID, DifficultyID, OrderIndex, CompleteWorldStateID, Bit, CreatureDisplayID, "
"Flags, SpellIconFileID, Faction FROM dungeon_encounter ORDER BY ID DESC" , CONNECTION_SYNCH );
2016-02-06 17:53:37 +01:00
PREPARE_LOCALE_STMT ( HOTFIX_SEL_DUNGEON_ENCOUNTER , "SELECT ID, Name_lang FROM dungeon_encounter_locale WHERE locale = ?" , CONNECTION_SYNCH );
2016-01-24 15:56:10 +01:00
// DurabilityCosts.db2
PrepareStatement ( HOTFIX_SEL_DURABILITY_COSTS , "SELECT ID, WeaponSubClassCost1, WeaponSubClassCost2, WeaponSubClassCost3, WeaponSubClassCost4, "
"WeaponSubClassCost5, WeaponSubClassCost6, WeaponSubClassCost7, WeaponSubClassCost8, WeaponSubClassCost9, WeaponSubClassCost10, "
"WeaponSubClassCost11, WeaponSubClassCost12, WeaponSubClassCost13, WeaponSubClassCost14, WeaponSubClassCost15, WeaponSubClassCost16, "
"WeaponSubClassCost17, WeaponSubClassCost18, WeaponSubClassCost19, WeaponSubClassCost20, WeaponSubClassCost21, ArmorSubClassCost1, "
"ArmorSubClassCost2, ArmorSubClassCost3, ArmorSubClassCost4, ArmorSubClassCost5, ArmorSubClassCost6, ArmorSubClassCost7, ArmorSubClassCost8"
" FROM durability_costs ORDER BY ID DESC" , CONNECTION_SYNCH );
2015-07-07 12:13:14 +02:00
// DurabilityQuality.db2
2018-03-12 18:20:26 +01:00
PrepareStatement ( HOTFIX_SEL_DURABILITY_QUALITY , "SELECT ID, Data FROM durability_quality ORDER BY ID DESC" , CONNECTION_SYNCH );
2015-07-07 12:13:14 +02:00
2016-01-31 19:25:51 +01:00
// Emotes.db2
2018-09-25 21:08:38 +02:00
PrepareStatement ( HOTFIX_SEL_EMOTES , "SELECT ID, RaceMask, EmoteSlashCommand, AnimID, EmoteFlags, EmoteSpecProc, EmoteSpecProcParam, EventSoundID, "
"SpellVisualKitID, ClassMask FROM emotes ORDER BY ID DESC" , CONNECTION_SYNCH );
2016-01-31 19:25:51 +01:00
2016-02-06 17:53:37 +01:00
// EmotesText.db2
PrepareStatement ( HOTFIX_SEL_EMOTES_TEXT , "SELECT ID, Name, EmoteID FROM emotes_text ORDER BY ID DESC" , CONNECTION_SYNCH );
2016-01-24 15:56:10 +01:00
// EmotesTextSound.db2
2018-09-25 21:08:38 +02:00
PrepareStatement ( HOTFIX_SEL_EMOTES_TEXT_SOUND , "SELECT ID, RaceID, ClassID, SexID, SoundID, EmotesTextID FROM emotes_text_sound ORDER BY ID DESC" , CONNECTION_SYNCH );
// ExpectedStat.db2
PrepareStatement ( HOTFIX_SEL_EXPECTED_STAT , "SELECT ID, ExpansionID, CreatureHealth, PlayerHealth, CreatureAutoAttackDps, CreatureArmor, "
"PlayerMana, PlayerPrimaryStat, PlayerSecondaryStat, ArmorConstant, CreatureSpellDamage, Lvl FROM expected_stat ORDER BY ID DESC" , CONNECTION_SYNCH );
// ExpectedStatMod.db2
PrepareStatement ( HOTFIX_SEL_EXPECTED_STAT_MOD , "SELECT ID, CreatureHealthMod, PlayerHealthMod, CreatureAutoAttackDPSMod, CreatureArmorMod, "
"PlayerManaMod, PlayerPrimaryStatMod, PlayerSecondaryStatMod, ArmorConstantMod, CreatureSpellDamageMod FROM expected_stat_mod ORDER BY ID DESC" , CONNECTION_SYNCH );
2016-01-24 15:56:10 +01:00
2016-04-25 22:03:34 +02:00
// Faction.db2
2018-02-18 16:32:03 +01:00
PrepareStatement ( HOTFIX_SEL_FACTION , "SELECT ReputationRaceMask1, ReputationRaceMask2, ReputationRaceMask3, ReputationRaceMask4, Name, "
2018-09-25 21:08:38 +02:00
"Description, ID, ReputationIndex, ParentFactionID, Expansion, FriendshipRepID, Flags, ParagonFactionID, ReputationClassMask1, "
"ReputationClassMask2, ReputationClassMask3, ReputationClassMask4, ReputationFlags1, ReputationFlags2, ReputationFlags3, ReputationFlags4, "
"ReputationBase1, ReputationBase2, ReputationBase3, ReputationBase4, ReputationMax1, ReputationMax2, ReputationMax3, ReputationMax4, "
"ParentFactionMod1, ParentFactionMod2, ParentFactionCap1, ParentFactionCap2 FROM faction ORDER BY ID DESC" , CONNECTION_SYNCH );
2016-04-25 22:03:34 +02:00
PREPARE_LOCALE_STMT ( HOTFIX_SEL_FACTION , "SELECT ID, Name_lang, Description_lang FROM faction_locale WHERE locale = ?" , CONNECTION_SYNCH );
// FactionTemplate.db2
2018-09-25 21:08:38 +02:00
PrepareStatement ( HOTFIX_SEL_FACTION_TEMPLATE , "SELECT ID, Faction, Flags, FactionGroup, FriendGroup, EnemyGroup, Enemies1, Enemies2, Enemies3, "
"Enemies4, Friend1, Friend2, Friend3, Friend4 FROM faction_template ORDER BY ID DESC" , CONNECTION_SYNCH );
2015-05-08 00:03:15 +02:00
2016-01-24 15:56:10 +01:00
// GameobjectDisplayInfo.db2
2018-09-25 21:08:38 +02:00
PrepareStatement ( HOTFIX_SEL_GAMEOBJECT_DISPLAY_INFO , "SELECT ID, GeoBoxMinX, GeoBoxMinY, GeoBoxMinZ, GeoBoxMaxX, GeoBoxMaxY, GeoBoxMaxZ, "
"FileDataID, ObjectEffectPackageID, OverrideLootEffectScale, OverrideNameScale FROM gameobject_display_info ORDER BY ID DESC" , CONNECTION_SYNCH );
2016-01-24 15:56:10 +01:00
2018-03-12 18:20:26 +01:00
// Gameobjects.db2
2018-09-25 21:08:38 +02:00
PrepareStatement ( HOTFIX_SEL_GAMEOBJECTS , "SELECT Name, PosX, PosY, PosZ, Rot1, Rot2, Rot3, Rot4, ID, OwnerID, DisplayID, Scale, TypeID, "
"PhaseUseFlags, PhaseID, PhaseGroupID, PropValue1, PropValue2, PropValue3, PropValue4, PropValue5, PropValue6, PropValue7, PropValue8"
2018-03-12 18:20:26 +01:00
" FROM gameobjects ORDER BY ID DESC" , CONNECTION_SYNCH );
PREPARE_LOCALE_STMT ( HOTFIX_SEL_GAMEOBJECTS , "SELECT ID, Name_lang FROM gameobjects_locale WHERE locale = ?" , CONNECTION_SYNCH );
2015-05-17 18:06:28 +02:00
// GarrAbility.db2
2018-09-25 21:08:38 +02:00
PrepareStatement ( HOTFIX_SEL_GARR_ABILITY , "SELECT Name, Description, ID, GarrAbilityCategoryID, GarrFollowerTypeID, IconFileDataID, "
"FactionChangeGarrAbilityID, Flags FROM garr_ability ORDER BY ID DESC" , CONNECTION_SYNCH );
2015-05-17 18:06:28 +02:00
PREPARE_LOCALE_STMT ( HOTFIX_SEL_GARR_ABILITY , "SELECT ID, Name_lang, Description_lang FROM garr_ability_locale WHERE locale = ?" , CONNECTION_SYNCH );
2015-05-08 00:03:15 +02:00
// GarrBuilding.db2
2018-09-25 21:08:38 +02:00
PrepareStatement ( HOTFIX_SEL_GARR_BUILDING , "SELECT ID, HordeName, AllianceName, Description, Tooltip, GarrTypeID, BuildingType, "
"HordeGameObjectID, AllianceGameObjectID, GarrSiteID, UpgradeLevel, BuildSeconds, CurrencyTypeID, CurrencyQty, HordeUiTextureKitID, "
"AllianceUiTextureKitID, IconFileDataID, AllianceSceneScriptPackageID, HordeSceneScriptPackageID, MaxAssignments, ShipmentCapacity, "
"GarrAbilityID, BonusGarrAbilityID, GoldCost, Flags FROM garr_building ORDER BY ID DESC" , CONNECTION_SYNCH );
PREPARE_LOCALE_STMT ( HOTFIX_SEL_GARR_BUILDING , "SELECT ID, HordeName_lang, AllianceName_lang, Description_lang, Tooltip_lang"
2015-07-07 12:13:14 +02:00
" FROM garr_building_locale WHERE locale = ?" , CONNECTION_SYNCH );
2015-05-08 00:03:15 +02:00
// GarrBuildingPlotInst.db2
2018-09-25 21:08:38 +02:00
PrepareStatement ( HOTFIX_SEL_GARR_BUILDING_PLOT_INST , "SELECT MapOffsetX, MapOffsetY, ID, GarrBuildingID, GarrSiteLevelPlotInstID, "
"UiTextureAtlasMemberID FROM garr_building_plot_inst ORDER BY ID DESC" , CONNECTION_SYNCH );
2015-05-08 00:03:15 +02:00
2015-05-17 18:06:28 +02:00
// GarrClassSpec.db2
2018-09-25 21:08:38 +02:00
PrepareStatement ( HOTFIX_SEL_GARR_CLASS_SPEC , "SELECT ClassSpec, ClassSpecMale, ClassSpecFemale, ID, UiTextureAtlasMemberID, GarrFollItemSetID, "
"FollowerClassLimit, Flags FROM garr_class_spec ORDER BY ID DESC" , CONNECTION_SYNCH );
2018-03-12 18:20:26 +01:00
PREPARE_LOCALE_STMT ( HOTFIX_SEL_GARR_CLASS_SPEC , "SELECT ID, ClassSpec_lang, ClassSpecMale_lang, ClassSpecFemale_lang FROM garr_class_spec_locale"
2015-07-07 12:13:14 +02:00
" WHERE locale = ?" , CONNECTION_SYNCH );
2015-05-17 18:06:28 +02:00
// GarrFollower.db2
2018-09-25 21:08:38 +02:00
PrepareStatement ( HOTFIX_SEL_GARR_FOLLOWER , "SELECT HordeSourceText, AllianceSourceText, TitleName, ID, GarrTypeID, GarrFollowerTypeID, "
"HordeCreatureID, AllianceCreatureID, HordeGarrFollRaceID, AllianceGarrFollRaceID, HordeGarrClassSpecID, AllianceGarrClassSpecID, Quality, "
"FollowerLevel, ItemLevelWeapon, ItemLevelArmor, HordeSourceTypeEnum, AllianceSourceTypeEnum, HordeIconFileDataID, AllianceIconFileDataID, "
"HordeGarrFollItemSetID, AllianceGarrFollItemSetID, HordeUITextureKitID, AllianceUITextureKitID, Vitality, HordeFlavorGarrStringID, "
"AllianceFlavorGarrStringID, HordeSlottingBroadcastTextID, AllySlottingBroadcastTextID, ChrClassID, Flags, Gender FROM garr_follower"
" ORDER BY ID DESC" , CONNECTION_SYNCH );
2018-03-12 18:20:26 +01:00
PREPARE_LOCALE_STMT ( HOTFIX_SEL_GARR_FOLLOWER , "SELECT ID, HordeSourceText_lang, AllianceSourceText_lang, TitleName_lang FROM garr_follower_locale"
2017-04-06 23:39:34 +02:00
" WHERE locale = ?" , CONNECTION_SYNCH );
2015-05-17 18:06:28 +02:00
// GarrFollowerXAbility.db2
2018-09-25 21:08:38 +02:00
PrepareStatement ( HOTFIX_SEL_GARR_FOLLOWER_X_ABILITY , "SELECT ID, OrderIndex, FactionIndex, GarrAbilityID, GarrFollowerID"
" FROM garr_follower_x_ability ORDER BY ID DESC" , CONNECTION_SYNCH );
2015-05-17 18:06:28 +02:00
2015-05-08 00:03:15 +02:00
// GarrPlot.db2
2018-09-25 21:08:38 +02:00
PrepareStatement ( HOTFIX_SEL_GARR_PLOT , "SELECT ID, Name, PlotType, HordeConstructObjID, AllianceConstructObjID, Flags, UiCategoryID, "
2018-03-12 18:20:26 +01:00
"UpgradeRequirement1, UpgradeRequirement2 FROM garr_plot ORDER BY ID DESC" , CONNECTION_SYNCH );
2015-05-08 00:03:15 +02:00
// GarrPlotBuilding.db2
PrepareStatement ( HOTFIX_SEL_GARR_PLOT_BUILDING , "SELECT ID, GarrPlotID, GarrBuildingID FROM garr_plot_building ORDER BY ID DESC" , CONNECTION_SYNCH );
// GarrPlotInstance.db2
2016-01-24 15:56:10 +01:00
PrepareStatement ( HOTFIX_SEL_GARR_PLOT_INSTANCE , "SELECT ID, Name, GarrPlotID FROM garr_plot_instance ORDER BY ID DESC" , CONNECTION_SYNCH );
2015-05-08 00:03:15 +02:00
// GarrSiteLevel.db2
2018-09-25 21:08:38 +02:00
PrepareStatement ( HOTFIX_SEL_GARR_SITE_LEVEL , "SELECT ID, TownHallUiPosX, TownHallUiPosY, GarrSiteID, GarrLevel, MapID, UpgradeMovieID, "
"UiTextureKitID, MaxBuildingLevel, UpgradeCost, UpgradeGoldCost FROM garr_site_level ORDER BY ID DESC" , CONNECTION_SYNCH );
2015-05-08 00:03:15 +02:00
// GarrSiteLevelPlotInst.db2
2018-03-12 18:20:26 +01:00
PrepareStatement ( HOTFIX_SEL_GARR_SITE_LEVEL_PLOT_INST , "SELECT ID, UiMarkerPosX, UiMarkerPosY, GarrSiteLevelID, GarrPlotInstanceID, UiMarkerSize"
2015-07-07 12:13:14 +02:00
" FROM garr_site_level_plot_inst ORDER BY ID DESC" , CONNECTION_SYNCH );
2016-01-31 19:25:51 +01:00
// GemProperties.db2
2018-09-25 21:08:38 +02:00
PrepareStatement ( HOTFIX_SEL_GEM_PROPERTIES , "SELECT ID, EnchantId, Type, MinItemLevel FROM gem_properties ORDER BY ID DESC" , CONNECTION_SYNCH );
2016-01-31 19:25:51 +01:00
2016-08-25 19:12:00 +02:00
// GlyphBindableSpell.db2
PrepareStatement ( HOTFIX_SEL_GLYPH_BINDABLE_SPELL , "SELECT ID, SpellID, GlyphPropertiesID FROM glyph_bindable_spell ORDER BY ID DESC" , CONNECTION_SYNCH );
2016-01-31 19:25:51 +01:00
// GlyphProperties.db2
2019-07-14 15:21:32 +02:00
PrepareStatement ( HOTFIX_SEL_GLYPH_PROPERTIES , "SELECT ID, SpellID, GlyphType, GlyphExclusiveCategoryID, SpellIconFileDataID FROM glyph_properties"
2016-01-31 19:25:51 +01:00
" ORDER BY ID DESC" , CONNECTION_SYNCH );
2016-08-25 19:12:00 +02:00
// GlyphRequiredSpec.db2
2018-02-18 16:32:03 +01:00
PrepareStatement ( HOTFIX_SEL_GLYPH_REQUIRED_SPEC , "SELECT ID, ChrSpecializationID, GlyphPropertiesID FROM glyph_required_spec ORDER BY ID DESC" , CONNECTION_SYNCH );
2016-08-25 19:12:00 +02:00
2016-01-24 15:56:10 +01:00
// GuildColorBackground.db2
2018-09-25 21:08:38 +02:00
PrepareStatement ( HOTFIX_SEL_GUILD_COLOR_BACKGROUND , "SELECT ID, Red, Blue, Green FROM guild_color_background ORDER BY ID DESC" , CONNECTION_SYNCH );
2016-01-24 15:56:10 +01:00
// GuildColorBorder.db2
2018-09-25 21:08:38 +02:00
PrepareStatement ( HOTFIX_SEL_GUILD_COLOR_BORDER , "SELECT ID, Red, Blue, Green FROM guild_color_border ORDER BY ID DESC" , CONNECTION_SYNCH );
2016-01-24 15:56:10 +01:00
// GuildColorEmblem.db2
2018-09-25 21:08:38 +02:00
PrepareStatement ( HOTFIX_SEL_GUILD_COLOR_EMBLEM , "SELECT ID, Red, Blue, Green FROM guild_color_emblem ORDER BY ID DESC" , CONNECTION_SYNCH );
2016-01-24 15:56:10 +01:00
2015-07-07 12:13:14 +02:00
// GuildPerkSpells.db2
2016-04-25 22:03:34 +02:00
PrepareStatement ( HOTFIX_SEL_GUILD_PERK_SPELLS , "SELECT ID, SpellID FROM guild_perk_spells ORDER BY ID DESC" , CONNECTION_SYNCH );
2015-05-08 00:03:15 +02:00
2015-10-16 22:54:46 +02:00
// Heirloom.db2
2018-09-25 21:08:38 +02:00
PrepareStatement ( HOTFIX_SEL_HEIRLOOM , "SELECT SourceText, ID, ItemID, LegacyUpgradedItemID, StaticUpgradedItemID, SourceTypeEnum, Flags, "
2019-06-08 13:19:48 +02:00
"LegacyItemID, UpgradeItemID1, UpgradeItemID2, UpgradeItemID3, UpgradeItemID4, UpgradeItemBonusListID1, UpgradeItemBonusListID2, "
"UpgradeItemBonusListID3, UpgradeItemBonusListID4 FROM heirloom ORDER BY ID DESC" , CONNECTION_SYNCH );
2015-10-16 22:54:46 +02:00
PREPARE_LOCALE_STMT ( HOTFIX_SEL_HEIRLOOM , "SELECT ID, SourceText_lang FROM heirloom_locale WHERE locale = ?" , CONNECTION_SYNCH );
2015-02-22 10:29:12 +01:00
// Holidays.db2
2018-09-25 21:08:38 +02:00
PrepareStatement ( HOTFIX_SEL_HOLIDAYS , "SELECT ID, Region, Looping, HolidayNameID, HolidayDescriptionID, Priority, CalendarFilterType, Flags, "
"Duration1, Duration2, Duration3, Duration4, Duration5, Duration6, Duration7, Duration8, Duration9, Duration10, Date1, Date2, Date3, Date4, "
2019-06-08 13:19:48 +02:00
"Date5, Date6, Date7, Date8, Date9, Date10, Date11, Date12, Date13, Date14, Date15, Date16, Date17, Date18, Date19, Date20, Date21, Date22, "
"Date23, Date24, Date25, Date26, CalendarFlags1, CalendarFlags2, CalendarFlags3, CalendarFlags4, CalendarFlags5, CalendarFlags6, "
"CalendarFlags7, CalendarFlags8, CalendarFlags9, CalendarFlags10, TextureFileDataID1, TextureFileDataID2, TextureFileDataID3 FROM holidays"
" ORDER BY ID DESC" , CONNECTION_SYNCH );
2015-02-22 10:29:12 +01:00
2015-07-07 12:13:14 +02:00
// ImportPriceArmor.db2
2018-03-12 18:20:26 +01:00
PrepareStatement ( HOTFIX_SEL_IMPORT_PRICE_ARMOR , "SELECT ID, ClothModifier, LeatherModifier, ChainModifier, PlateModifier FROM import_price_armor"
2015-07-07 12:13:14 +02:00
" ORDER BY ID DESC" , CONNECTION_SYNCH );
// ImportPriceQuality.db2
2018-03-12 18:20:26 +01:00
PrepareStatement ( HOTFIX_SEL_IMPORT_PRICE_QUALITY , "SELECT ID, Data FROM import_price_quality ORDER BY ID DESC" , CONNECTION_SYNCH );
2015-07-07 12:13:14 +02:00
// ImportPriceShield.db2
2018-03-12 18:20:26 +01:00
PrepareStatement ( HOTFIX_SEL_IMPORT_PRICE_SHIELD , "SELECT ID, Data FROM import_price_shield ORDER BY ID DESC" , CONNECTION_SYNCH );
2015-07-07 12:13:14 +02:00
// ImportPriceWeapon.db2
2018-03-12 18:20:26 +01:00
PrepareStatement ( HOTFIX_SEL_IMPORT_PRICE_WEAPON , "SELECT ID, Data FROM import_price_weapon ORDER BY ID DESC" , CONNECTION_SYNCH );
2015-07-07 12:13:14 +02:00
2016-01-24 15:56:10 +01:00
// Item.db2
2018-09-25 21:08:38 +02:00
PrepareStatement ( HOTFIX_SEL_ITEM , "SELECT ID, ClassID, SubclassID, Material, InventoryType, SheatheType, SoundOverrideSubclassID, IconFileDataID, "
2018-03-12 18:20:26 +01:00
"ItemGroupSoundsID FROM item ORDER BY ID DESC" , CONNECTION_SYNCH );
2016-01-24 15:56:10 +01:00
2015-02-22 10:29:12 +01:00
// ItemAppearance.db2
2018-09-25 21:08:38 +02:00
PrepareStatement ( HOTFIX_SEL_ITEM_APPEARANCE , "SELECT ID, DisplayType, ItemDisplayInfoID, DefaultIconFileDataID, UiOrder FROM item_appearance"
2016-04-25 22:03:34 +02:00
" ORDER BY ID DESC" , CONNECTION_SYNCH );
2016-01-24 15:56:10 +01:00
// ItemArmorQuality.db2
2018-03-12 18:20:26 +01:00
PrepareStatement ( HOTFIX_SEL_ITEM_ARMOR_QUALITY , "SELECT ID, Qualitymod1, Qualitymod2, Qualitymod3, Qualitymod4, Qualitymod5, Qualitymod6, "
2018-09-25 21:08:38 +02:00
"Qualitymod7 FROM item_armor_quality ORDER BY ID DESC" , CONNECTION_SYNCH );
2016-01-24 15:56:10 +01:00
// ItemArmorShield.db2
PrepareStatement ( HOTFIX_SEL_ITEM_ARMOR_SHIELD , "SELECT ID, Quality1, Quality2, Quality3, Quality4, Quality5, Quality6, Quality7, ItemLevel"
" FROM item_armor_shield ORDER BY ID DESC" , CONNECTION_SYNCH );
// ItemArmorTotal.db2
2018-09-25 21:08:38 +02:00
PrepareStatement ( HOTFIX_SEL_ITEM_ARMOR_TOTAL , "SELECT ID, ItemLevel, Cloth, Leather, Mail, Plate FROM item_armor_total ORDER BY ID DESC" , CONNECTION_SYNCH );
2016-01-24 15:56:10 +01:00
// ItemBagFamily.db2
PrepareStatement ( HOTFIX_SEL_ITEM_BAG_FAMILY , "SELECT ID, Name FROM item_bag_family ORDER BY ID DESC" , CONNECTION_SYNCH );
PREPARE_LOCALE_STMT ( HOTFIX_SEL_ITEM_BAG_FAMILY , "SELECT ID, Name_lang FROM item_bag_family_locale WHERE locale = ?" , CONNECTION_SYNCH );
2015-02-22 10:29:12 +01:00
// ItemBonus.db2
2018-03-12 18:20:26 +01:00
PrepareStatement ( HOTFIX_SEL_ITEM_BONUS , "SELECT ID, Value1, Value2, Value3, ParentItemBonusListID, Type, OrderIndex FROM item_bonus"
" ORDER BY ID DESC" , CONNECTION_SYNCH );
2015-02-22 10:29:12 +01:00
2016-08-15 00:03:38 +02:00
// ItemBonusListLevelDelta.db2
2018-03-12 18:20:26 +01:00
PrepareStatement ( HOTFIX_SEL_ITEM_BONUS_LIST_LEVEL_DELTA , "SELECT ItemLevelDelta, ID FROM item_bonus_list_level_delta ORDER BY ID DESC" , CONNECTION_SYNCH );
2016-08-15 00:03:38 +02:00
2015-02-22 10:29:12 +01:00
// ItemBonusTreeNode.db2
2018-09-25 21:08:38 +02:00
PrepareStatement ( HOTFIX_SEL_ITEM_BONUS_TREE_NODE , "SELECT ID, ItemContext, ChildItemBonusTreeID, ChildItemBonusListID, ChildItemLevelSelectorID, "
2018-03-12 18:20:26 +01:00
"ParentItemBonusTreeID FROM item_bonus_tree_node ORDER BY ID DESC" , CONNECTION_SYNCH );
2015-07-07 12:13:14 +02:00
2016-08-05 20:49:01 +02:00
// ItemChildEquipment.db2
2019-06-08 13:19:48 +02:00
PrepareStatement ( HOTFIX_SEL_ITEM_CHILD_EQUIPMENT , "SELECT ID, ParentItemID, ChildItemID, ChildItemEquipSlot FROM item_child_equipment"
2018-03-12 18:20:26 +01:00
" ORDER BY ID DESC" , CONNECTION_SYNCH );
2016-08-05 20:49:01 +02:00
2015-07-07 12:13:14 +02:00
// ItemClass.db2
2018-09-25 21:08:38 +02:00
PrepareStatement ( HOTFIX_SEL_ITEM_CLASS , "SELECT ID, ClassName, ClassID, PriceModifier, Flags FROM item_class ORDER BY ID DESC" , CONNECTION_SYNCH );
2018-03-12 18:20:26 +01:00
PREPARE_LOCALE_STMT ( HOTFIX_SEL_ITEM_CLASS , "SELECT ID, ClassName_lang FROM item_class_locale WHERE locale = ?" , CONNECTION_SYNCH );
2015-02-22 10:29:12 +01:00
// ItemCurrencyCost.db2
2018-03-12 18:20:26 +01:00
PrepareStatement ( HOTFIX_SEL_ITEM_CURRENCY_COST , "SELECT ID, ItemID FROM item_currency_cost ORDER BY ID DESC" , CONNECTION_SYNCH );
2015-07-07 12:13:14 +02:00
2016-01-24 15:56:10 +01:00
// ItemDamageAmmo.db2
2018-09-25 21:08:38 +02:00
PrepareStatement ( HOTFIX_SEL_ITEM_DAMAGE_AMMO , "SELECT ID, ItemLevel, Quality1, Quality2, Quality3, Quality4, Quality5, Quality6, Quality7"
2018-03-12 18:20:26 +01:00
" FROM item_damage_ammo ORDER BY ID DESC" , CONNECTION_SYNCH );
2016-01-24 15:56:10 +01:00
// ItemDamageOneHand.db2
2018-09-25 21:08:38 +02:00
PrepareStatement ( HOTFIX_SEL_ITEM_DAMAGE_ONE_HAND , "SELECT ID, ItemLevel, Quality1, Quality2, Quality3, Quality4, Quality5, Quality6, Quality7"
2018-03-12 18:20:26 +01:00
" FROM item_damage_one_hand ORDER BY ID DESC" , CONNECTION_SYNCH );
2016-01-24 15:56:10 +01:00
// ItemDamageOneHandCaster.db2
2018-09-25 21:08:38 +02:00
PrepareStatement ( HOTFIX_SEL_ITEM_DAMAGE_ONE_HAND_CASTER , "SELECT ID, ItemLevel, Quality1, Quality2, Quality3, Quality4, Quality5, Quality6, "
"Quality7 FROM item_damage_one_hand_caster ORDER BY ID DESC" , CONNECTION_SYNCH );
2016-01-24 15:56:10 +01:00
// ItemDamageTwoHand.db2
2018-09-25 21:08:38 +02:00
PrepareStatement ( HOTFIX_SEL_ITEM_DAMAGE_TWO_HAND , "SELECT ID, ItemLevel, Quality1, Quality2, Quality3, Quality4, Quality5, Quality6, Quality7"
2018-03-12 18:20:26 +01:00
" FROM item_damage_two_hand ORDER BY ID DESC" , CONNECTION_SYNCH );
2016-01-24 15:56:10 +01:00
// ItemDamageTwoHandCaster.db2
2018-09-25 21:08:38 +02:00
PrepareStatement ( HOTFIX_SEL_ITEM_DAMAGE_TWO_HAND_CASTER , "SELECT ID, ItemLevel, Quality1, Quality2, Quality3, Quality4, Quality5, Quality6, "
"Quality7 FROM item_damage_two_hand_caster ORDER BY ID DESC" , CONNECTION_SYNCH );
2016-01-24 15:56:10 +01:00
2015-07-07 12:13:14 +02:00
// ItemDisenchantLoot.db2
2018-09-25 21:08:38 +02:00
PrepareStatement ( HOTFIX_SEL_ITEM_DISENCHANT_LOOT , "SELECT ID, Subclass, Quality, MinLevel, MaxLevel, SkillRequired, ExpansionID, Class"
2018-03-12 18:20:26 +01:00
" FROM item_disenchant_loot ORDER BY ID DESC" , CONNECTION_SYNCH );
2015-02-22 10:29:12 +01:00
// ItemEffect.db2
2018-09-25 21:08:38 +02:00
PrepareStatement ( HOTFIX_SEL_ITEM_EFFECT , "SELECT ID, LegacySlotIndex, TriggerType, Charges, CoolDownMSec, CategoryCoolDownMSec, SpellCategoryID, "
"SpellID, ChrSpecializationID, ParentItemID FROM item_effect ORDER BY ID DESC" , CONNECTION_SYNCH );
2015-02-22 10:29:12 +01:00
// ItemExtendedCost.db2
2018-09-25 21:08:38 +02:00
PrepareStatement ( HOTFIX_SEL_ITEM_EXTENDED_COST , "SELECT ID, RequiredArenaRating, ArenaBracket, Flags, MinFactionID, MinReputation, "
"RequiredAchievement, ItemID1, ItemID2, ItemID3, ItemID4, ItemID5, ItemCount1, ItemCount2, ItemCount3, ItemCount4, ItemCount5, CurrencyID1, "
"CurrencyID2, CurrencyID3, CurrencyID4, CurrencyID5, CurrencyCount1, CurrencyCount2, CurrencyCount3, CurrencyCount4, CurrencyCount5"
2018-03-12 18:20:26 +01:00
" FROM item_extended_cost ORDER BY ID DESC" , CONNECTION_SYNCH );
2017-09-15 20:23:41 +01:00
// ItemLevelSelector.db2
2019-06-08 13:19:48 +02:00
PrepareStatement ( HOTFIX_SEL_ITEM_LEVEL_SELECTOR , "SELECT ID, MinItemLevel, ItemLevelSelectorQualitySetID, AzeriteUnlockMappingSet"
" FROM item_level_selector ORDER BY ID DESC" , CONNECTION_SYNCH );
2017-11-18 20:12:12 +01:00
// ItemLevelSelectorQuality.db2
2018-03-12 18:20:26 +01:00
PrepareStatement ( HOTFIX_SEL_ITEM_LEVEL_SELECTOR_QUALITY , "SELECT ID, QualityItemBonusListID, Quality, ParentILSQualitySetID"
2017-11-18 20:12:12 +01:00
" FROM item_level_selector_quality ORDER BY ID DESC" , CONNECTION_SYNCH );
// ItemLevelSelectorQualitySet.db2
2018-03-12 18:20:26 +01:00
PrepareStatement ( HOTFIX_SEL_ITEM_LEVEL_SELECTOR_QUALITY_SET , "SELECT ID, IlvlRare, IlvlEpic FROM item_level_selector_quality_set ORDER BY ID DESC" , CONNECTION_SYNCH );
2015-02-22 10:29:12 +01:00
2015-07-07 12:13:14 +02:00
// ItemLimitCategory.db2
PrepareStatement ( HOTFIX_SEL_ITEM_LIMIT_CATEGORY , "SELECT ID, Name, Quantity, Flags FROM item_limit_category ORDER BY ID DESC" , CONNECTION_SYNCH );
PREPARE_LOCALE_STMT ( HOTFIX_SEL_ITEM_LIMIT_CATEGORY , "SELECT ID, Name_lang FROM item_limit_category_locale WHERE locale = ?" , CONNECTION_SYNCH );
2018-04-18 16:41:23 +01:00
// ItemLimitCategoryCondition.db2
2018-05-13 20:43:44 +02:00
PrepareStatement ( HOTFIX_SEL_ITEM_LIMIT_CATEGORY_CONDITION , "SELECT ID, AddQuantity, PlayerConditionID, ParentItemLimitCategoryID"
2018-04-18 16:41:23 +01:00
" FROM item_limit_category_condition ORDER BY ID DESC" , CONNECTION_SYNCH );
2015-02-22 10:29:12 +01:00
// ItemModifiedAppearance.db2
2018-09-25 21:08:38 +02:00
PrepareStatement ( HOTFIX_SEL_ITEM_MODIFIED_APPEARANCE , "SELECT ID, ItemID, ItemAppearanceModifierID, ItemAppearanceID, OrderIndex, "
2018-03-12 18:20:26 +01:00
"TransmogSourceTypeEnum FROM item_modified_appearance ORDER BY ID DESC" , CONNECTION_SYNCH );
2015-07-07 12:13:14 +02:00
// ItemPriceBase.db2
2018-09-25 21:08:38 +02:00
PrepareStatement ( HOTFIX_SEL_ITEM_PRICE_BASE , "SELECT ID, ItemLevel, Armor, Weapon FROM item_price_base ORDER BY ID DESC" , CONNECTION_SYNCH );
2015-07-07 12:13:14 +02:00
2016-07-05 22:07:35 +02:00
// ItemSearchName.db2
2018-09-25 21:08:38 +02:00
PrepareStatement ( HOTFIX_SEL_ITEM_SEARCH_NAME , "SELECT AllowableRace, Display, ID, OverallQualityID, ExpansionID, MinFactionID, MinReputation, "
"AllowableClass, RequiredLevel, RequiredSkill, RequiredSkillRank, RequiredAbility, ItemLevel, Flags1, Flags2, Flags3, Flags4"
2016-07-05 22:07:35 +02:00
" FROM item_search_name ORDER BY ID DESC" , CONNECTION_SYNCH );
2018-03-12 18:20:26 +01:00
PREPARE_LOCALE_STMT ( HOTFIX_SEL_ITEM_SEARCH_NAME , "SELECT ID, Display_lang FROM item_search_name_locale WHERE locale = ?" , CONNECTION_SYNCH );
2016-07-05 22:07:35 +02:00
2016-01-31 19:25:51 +01:00
// ItemSet.db2
2018-09-25 21:08:38 +02:00
PrepareStatement ( HOTFIX_SEL_ITEM_SET , "SELECT ID, Name, SetFlags, RequiredSkill, RequiredSkillRank, ItemID1, ItemID2, ItemID3, ItemID4, ItemID5, "
"ItemID6, ItemID7, ItemID8, ItemID9, ItemID10, ItemID11, ItemID12, ItemID13, ItemID14, ItemID15, ItemID16, ItemID17 FROM item_set"
2016-01-31 19:25:51 +01:00
" ORDER BY ID DESC" , CONNECTION_SYNCH );
PREPARE_LOCALE_STMT ( HOTFIX_SEL_ITEM_SET , "SELECT ID, Name_lang FROM item_set_locale WHERE locale = ?" , CONNECTION_SYNCH );
2016-01-24 15:56:10 +01:00
// ItemSetSpell.db2
2018-09-25 21:08:38 +02:00
PrepareStatement ( HOTFIX_SEL_ITEM_SET_SPELL , "SELECT ID, ChrSpecID, SpellID, Threshold, ItemSetID FROM item_set_spell ORDER BY ID DESC" , CONNECTION_SYNCH );
2016-01-24 15:56:10 +01:00
2015-07-07 12:13:14 +02:00
// ItemSparse.db2
2018-09-25 21:08:38 +02:00
PrepareStatement ( HOTFIX_SEL_ITEM_SPARSE , "SELECT ID, AllowableRace, Description, Display3, Display2, Display1, Display, DmgVariance, "
"DurationInInventory, QualityModifier, BagFamily, ItemRange, StatPercentageOfSocket1, StatPercentageOfSocket2, StatPercentageOfSocket3, "
"StatPercentageOfSocket4, StatPercentageOfSocket5, StatPercentageOfSocket6, StatPercentageOfSocket7, StatPercentageOfSocket8, "
"StatPercentageOfSocket9, StatPercentageOfSocket10, StatPercentEditor1, StatPercentEditor2, StatPercentEditor3, StatPercentEditor4, "
"StatPercentEditor5, StatPercentEditor6, StatPercentEditor7, StatPercentEditor8, StatPercentEditor9, StatPercentEditor10, Stackable, "
"MaxCount, RequiredAbility, SellPrice, BuyPrice, VendorStackCount, PriceVariance, PriceRandomValue, Flags1, Flags2, Flags3, Flags4, "
"FactionRelated, ItemNameDescriptionID, RequiredTransmogHoliday, RequiredHoliday, LimitCategory, GemProperties, SocketMatchEnchantmentId, "
2019-06-08 13:19:48 +02:00
"TotemCategoryID, InstanceBound, ZoneBound, ItemSet, LockID, StartQuestID, PageID, ItemDelay, ScalingStatDistributionID, MinFactionID, "
"RequiredSkillRank, RequiredSkill, ItemLevel, AllowableClass, ExpansionID, ArtifactID, SpellWeight, SpellWeightCategory, SocketType1, "
"SocketType2, SocketType3, SheatheType, Material, PageMaterialID, LanguageID, Bonding, DamageDamageType, StatModifierBonusStat1, "
"StatModifierBonusStat2, StatModifierBonusStat3, StatModifierBonusStat4, StatModifierBonusStat5, StatModifierBonusStat6, "
"StatModifierBonusStat7, StatModifierBonusStat8, StatModifierBonusStat9, StatModifierBonusStat10, ContainerSlots, MinReputation, "
"RequiredPVPMedal, RequiredPVPRank, RequiredLevel, InventoryType, OverallQualityID FROM item_sparse ORDER BY ID DESC" , CONNECTION_SYNCH );
2018-09-25 21:08:38 +02:00
PREPARE_LOCALE_STMT ( HOTFIX_SEL_ITEM_SPARSE , "SELECT ID, Description_lang, Display3_lang, Display2_lang, Display1_lang, Display_lang"
2018-03-12 18:20:26 +01:00
" FROM item_sparse_locale WHERE locale = ?" , CONNECTION_SYNCH );
2015-07-07 12:13:14 +02:00
// ItemSpec.db2
2018-09-25 21:08:38 +02:00
PrepareStatement ( HOTFIX_SEL_ITEM_SPEC , "SELECT ID, MinLevel, MaxLevel, ItemType, PrimaryStat, SecondaryStat, SpecializationID FROM item_spec"
2015-07-07 12:13:14 +02:00
" ORDER BY ID DESC" , CONNECTION_SYNCH );
// ItemSpecOverride.db2
2018-02-18 16:32:03 +01:00
PrepareStatement ( HOTFIX_SEL_ITEM_SPEC_OVERRIDE , "SELECT ID, SpecID, ItemID FROM item_spec_override ORDER BY ID DESC" , CONNECTION_SYNCH );
2015-02-22 10:29:12 +01:00
2016-06-21 20:33:51 +02:00
// ItemUpgrade.db2
2018-09-25 21:08:38 +02:00
PrepareStatement ( HOTFIX_SEL_ITEM_UPGRADE , "SELECT ID, ItemUpgradePathID, ItemLevelIncrement, PrerequisiteID, CurrencyType, CurrencyAmount"
2016-06-21 20:33:51 +02:00
" FROM item_upgrade ORDER BY ID DESC" , CONNECTION_SYNCH );
2015-02-22 10:29:12 +01:00
// ItemXBonusTree.db2
2018-03-12 18:20:26 +01:00
PrepareStatement ( HOTFIX_SEL_ITEM_X_BONUS_TREE , "SELECT ID, ItemBonusTreeID, ItemID FROM item_x_bonus_tree ORDER BY ID DESC" , CONNECTION_SYNCH );
2015-01-17 17:59:13 +01:00
2017-11-18 20:12:12 +01:00
// Keychain.db2
PrepareStatement ( HOTFIX_SEL_KEYCHAIN , "SELECT ID, Key1, Key2, Key3, Key4, Key5, Key6, Key7, Key8, Key9, Key10, Key11, Key12, Key13, Key14, Key15, "
"Key16, Key17, Key18, Key19, Key20, Key21, Key22, Key23, Key24, Key25, Key26, Key27, Key28, Key29, Key30, Key31, Key32 FROM keychain"
2016-01-24 15:56:10 +01:00
" ORDER BY ID DESC" , CONNECTION_SYNCH );
2015-07-07 12:13:14 +02:00
2016-04-25 22:03:34 +02:00
// LfgDungeons.db2
2018-09-25 21:08:38 +02:00
PrepareStatement ( HOTFIX_SEL_LFG_DUNGEONS , "SELECT ID, Name, Description, MinLevel, MaxLevel, TypeID, Subtype, Faction, IconTextureFileID, "
"RewardsBgTextureFileID, PopupBgTextureFileID, ExpansionLevel, MapID, DifficultyID, MinGear, GroupID, OrderIndex, RequiredPlayerConditionId, "
"TargetLevel, TargetLevelMin, TargetLevelMax, RandomID, ScenarioID, FinalEncounterID, CountTank, CountHealer, CountDamage, MinCountTank, "
"MinCountHealer, MinCountDamage, BonusReputationAmount, MentorItemLevel, MentorCharLevel, Flags1, Flags2 FROM lfg_dungeons ORDER BY ID DESC" , CONNECTION_SYNCH );
2016-04-25 22:03:34 +02:00
PREPARE_LOCALE_STMT ( HOTFIX_SEL_LFG_DUNGEONS , "SELECT ID, Name_lang, Description_lang FROM lfg_dungeons_locale WHERE locale = ?" , CONNECTION_SYNCH );
// Light.db2
2018-03-12 18:20:26 +01:00
PrepareStatement ( HOTFIX_SEL_LIGHT , "SELECT ID, GameCoordsX, GameCoordsY, GameCoordsZ, GameFalloffStart, GameFalloffEnd, ContinentID, "
"LightParamsID1, LightParamsID2, LightParamsID3, LightParamsID4, LightParamsID5, LightParamsID6, LightParamsID7, LightParamsID8 FROM light"
" ORDER BY ID DESC" , CONNECTION_SYNCH );
2016-04-25 22:03:34 +02:00
// LiquidType.db2
2018-09-25 21:08:38 +02:00
PrepareStatement ( HOTFIX_SEL_LIQUID_TYPE , "SELECT ID, Name, Texture1, Texture2, Texture3, Texture4, Texture5, Texture6, Flags, SoundBank, SoundID, "
"SpellID, MaxDarkenDepth, FogDarkenIntensity, AmbDarkenIntensity, DirDarkenIntensity, LightID, ParticleScale, ParticleMovement, "
"ParticleTexSlots, MaterialID, MinimapStaticCol, FrameCountTexture1, FrameCountTexture2, FrameCountTexture3, FrameCountTexture4, "
"FrameCountTexture5, FrameCountTexture6, Color1, Color2, Float1, Float2, Float3, `Float4`, Float5, Float6, Float7, `Float8`, Float9, Float10, "
"Float11, Float12, Float13, Float14, Float15, Float16, Float17, Float18, `Int1`, `Int2`, `Int3`, `Int4`, Coefficient1, Coefficient2, "
"Coefficient3, Coefficient4 FROM liquid_type ORDER BY ID DESC" , CONNECTION_SYNCH );
2016-04-25 22:03:34 +02:00
2016-01-31 19:25:51 +01:00
// Lock.db2
PrepareStatement ( HOTFIX_SEL_LOCK , "SELECT ID, Index1, Index2, Index3, Index4, Index5, Index6, Index7, Index8, Skill1, Skill2, Skill3, Skill4, "
"Skill5, Skill6, Skill7, Skill8, Type1, Type2, Type3, Type4, Type5, Type6, Type7, Type8, Action1, Action2, Action3, Action4, Action5, "
"Action6, Action7, Action8 FROM `lock` ORDER BY ID DESC" , CONNECTION_SYNCH );
2015-07-07 12:13:14 +02:00
// MailTemplate.db2
PrepareStatement ( HOTFIX_SEL_MAIL_TEMPLATE , "SELECT ID, Body FROM mail_template ORDER BY ID DESC" , CONNECTION_SYNCH );
PREPARE_LOCALE_STMT ( HOTFIX_SEL_MAIL_TEMPLATE , "SELECT ID, Body_lang FROM mail_template_locale WHERE locale = ?" , CONNECTION_SYNCH );
2015-02-22 10:29:12 +01:00
2016-02-06 17:53:37 +01:00
// Map.db2
2018-03-12 18:20:26 +01:00
PrepareStatement ( HOTFIX_SEL_MAP , "SELECT ID, Directory, MapName, MapDescription0, MapDescription1, PvpShortDescription, PvpLongDescription, "
2018-09-25 21:08:38 +02:00
"CorpseX, CorpseY, MapType, InstanceType, ExpansionID, AreaTableID, LoadingScreenID, TimeOfDayOverride, ParentMapID, CosmeticParentMapID, "
2019-06-08 13:19:48 +02:00
"TimeOffset, MinimapIconScale, CorpseMapID, MaxPlayers, WindSettingsID, ZmpFileDataID, WdtFileDataID, Flags1, Flags2 FROM map ORDER BY ID DESC" , CONNECTION_SYNCH );
2018-03-12 18:20:26 +01:00
PREPARE_LOCALE_STMT ( HOTFIX_SEL_MAP , "SELECT ID, MapName_lang, MapDescription0_lang, MapDescription1_lang, PvpShortDescription_lang, "
"PvpLongDescription_lang FROM map_locale WHERE locale = ?" , CONNECTION_SYNCH );
2016-02-06 17:53:37 +01:00
2016-04-25 22:03:34 +02:00
// MapDifficulty.db2
2019-06-08 13:19:48 +02:00
PrepareStatement ( HOTFIX_SEL_MAP_DIFFICULTY , "SELECT ID, Message, DifficultyID, LockID, ResetInterval, MaxPlayers, ItemContext, "
"ItemContextPickerID, Flags, ContentTuningID, MapID FROM map_difficulty ORDER BY ID DESC" , CONNECTION_SYNCH );
2016-04-25 22:03:34 +02:00
PREPARE_LOCALE_STMT ( HOTFIX_SEL_MAP_DIFFICULTY , "SELECT ID, Message_lang FROM map_difficulty_locale WHERE locale = ?" , CONNECTION_SYNCH );
2015-09-07 18:03:33 +02:00
// ModifierTree.db2
2018-09-25 21:08:38 +02:00
PrepareStatement ( HOTFIX_SEL_MODIFIER_TREE , "SELECT ID, Parent, Operator, Amount, Type, Asset, SecondaryAsset, TertiaryAsset FROM modifier_tree"
2018-03-12 18:20:26 +01:00
" ORDER BY ID DESC" , CONNECTION_SYNCH );
2015-09-07 18:03:33 +02:00
2015-02-22 10:29:12 +01:00
// Mount.db2
2018-09-25 21:08:38 +02:00
PrepareStatement ( HOTFIX_SEL_MOUNT , "SELECT Name, SourceText, Description, ID, MountTypeID, Flags, SourceTypeEnum, SourceSpellID, "
"PlayerConditionID, MountFlyRideHeight, UiModelSceneID FROM mount ORDER BY ID DESC" , CONNECTION_SYNCH );
PREPARE_LOCALE_STMT ( HOTFIX_SEL_MOUNT , "SELECT ID, Name_lang, SourceText_lang, Description_lang FROM mount_locale WHERE locale = ?" , CONNECTION_SYNCH );
2015-07-07 12:13:14 +02:00
// MountCapability.db2
2018-09-25 21:08:38 +02:00
PrepareStatement ( HOTFIX_SEL_MOUNT_CAPABILITY , "SELECT ID, Flags, ReqRidingSkill, ReqAreaID, ReqSpellAuraID, ReqSpellKnownID, ModSpellAuraID, "
2019-07-14 15:21:32 +02:00
"ReqMapID, PlayerConditionID FROM mount_capability ORDER BY ID DESC" , CONNECTION_SYNCH );
2015-07-07 12:13:14 +02:00
2015-09-07 18:03:33 +02:00
// MountTypeXCapability.db2
2016-01-24 15:56:10 +01:00
PrepareStatement ( HOTFIX_SEL_MOUNT_TYPE_X_CAPABILITY , "SELECT ID, MountTypeID, MountCapabilityID, OrderIndex FROM mount_type_x_capability"
2016-05-01 21:46:58 +02:00
" ORDER BY ID DESC" , CONNECTION_SYNCH );
2015-07-07 12:13:14 +02:00
2017-04-06 23:39:34 +02:00
// MountXDisplay.db2
2018-03-12 18:20:26 +01:00
PrepareStatement ( HOTFIX_SEL_MOUNT_X_DISPLAY , "SELECT ID, CreatureDisplayInfoID, PlayerConditionID, MountID FROM mount_x_display ORDER BY ID DESC" , CONNECTION_SYNCH );
2017-04-06 23:39:34 +02:00
2016-01-24 15:56:10 +01:00
// Movie.db2
2018-09-25 21:08:38 +02:00
PrepareStatement ( HOTFIX_SEL_MOVIE , "SELECT ID, Volume, KeyID, AudioFileDataID, SubtitleFileDataID FROM movie ORDER BY ID DESC" , CONNECTION_SYNCH );
2016-01-24 15:56:10 +01:00
2015-07-07 12:13:14 +02:00
// NameGen.db2
2018-03-12 18:20:26 +01:00
PrepareStatement ( HOTFIX_SEL_NAME_GEN , "SELECT ID, Name, RaceID, Sex FROM name_gen ORDER BY ID DESC" , CONNECTION_SYNCH );
2015-02-22 10:29:12 +01:00
2015-08-30 00:17:08 +02:00
// NamesProfanity.db2
PrepareStatement ( HOTFIX_SEL_NAMES_PROFANITY , "SELECT ID, Name, Language FROM names_profanity ORDER BY ID DESC" , CONNECTION_SYNCH );
// NamesReserved.db2
PrepareStatement ( HOTFIX_SEL_NAMES_RESERVED , "SELECT ID, Name FROM names_reserved ORDER BY ID DESC" , CONNECTION_SYNCH );
// NamesReservedLocale.db2
PrepareStatement ( HOTFIX_SEL_NAMES_RESERVED_LOCALE , "SELECT ID, Name, LocaleMask FROM names_reserved_locale ORDER BY ID DESC" , CONNECTION_SYNCH );
2018-10-04 18:50:21 +02:00
// NumTalentsAtLevel.db2
PrepareStatement ( HOTFIX_SEL_NUM_TALENTS_AT_LEVEL , "SELECT ID, NumTalents, NumTalentsDeathKnight, NumTalentsDemonHunter FROM num_talents_at_level"
" ORDER BY ID DESC" , CONNECTION_SYNCH );
2015-02-22 10:29:12 +01:00
// OverrideSpellData.db2
2018-03-12 18:20:26 +01:00
PrepareStatement ( HOTFIX_SEL_OVERRIDE_SPELL_DATA , "SELECT ID, Spells1, Spells2, Spells3, Spells4, Spells5, Spells6, Spells7, Spells8, Spells9, "
"Spells10, PlayerActionBarFileDataID, Flags FROM override_spell_data ORDER BY ID DESC" , CONNECTION_SYNCH );
2015-07-07 12:13:14 +02:00
2016-02-06 17:53:37 +01:00
// Phase.db2
PrepareStatement ( HOTFIX_SEL_PHASE , "SELECT ID, Flags FROM phase ORDER BY ID DESC" , CONNECTION_SYNCH );
2015-07-07 12:13:14 +02:00
// PhaseXPhaseGroup.db2
2016-05-01 21:46:58 +02:00
PrepareStatement ( HOTFIX_SEL_PHASE_X_PHASE_GROUP , "SELECT ID, PhaseID, PhaseGroupID FROM phase_x_phase_group ORDER BY ID DESC" , CONNECTION_SYNCH );
2015-02-22 10:29:12 +01:00
2016-01-03 00:40:18 +01:00
// PlayerCondition.db2
2018-09-25 21:08:38 +02:00
PrepareStatement ( HOTFIX_SEL_PLAYER_CONDITION , "SELECT RaceMask, FailureDescription, ID, MinLevel, MaxLevel, ClassMask, SkillLogic, LanguageID, "
"MinLanguage, MaxLanguage, MaxFactionID, MaxReputation, ReputationLogic, CurrentPvpFaction, PvpMedal, PrevQuestLogic, CurrQuestLogic, "
"CurrentCompletedQuestLogic, SpellLogic, ItemLogic, ItemFlags, AuraSpellLogic, WorldStateExpressionID, WeatherID, PartyStatus, "
"LifetimeMaxPVPRank, AchievementLogic, Gender, NativeGender, AreaLogic, LfgLogic, CurrencyLogic, QuestKillID, QuestKillLogic, "
"MinExpansionLevel, MaxExpansionLevel, MinAvgItemLevel, MaxAvgItemLevel, MinAvgEquippedItemLevel, MaxAvgEquippedItemLevel, PhaseUseFlags, "
"PhaseID, PhaseGroupID, Flags, ChrSpecializationIndex, ChrSpecializationRole, ModifierTreeID, PowerType, PowerTypeComp, PowerTypeValue, "
"WeaponSubclassMask, MaxGuildLevel, MinGuildLevel, MaxExpansionTier, MinExpansionTier, MinPVPRank, MaxPVPRank, SkillID1, SkillID2, SkillID3, "
"SkillID4, MinSkill1, MinSkill2, MinSkill3, MinSkill4, MaxSkill1, MaxSkill2, MaxSkill3, MaxSkill4, MinFactionID1, MinFactionID2, "
"MinFactionID3, MinReputation1, MinReputation2, MinReputation3, PrevQuestID1, PrevQuestID2, PrevQuestID3, PrevQuestID4, CurrQuestID1, "
"CurrQuestID2, CurrQuestID3, CurrQuestID4, CurrentCompletedQuestID1, CurrentCompletedQuestID2, CurrentCompletedQuestID3, "
"CurrentCompletedQuestID4, SpellID1, SpellID2, SpellID3, SpellID4, ItemID1, ItemID2, ItemID3, ItemID4, ItemCount1, ItemCount2, ItemCount3, "
"ItemCount4, Explored1, Explored2, Time1, Time2, AuraSpellID1, AuraSpellID2, AuraSpellID3, AuraSpellID4, AuraStacks1, AuraStacks2, "
"AuraStacks3, AuraStacks4, Achievement1, Achievement2, Achievement3, Achievement4, AreaID1, AreaID2, AreaID3, AreaID4, LfgStatus1, "
"LfgStatus2, LfgStatus3, LfgStatus4, LfgCompare1, LfgCompare2, LfgCompare3, LfgCompare4, LfgValue1, LfgValue2, LfgValue3, LfgValue4, "
"CurrencyID1, CurrencyID2, CurrencyID3, CurrencyID4, CurrencyCount1, CurrencyCount2, CurrencyCount3, CurrencyCount4, QuestKillMonster1, "
"QuestKillMonster2, QuestKillMonster3, QuestKillMonster4, QuestKillMonster5, QuestKillMonster6, MovementFlags1, MovementFlags2"
" FROM player_condition ORDER BY ID DESC" , CONNECTION_SYNCH );
2016-01-03 00:40:18 +01:00
PREPARE_LOCALE_STMT ( HOTFIX_SEL_PLAYER_CONDITION , "SELECT ID, FailureDescription_lang FROM player_condition_locale WHERE locale = ?" , CONNECTION_SYNCH );
2016-01-24 15:56:10 +01:00
// PowerDisplay.db2
2018-03-12 18:20:26 +01:00
PrepareStatement ( HOTFIX_SEL_POWER_DISPLAY , "SELECT ID, GlobalStringBaseTag, ActualType, Red, Green, Blue FROM power_display ORDER BY ID DESC" , CONNECTION_SYNCH );
2016-01-24 15:56:10 +01:00
2016-09-20 23:09:10 +02:00
// PowerType.db2
2018-09-25 21:08:38 +02:00
PrepareStatement ( HOTFIX_SEL_POWER_TYPE , "SELECT ID, NameGlobalStringTag, CostGlobalStringTag, PowerTypeEnum, MinPower, MaxBasePower, CenterPower, "
"DefaultPower, DisplayModifier, RegenInterruptTimeMS, RegenPeace, RegenCombat, Flags FROM power_type ORDER BY ID DESC" , CONNECTION_SYNCH );
2016-09-20 23:09:10 +02:00
2017-06-04 16:51:47 +02:00
// PrestigeLevelInfo.db2
2018-09-25 21:08:38 +02:00
PrepareStatement ( HOTFIX_SEL_PRESTIGE_LEVEL_INFO , "SELECT ID, Name, PrestigeLevel, BadgeTextureFileDataID, Flags, AwardedAchievementID"
" FROM prestige_level_info ORDER BY ID DESC" , CONNECTION_SYNCH );
2018-03-12 18:20:26 +01:00
PREPARE_LOCALE_STMT ( HOTFIX_SEL_PRESTIGE_LEVEL_INFO , "SELECT ID, Name_lang FROM prestige_level_info_locale WHERE locale = ?" , CONNECTION_SYNCH );
2017-06-04 16:51:47 +02:00
2016-01-31 19:25:51 +01:00
// PvpDifficulty.db2
2018-03-12 18:20:26 +01:00
PrepareStatement ( HOTFIX_SEL_PVP_DIFFICULTY , "SELECT ID, RangeIndex, MinLevel, MaxLevel, MapID FROM pvp_difficulty ORDER BY ID DESC" , CONNECTION_SYNCH );
2016-01-31 19:25:51 +01:00
2018-03-05 21:50:57 +00:00
// PvpItem.db2
2018-03-12 18:20:26 +01:00
PrepareStatement ( HOTFIX_SEL_PVP_ITEM , "SELECT ID, ItemID, ItemLevelDelta FROM pvp_item ORDER BY ID DESC" , CONNECTION_SYNCH );
2018-03-05 21:50:57 +00:00
2018-03-04 22:32:08 +01:00
// PvpTalent.db2
2018-09-25 21:08:38 +02:00
PrepareStatement ( HOTFIX_SEL_PVP_TALENT , "SELECT Description, ID, SpecID, SpellID, OverridesSpellID, Flags, ActionBarSpellID, PvpTalentCategoryID, "
"LevelRequired FROM pvp_talent ORDER BY ID DESC" , CONNECTION_SYNCH );
2018-03-04 22:32:08 +01:00
PREPARE_LOCALE_STMT ( HOTFIX_SEL_PVP_TALENT , "SELECT ID, Description_lang FROM pvp_talent_locale WHERE locale = ?" , CONNECTION_SYNCH );
2018-09-25 21:08:38 +02:00
// PvpTalentCategory.db2
PrepareStatement ( HOTFIX_SEL_PVP_TALENT_CATEGORY , "SELECT ID, TalentSlotMask FROM pvp_talent_category ORDER BY ID DESC" , CONNECTION_SYNCH );
// PvpTalentSlotUnlock.db2
PrepareStatement ( HOTFIX_SEL_PVP_TALENT_SLOT_UNLOCK , "SELECT ID, Slot, LevelRequired, DeathKnightLevelRequired, DemonHunterLevelRequired"
" FROM pvp_talent_slot_unlock ORDER BY ID DESC" , CONNECTION_SYNCH );
2018-03-04 22:32:08 +01:00
2016-01-24 15:56:10 +01:00
// QuestFactionReward.db2
2018-03-12 18:20:26 +01:00
PrepareStatement ( HOTFIX_SEL_QUEST_FACTION_REWARD , "SELECT ID, Difficulty1, Difficulty2, Difficulty3, Difficulty4, Difficulty5, Difficulty6, "
"Difficulty7, Difficulty8, Difficulty9, Difficulty10 FROM quest_faction_reward ORDER BY ID DESC" , CONNECTION_SYNCH );
2016-01-24 15:56:10 +01:00
2015-07-07 12:13:14 +02:00
// QuestMoneyReward.db2
2018-03-12 18:20:26 +01:00
PrepareStatement ( HOTFIX_SEL_QUEST_MONEY_REWARD , "SELECT ID, Difficulty1, Difficulty2, Difficulty3, Difficulty4, Difficulty5, Difficulty6, "
"Difficulty7, Difficulty8, Difficulty9, Difficulty10 FROM quest_money_reward ORDER BY ID DESC" , CONNECTION_SYNCH );
2015-02-22 10:29:12 +01:00
2015-04-13 22:25:35 +02:00
// QuestPackageItem.db2
2018-09-25 21:08:38 +02:00
PrepareStatement ( HOTFIX_SEL_QUEST_PACKAGE_ITEM , "SELECT ID, PackageID, ItemID, ItemQuantity, DisplayType FROM quest_package_item ORDER BY ID DESC" , CONNECTION_SYNCH );
2015-04-13 22:25:35 +02:00
2015-07-07 12:13:14 +02:00
// QuestSort.db2
2018-03-12 18:20:26 +01:00
PrepareStatement ( HOTFIX_SEL_QUEST_SORT , "SELECT ID, SortName, UiOrderIndex FROM quest_sort ORDER BY ID DESC" , CONNECTION_SYNCH );
2015-07-07 12:13:14 +02:00
PREPARE_LOCALE_STMT ( HOTFIX_SEL_QUEST_SORT , "SELECT ID, SortName_lang FROM quest_sort_locale WHERE locale = ?" , CONNECTION_SYNCH );
// QuestV2.db2
PrepareStatement ( HOTFIX_SEL_QUEST_V2 , "SELECT ID, UniqueBitFlag FROM quest_v2 ORDER BY ID DESC" , CONNECTION_SYNCH );
2016-05-01 21:46:58 +02:00
// QuestXp.db2
2018-03-12 18:20:26 +01:00
PrepareStatement ( HOTFIX_SEL_QUEST_XP , "SELECT ID, Difficulty1, Difficulty2, Difficulty3, Difficulty4, Difficulty5, Difficulty6, Difficulty7, "
"Difficulty8, Difficulty9, Difficulty10 FROM quest_xp ORDER BY ID DESC" , CONNECTION_SYNCH );
2015-07-07 12:13:14 +02:00
2016-01-24 15:56:10 +01:00
// RandPropPoints.db2
2019-07-14 15:21:32 +02:00
PrepareStatement ( HOTFIX_SEL_RAND_PROP_POINTS , "SELECT ID, DamageReplaceStat, DamageSecondary, Epic1, Epic2, Epic3, Epic4, Epic5, Superior1, "
"Superior2, Superior3, Superior4, Superior5, Good1, Good2, Good3, Good4, Good5 FROM rand_prop_points ORDER BY ID DESC" , CONNECTION_SYNCH );
2016-01-24 15:56:10 +01:00
2017-06-04 16:51:47 +02:00
// RewardPack.db2
2018-09-25 21:08:38 +02:00
PrepareStatement ( HOTFIX_SEL_REWARD_PACK , "SELECT ID, CharTitleID, Money, ArtifactXPDifficulty, ArtifactXPMultiplier, ArtifactXPCategoryID, "
2018-03-12 18:20:26 +01:00
"TreasurePickerID FROM reward_pack ORDER BY ID DESC" , CONNECTION_SYNCH );
2017-06-04 16:51:47 +02:00
2018-04-15 21:25:24 +02:00
// RewardPackXCurrencyType.db2
PrepareStatement ( HOTFIX_SEL_REWARD_PACK_X_CURRENCY_TYPE , "SELECT ID, CurrencyTypeID, Quantity, RewardPackID FROM reward_pack_x_currency_type"
" ORDER BY ID DESC" , CONNECTION_SYNCH );
2017-06-04 16:51:47 +02:00
// RewardPackXItem.db2
2018-03-12 18:20:26 +01:00
PrepareStatement ( HOTFIX_SEL_REWARD_PACK_X_ITEM , "SELECT ID, ItemID, ItemQuantity, RewardPackID FROM reward_pack_x_item ORDER BY ID DESC" , CONNECTION_SYNCH );
2017-06-04 16:51:47 +02:00
2016-06-21 20:33:51 +02:00
// RulesetItemUpgrade.db2
2016-07-06 00:05:13 +02:00
PrepareStatement ( HOTFIX_SEL_RULESET_ITEM_UPGRADE , "SELECT ID, ItemID, ItemUpgradeID FROM ruleset_item_upgrade ORDER BY ID DESC" , CONNECTION_SYNCH );
2016-06-21 20:33:51 +02:00
2015-07-07 12:13:14 +02:00
// ScalingStatDistribution.db2
2018-03-12 18:20:26 +01:00
PrepareStatement ( HOTFIX_SEL_SCALING_STAT_DISTRIBUTION , "SELECT ID, PlayerLevelToItemLevelCurveID, MinLevel, MaxLevel"
" FROM scaling_stat_distribution ORDER BY ID DESC" , CONNECTION_SYNCH );
2016-01-24 15:56:10 +01:00
2016-11-06 23:30:49 +01:00
// Scenario.db2
2018-09-25 21:08:38 +02:00
PrepareStatement ( HOTFIX_SEL_SCENARIO , "SELECT ID, Name, AreaTableID, Type, Flags, UiTextureKitID FROM scenario ORDER BY ID DESC" , CONNECTION_SYNCH );
2016-11-06 23:30:49 +01:00
PREPARE_LOCALE_STMT ( HOTFIX_SEL_SCENARIO , "SELECT ID, Name_lang FROM scenario_locale WHERE locale = ?" , CONNECTION_SYNCH );
// ScenarioStep.db2
2018-09-25 21:08:38 +02:00
PrepareStatement ( HOTFIX_SEL_SCENARIO_STEP , "SELECT ID, Description, Title, ScenarioID, Criteriatreeid, RewardQuestID, RelatedStep, Supersedes, "
"OrderIndex, Flags, VisibilityPlayerConditionID, WidgetSetID FROM scenario_step ORDER BY ID DESC" , CONNECTION_SYNCH );
2018-03-12 18:20:26 +01:00
PREPARE_LOCALE_STMT ( HOTFIX_SEL_SCENARIO_STEP , "SELECT ID, Description_lang, Title_lang FROM scenario_step_locale WHERE locale = ?" , CONNECTION_SYNCH );
2016-11-06 23:30:49 +01:00
2016-09-25 16:13:12 +02:00
// SceneScript.db2
2018-03-12 18:20:26 +01:00
PrepareStatement ( HOTFIX_SEL_SCENE_SCRIPT , "SELECT ID, FirstSceneScriptID, NextSceneScriptID FROM scene_script ORDER BY ID DESC" , CONNECTION_SYNCH );
2018-02-18 16:32:03 +01:00
// SceneScriptGlobalText.db2
PrepareStatement ( HOTFIX_SEL_SCENE_SCRIPT_GLOBAL_TEXT , "SELECT ID, Name, Script FROM scene_script_global_text ORDER BY ID DESC" , CONNECTION_SYNCH );
2016-09-25 16:13:12 +02:00
// SceneScriptPackage.db2
PrepareStatement ( HOTFIX_SEL_SCENE_SCRIPT_PACKAGE , "SELECT ID, Name FROM scene_script_package ORDER BY ID DESC" , CONNECTION_SYNCH );
2018-02-18 16:32:03 +01:00
// SceneScriptText.db2
PrepareStatement ( HOTFIX_SEL_SCENE_SCRIPT_TEXT , "SELECT ID, Name, Script FROM scene_script_text ORDER BY ID DESC" , CONNECTION_SYNCH );
2016-01-24 15:56:10 +01:00
// SkillLine.db2
2018-09-25 21:08:38 +02:00
PrepareStatement ( HOTFIX_SEL_SKILL_LINE , "SELECT DisplayName, AlternateVerb, Description, HordeDisplayName, OverrideSourceInfoDisplayName, ID, "
"CategoryID, SpellIconFileID, CanLink, ParentSkillLineID, ParentTierIndex, Flags, SpellBookSpellID FROM skill_line ORDER BY ID DESC" , CONNECTION_SYNCH );
PREPARE_LOCALE_STMT ( HOTFIX_SEL_SKILL_LINE , "SELECT ID, DisplayName_lang, AlternateVerb_lang, Description_lang, HordeDisplayName_lang"
" FROM skill_line_locale WHERE locale = ?" , CONNECTION_SYNCH );
2016-01-24 15:56:10 +01:00
// SkillLineAbility.db2
2018-09-25 21:08:38 +02:00
PrepareStatement ( HOTFIX_SEL_SKILL_LINE_ABILITY , "SELECT RaceMask, ID, SkillLine, Spell, MinSkillLineRank, ClassMask, SupercedesSpell, "
"AcquireMethod, TrivialSkillLineRankHigh, TrivialSkillLineRankLow, Flags, NumSkillUps, UniqueBit, TradeSkillCategoryID, SkillupSkillLineID"
2016-05-27 23:13:47 +02:00
" FROM skill_line_ability ORDER BY ID DESC" , CONNECTION_SYNCH );
2015-07-07 12:13:14 +02:00
2016-01-24 15:56:10 +01:00
// SkillRaceClassInfo.db2
2018-09-25 21:08:38 +02:00
PrepareStatement ( HOTFIX_SEL_SKILL_RACE_CLASS_INFO , "SELECT ID, RaceMask, SkillID, ClassMask, Flags, Availability, MinLevel, SkillTierID"
2016-01-24 15:56:10 +01:00
" FROM skill_race_class_info ORDER BY ID DESC" , CONNECTION_SYNCH );
// SoundKit.db2
2018-09-25 21:08:38 +02:00
PrepareStatement ( HOTFIX_SEL_SOUND_KIT , "SELECT ID, SoundType, VolumeFloat, Flags, MinDistance, DistanceCutoff, EAXDef, SoundKitAdvancedID, "
"VolumeVariationPlus, VolumeVariationMinus, PitchVariationPlus, PitchVariationMinus, DialogType, PitchAdjust, BusOverwriteID, MaxInstances"
" FROM sound_kit ORDER BY ID DESC" , CONNECTION_SYNCH );
2015-03-04 12:17:06 +01:00
2015-07-07 12:13:14 +02:00
// SpecializationSpells.db2
2018-09-25 21:08:38 +02:00
PrepareStatement ( HOTFIX_SEL_SPECIALIZATION_SPELLS , "SELECT Description, ID, SpecID, SpellID, OverridesSpellID, DisplayOrder"
2015-07-07 12:13:14 +02:00
" FROM specialization_spells ORDER BY ID DESC" , CONNECTION_SYNCH );
PREPARE_LOCALE_STMT ( HOTFIX_SEL_SPECIALIZATION_SPELLS , "SELECT ID, Description_lang FROM specialization_spells_locale WHERE locale = ?" , CONNECTION_SYNCH );
2016-01-24 15:56:10 +01:00
// SpellAuraOptions.db2
2018-09-25 21:08:38 +02:00
PrepareStatement ( HOTFIX_SEL_SPELL_AURA_OPTIONS , "SELECT ID, DifficultyID, CumulativeAura, ProcCategoryRecovery, ProcChance, ProcCharges, "
"SpellProcsPerMinuteID, ProcTypeMask1, ProcTypeMask2, SpellID FROM spell_aura_options ORDER BY ID DESC" , CONNECTION_SYNCH );
2016-01-24 15:56:10 +01:00
// SpellAuraRestrictions.db2
2018-09-25 21:08:38 +02:00
PrepareStatement ( HOTFIX_SEL_SPELL_AURA_RESTRICTIONS , "SELECT ID, DifficultyID, CasterAuraState, TargetAuraState, ExcludeCasterAuraState, "
"ExcludeTargetAuraState, CasterAuraSpell, TargetAuraSpell, ExcludeCasterAuraSpell, ExcludeTargetAuraSpell, SpellID"
2016-01-24 15:56:10 +01:00
" FROM spell_aura_restrictions ORDER BY ID DESC" , CONNECTION_SYNCH );
2015-07-07 12:13:14 +02:00
// SpellCastTimes.db2
2018-09-25 21:08:38 +02:00
PrepareStatement ( HOTFIX_SEL_SPELL_CAST_TIMES , "SELECT ID, Base, PerLevel, Minimum FROM spell_cast_times ORDER BY ID DESC" , CONNECTION_SYNCH );
2016-01-24 15:56:10 +01:00
// SpellCastingRequirements.db2
2018-09-25 21:08:38 +02:00
PrepareStatement ( HOTFIX_SEL_SPELL_CASTING_REQUIREMENTS , "SELECT ID, SpellID, FacingCasterFlags, MinFactionID, MinReputation, RequiredAreasID, "
"RequiredAuraVision, RequiresSpellFocus FROM spell_casting_requirements ORDER BY ID DESC" , CONNECTION_SYNCH );
2016-01-24 15:56:10 +01:00
// SpellCategories.db2
2018-09-25 21:08:38 +02:00
PrepareStatement ( HOTFIX_SEL_SPELL_CATEGORIES , "SELECT ID, DifficultyID, Category, DefenseType, DispelType, Mechanic, PreventionType, "
"StartRecoveryCategory, ChargeCategory, SpellID FROM spell_categories ORDER BY ID DESC" , CONNECTION_SYNCH );
2016-01-24 15:56:10 +01:00
// SpellCategory.db2
2018-09-25 21:08:38 +02:00
PrepareStatement ( HOTFIX_SEL_SPELL_CATEGORY , "SELECT ID, Name, Flags, UsesPerWeek, MaxCharges, ChargeRecoveryTime, TypeMask FROM spell_category"
2018-03-12 18:20:26 +01:00
" ORDER BY ID DESC" , CONNECTION_SYNCH );
2016-01-24 15:56:10 +01:00
PREPARE_LOCALE_STMT ( HOTFIX_SEL_SPELL_CATEGORY , "SELECT ID, Name_lang FROM spell_category_locale WHERE locale = ?" , CONNECTION_SYNCH );
2015-02-22 10:29:12 +01:00
// SpellClassOptions.db2
2018-09-25 21:08:38 +02:00
PrepareStatement ( HOTFIX_SEL_SPELL_CLASS_OPTIONS , "SELECT ID, SpellID, ModalNextSpell, SpellClassSet, SpellClassMask1, SpellClassMask2, "
"SpellClassMask3, SpellClassMask4 FROM spell_class_options ORDER BY ID DESC" , CONNECTION_SYNCH );
2016-01-24 15:56:10 +01:00
// SpellCooldowns.db2
2018-09-25 21:08:38 +02:00
PrepareStatement ( HOTFIX_SEL_SPELL_COOLDOWNS , "SELECT ID, DifficultyID, CategoryRecoveryTime, RecoveryTime, StartRecoveryTime, SpellID"
2016-01-24 15:56:10 +01:00
" FROM spell_cooldowns ORDER BY ID DESC" , CONNECTION_SYNCH );
2015-02-22 10:29:12 +01:00
2015-07-07 12:13:14 +02:00
// SpellDuration.db2
2018-09-25 21:08:38 +02:00
PrepareStatement ( HOTFIX_SEL_SPELL_DURATION , "SELECT ID, Duration, DurationPerLevel, MaxDuration FROM spell_duration ORDER BY ID DESC" , CONNECTION_SYNCH );
2016-01-24 15:56:10 +01:00
// SpellEffect.db2
2018-09-25 21:08:38 +02:00
PrepareStatement ( HOTFIX_SEL_SPELL_EFFECT , "SELECT ID, DifficultyID, EffectIndex, Effect, EffectAmplitude, EffectAttributes, EffectAura, "
"EffectAuraPeriod, EffectBonusCoefficient, EffectChainAmplitude, EffectChainTargets, EffectItemType, EffectMechanic, EffectPointsPerResource, "
"EffectPosFacing, EffectRealPointsPerLevel, EffectTriggerSpell, BonusCoefficientFromAP, PvpMultiplier, Coefficient, Variance, "
"ResourceCoefficient, GroupSizeBasePointsCoefficient, EffectBasePoints, EffectMiscValue1, EffectMiscValue2, EffectRadiusIndex1, "
"EffectRadiusIndex2, EffectSpellClassMask1, EffectSpellClassMask2, EffectSpellClassMask3, EffectSpellClassMask4, ImplicitTarget1, "
2018-02-18 16:32:03 +01:00
"ImplicitTarget2, SpellID FROM spell_effect ORDER BY ID DESC" , CONNECTION_SYNCH );
2016-01-24 15:56:10 +01:00
// SpellEquippedItems.db2
2018-09-25 21:08:38 +02:00
PrepareStatement ( HOTFIX_SEL_SPELL_EQUIPPED_ITEMS , "SELECT ID, SpellID, EquippedItemClass, EquippedItemInvTypes, EquippedItemSubclass"
2018-03-12 18:20:26 +01:00
" FROM spell_equipped_items ORDER BY ID DESC" , CONNECTION_SYNCH );
2016-01-24 15:56:10 +01:00
// SpellFocusObject.db2
PrepareStatement ( HOTFIX_SEL_SPELL_FOCUS_OBJECT , "SELECT ID, Name FROM spell_focus_object ORDER BY ID DESC" , CONNECTION_SYNCH );
PREPARE_LOCALE_STMT ( HOTFIX_SEL_SPELL_FOCUS_OBJECT , "SELECT ID, Name_lang FROM spell_focus_object_locale WHERE locale = ?" , CONNECTION_SYNCH );
// SpellInterrupts.db2
2018-02-18 16:32:03 +01:00
PrepareStatement ( HOTFIX_SEL_SPELL_INTERRUPTS , "SELECT ID, DifficultyID, InterruptFlags, AuraInterruptFlags1, AuraInterruptFlags2, "
"ChannelInterruptFlags1, ChannelInterruptFlags2, SpellID FROM spell_interrupts ORDER BY ID DESC" , CONNECTION_SYNCH );
2015-07-07 12:13:14 +02:00
2016-04-25 22:03:34 +02:00
// SpellItemEnchantment.db2
2018-09-25 21:08:38 +02:00
PrepareStatement ( HOTFIX_SEL_SPELL_ITEM_ENCHANTMENT , "SELECT ID, Name, HordeName, EffectArg1, EffectArg2, EffectArg3, EffectScalingPoints1, "
2019-06-18 19:33:29 +02:00
"EffectScalingPoints2, EffectScalingPoints3, TransmogPlayerConditionID, TransmogCost, IconFileDataID, EffectPointsMin1, EffectPointsMin2, "
2018-09-25 21:08:38 +02:00
"EffectPointsMin3, ItemVisual, Flags, RequiredSkillID, RequiredSkillRank, ItemLevel, Charges, Effect1, Effect2, Effect3, ScalingClass, "
"ScalingClassRestricted, ConditionID, MinLevel, MaxLevel FROM spell_item_enchantment ORDER BY ID DESC" , CONNECTION_SYNCH );
PREPARE_LOCALE_STMT ( HOTFIX_SEL_SPELL_ITEM_ENCHANTMENT , "SELECT ID, Name_lang, HordeName_lang FROM spell_item_enchantment_locale WHERE locale = ?" , CONNECTION_SYNCH );
2016-04-25 22:03:34 +02:00
2015-07-07 12:13:14 +02:00
// SpellItemEnchantmentCondition.db2
2018-09-25 21:08:38 +02:00
PrepareStatement ( HOTFIX_SEL_SPELL_ITEM_ENCHANTMENT_CONDITION , "SELECT ID, LtOperandType1, LtOperandType2, LtOperandType3, LtOperandType4, "
"LtOperandType5, LtOperand1, LtOperand2, LtOperand3, LtOperand4, LtOperand5, Operator1, Operator2, Operator3, Operator4, Operator5, "
2018-03-12 18:20:26 +01:00
"RtOperandType1, RtOperandType2, RtOperandType3, RtOperandType4, RtOperandType5, RtOperand1, RtOperand2, RtOperand3, RtOperand4, RtOperand5, "
2018-02-18 16:32:03 +01:00
"Logic1, Logic2, Logic3, Logic4, Logic5 FROM spell_item_enchantment_condition ORDER BY ID DESC" , CONNECTION_SYNCH );
2015-07-07 12:13:14 +02:00
2015-02-22 10:29:12 +01:00
// SpellLearnSpell.db2
2018-03-12 18:20:26 +01:00
PrepareStatement ( HOTFIX_SEL_SPELL_LEARN_SPELL , "SELECT ID, SpellID, LearnSpellID, OverridesSpellID FROM spell_learn_spell ORDER BY ID DESC" , CONNECTION_SYNCH );
2015-02-22 10:29:12 +01:00
2016-01-24 15:56:10 +01:00
// SpellLevels.db2
2018-09-25 21:08:38 +02:00
PrepareStatement ( HOTFIX_SEL_SPELL_LEVELS , "SELECT ID, DifficultyID, BaseLevel, MaxLevel, SpellLevel, MaxPassiveAuraLevel, SpellID"
2018-03-12 18:20:26 +01:00
" FROM spell_levels ORDER BY ID DESC" , CONNECTION_SYNCH );
2016-01-24 15:56:10 +01:00
2015-02-22 10:29:12 +01:00
// SpellMisc.db2
2018-09-25 21:08:38 +02:00
PrepareStatement ( HOTFIX_SEL_SPELL_MISC , "SELECT ID, DifficultyID, CastingTimeIndex, DurationIndex, RangeIndex, SchoolMask, Speed, LaunchDelay, "
2019-07-14 15:21:32 +02:00
"MinDuration, SpellIconFileDataID, ActiveIconFileDataID, ContentTuningID, Attributes1, Attributes2, Attributes3, Attributes4, Attributes5, "
"Attributes6, Attributes7, Attributes8, Attributes9, Attributes10, Attributes11, Attributes12, Attributes13, Attributes14, SpellID"
" FROM spell_misc ORDER BY ID DESC" , CONNECTION_SYNCH );
2018-09-25 21:08:38 +02:00
// SpellName.db2
PrepareStatement ( HOTFIX_SEL_SPELL_NAME , "SELECT ID, Name FROM spell_name ORDER BY ID DESC" , CONNECTION_SYNCH );
PREPARE_LOCALE_STMT ( HOTFIX_SEL_SPELL_NAME , "SELECT ID, Name_lang FROM spell_name_locale WHERE locale = ?" , CONNECTION_SYNCH );
2015-02-22 10:29:12 +01:00
2015-03-08 13:31:57 +01:00
// SpellPower.db2
2018-09-25 21:08:38 +02:00
PrepareStatement ( HOTFIX_SEL_SPELL_POWER , "SELECT ID, OrderIndex, ManaCost, ManaCostPerLevel, ManaPerSecond, PowerDisplayID, AltPowerBarID, "
"PowerCostPct, PowerCostMaxPct, PowerPctPerSecond, PowerType, RequiredAuraSpellID, OptionalCost, SpellID FROM spell_power ORDER BY ID DESC" , CONNECTION_SYNCH );
2015-02-22 10:29:12 +01:00
2015-03-08 13:31:57 +01:00
// SpellPowerDifficulty.db2
2018-09-25 21:08:38 +02:00
PrepareStatement ( HOTFIX_SEL_SPELL_POWER_DIFFICULTY , "SELECT ID, DifficultyID, OrderIndex FROM spell_power_difficulty ORDER BY ID DESC" , CONNECTION_SYNCH );
2015-07-07 12:13:14 +02:00
2016-05-02 18:52:15 +02:00
// SpellProcsPerMinute.db2
PrepareStatement ( HOTFIX_SEL_SPELL_PROCS_PER_MINUTE , "SELECT ID, BaseProcRate, Flags FROM spell_procs_per_minute ORDER BY ID DESC" , CONNECTION_SYNCH );
// SpellProcsPerMinuteMod.db2
2018-09-25 21:08:38 +02:00
PrepareStatement ( HOTFIX_SEL_SPELL_PROCS_PER_MINUTE_MOD , "SELECT ID, Type, Param, Coeff, SpellProcsPerMinuteID FROM spell_procs_per_minute_mod"
2016-05-02 18:52:15 +02:00
" ORDER BY ID DESC" , CONNECTION_SYNCH );
2015-07-07 12:13:14 +02:00
// SpellRadius.db2
PrepareStatement ( HOTFIX_SEL_SPELL_RADIUS , "SELECT ID, Radius, RadiusPerLevel, RadiusMin, RadiusMax FROM spell_radius ORDER BY ID DESC" , CONNECTION_SYNCH );
// SpellRange.db2
2018-09-25 21:08:38 +02:00
PrepareStatement ( HOTFIX_SEL_SPELL_RANGE , "SELECT ID, DisplayName, DisplayNameShort, Flags, RangeMin1, RangeMin2, RangeMax1, RangeMax2"
2018-03-12 18:20:26 +01:00
" FROM spell_range ORDER BY ID DESC" , CONNECTION_SYNCH );
2015-07-07 12:13:14 +02:00
PREPARE_LOCALE_STMT ( HOTFIX_SEL_SPELL_RANGE , "SELECT ID, DisplayName_lang, DisplayNameShort_lang FROM spell_range_locale WHERE locale = ?" , CONNECTION_SYNCH );
2015-03-08 13:31:57 +01:00
2015-02-22 10:29:12 +01:00
// SpellReagents.db2
2016-01-24 15:56:10 +01:00
PrepareStatement ( HOTFIX_SEL_SPELL_REAGENTS , "SELECT ID, SpellID, Reagent1, Reagent2, Reagent3, Reagent4, Reagent5, Reagent6, Reagent7, Reagent8, "
2016-05-01 21:46:58 +02:00
"ReagentCount1, ReagentCount2, ReagentCount3, ReagentCount4, ReagentCount5, ReagentCount6, ReagentCount7, ReagentCount8 FROM spell_reagents"
" ORDER BY ID DESC" , CONNECTION_SYNCH );
2015-02-22 10:29:12 +01:00
2016-01-24 15:56:10 +01:00
// SpellScaling.db2
2018-09-25 21:08:38 +02:00
PrepareStatement ( HOTFIX_SEL_SPELL_SCALING , "SELECT ID, SpellID, Class, MinScalingLevel, MaxScalingLevel, ScalesFromItemLevel FROM spell_scaling"
2018-03-12 18:20:26 +01:00
" ORDER BY ID DESC" , CONNECTION_SYNCH );
2015-02-22 10:29:12 +01:00
2016-01-24 15:56:10 +01:00
// SpellShapeshift.db2
2018-09-25 21:08:38 +02:00
PrepareStatement ( HOTFIX_SEL_SPELL_SHAPESHIFT , "SELECT ID, SpellID, StanceBarOrder, ShapeshiftExclude1, ShapeshiftExclude2, ShapeshiftMask1, "
"ShapeshiftMask2 FROM spell_shapeshift ORDER BY ID DESC" , CONNECTION_SYNCH );
2016-01-24 15:56:10 +01:00
// SpellShapeshiftForm.db2
2018-09-25 21:08:38 +02:00
PrepareStatement ( HOTFIX_SEL_SPELL_SHAPESHIFT_FORM , "SELECT ID, Name, CreatureType, Flags, AttackIconFileID, BonusActionBar, CombatRoundTime, "
"DamageVariance, MountTypeID, CreatureDisplayID1, CreatureDisplayID2, CreatureDisplayID3, CreatureDisplayID4, PresetSpellID1, PresetSpellID2, "
"PresetSpellID3, PresetSpellID4, PresetSpellID5, PresetSpellID6, PresetSpellID7, PresetSpellID8 FROM spell_shapeshift_form ORDER BY ID DESC" , CONNECTION_SYNCH );
2016-01-24 15:56:10 +01:00
PREPARE_LOCALE_STMT ( HOTFIX_SEL_SPELL_SHAPESHIFT_FORM , "SELECT ID, Name_lang FROM spell_shapeshift_form_locale WHERE locale = ?" , CONNECTION_SYNCH );
// SpellTargetRestrictions.db2
2018-09-25 21:08:38 +02:00
PrepareStatement ( HOTFIX_SEL_SPELL_TARGET_RESTRICTIONS , "SELECT ID, DifficultyID, ConeDegrees, MaxTargets, MaxTargetLevel, TargetCreatureType, "
"Targets, Width, SpellID FROM spell_target_restrictions ORDER BY ID DESC" , CONNECTION_SYNCH );
2016-01-24 15:56:10 +01:00
2015-02-22 10:29:12 +01:00
// SpellTotems.db2
2018-09-25 21:08:38 +02:00
PrepareStatement ( HOTFIX_SEL_SPELL_TOTEMS , "SELECT ID, SpellID, RequiredTotemCategoryID1, RequiredTotemCategoryID2, Totem1, Totem2"
2016-01-24 15:56:10 +01:00
" FROM spell_totems ORDER BY ID DESC" , CONNECTION_SYNCH );
2015-07-07 12:13:14 +02:00
// SpellXSpellVisual.db2
2018-09-25 21:08:38 +02:00
PrepareStatement ( HOTFIX_SEL_SPELL_X_SPELL_VISUAL , "SELECT ID, DifficultyID, SpellVisualID, Probability, Flags, Priority, SpellIconFileID, "
"ActiveIconFileID, ViewerUnitConditionID, ViewerPlayerConditionID, CasterUnitConditionID, CasterPlayerConditionID, SpellID"
2018-03-12 18:20:26 +01:00
" FROM spell_x_spell_visual ORDER BY ID DESC" , CONNECTION_SYNCH );
2015-02-22 10:29:12 +01:00
2016-01-31 19:25:51 +01:00
// SummonProperties.db2
2018-09-25 21:08:38 +02:00
PrepareStatement ( HOTFIX_SEL_SUMMON_PROPERTIES , "SELECT ID, Control, Faction, Title, Slot, Flags FROM summon_properties ORDER BY ID DESC" , CONNECTION_SYNCH );
2016-01-31 19:25:51 +01:00
2016-08-28 00:27:16 +02:00
// TactKey.db2
2016-09-20 23:09:10 +02:00
PrepareStatement ( HOTFIX_SEL_TACT_KEY , "SELECT ID, Key1, Key2, Key3, Key4, Key5, Key6, Key7, Key8, Key9, Key10, Key11, Key12, Key13, Key14, Key15, "
"Key16 FROM tact_key ORDER BY ID DESC" , CONNECTION_SYNCH );
2016-08-28 00:27:16 +02:00
2016-04-25 22:03:34 +02:00
// Talent.db2
2018-09-25 21:08:38 +02:00
PrepareStatement ( HOTFIX_SEL_TALENT , "SELECT ID, Description, TierID, Flags, ColumnIndex, ClassID, SpecID, SpellID, OverridesSpellID, "
"CategoryMask1, CategoryMask2 FROM talent ORDER BY ID DESC" , CONNECTION_SYNCH );
2016-04-25 22:03:34 +02:00
PREPARE_LOCALE_STMT ( HOTFIX_SEL_TALENT , "SELECT ID, Description_lang FROM talent_locale WHERE locale = ?" , CONNECTION_SYNCH );
2015-02-22 10:29:12 +01:00
// TaxiNodes.db2
2018-09-25 21:08:38 +02:00
PrepareStatement ( HOTFIX_SEL_TAXI_NODES , "SELECT Name, PosX, PosY, PosZ, MapOffsetX, MapOffsetY, FlightMapOffsetX, FlightMapOffsetY, ID, "
2019-06-08 13:19:48 +02:00
"ContinentID, ConditionID, CharacterBitNumber, Flags, UiTextureKitID, MinimapAtlasMemberID, Facing, SpecialIconConditionID, "
"VisibilityConditionID, MountCreatureID1, MountCreatureID2 FROM taxi_nodes ORDER BY ID DESC" , CONNECTION_SYNCH );
2015-02-22 10:29:12 +01:00
PREPARE_LOCALE_STMT ( HOTFIX_SEL_TAXI_NODES , "SELECT ID, Name_lang FROM taxi_nodes_locale WHERE locale = ?" , CONNECTION_SYNCH );
// TaxiPath.db2
2018-09-25 21:08:38 +02:00
PrepareStatement ( HOTFIX_SEL_TAXI_PATH , "SELECT ID, FromTaxiNode, ToTaxiNode, Cost FROM taxi_path ORDER BY ID DESC" , CONNECTION_SYNCH );
2015-02-22 10:29:12 +01:00
// TaxiPathNode.db2
2018-09-25 21:08:38 +02:00
PrepareStatement ( HOTFIX_SEL_TAXI_PATH_NODE , "SELECT LocX, LocY, LocZ, ID, PathID, NodeIndex, ContinentID, Flags, Delay, ArrivalEventID, "
2017-11-18 20:12:12 +01:00
"DepartureEventID FROM taxi_path_node ORDER BY ID DESC" , CONNECTION_SYNCH );
2015-07-07 12:13:14 +02:00
// TotemCategory.db2
2018-09-25 21:08:38 +02:00
PrepareStatement ( HOTFIX_SEL_TOTEM_CATEGORY , "SELECT ID, Name, TotemCategoryType, TotemCategoryMask FROM totem_category ORDER BY ID DESC" , CONNECTION_SYNCH );
2015-07-07 12:13:14 +02:00
PREPARE_LOCALE_STMT ( HOTFIX_SEL_TOTEM_CATEGORY , "SELECT ID, Name_lang FROM totem_category_locale WHERE locale = ?" , CONNECTION_SYNCH );
2015-08-26 11:12:35 +02:00
// Toy.db2
2018-09-25 21:08:38 +02:00
PrepareStatement ( HOTFIX_SEL_TOY , "SELECT SourceText, ID, ItemID, Flags, SourceTypeEnum FROM toy ORDER BY ID DESC" , CONNECTION_SYNCH );
2018-03-12 18:20:26 +01:00
PREPARE_LOCALE_STMT ( HOTFIX_SEL_TOY , "SELECT ID, SourceText_lang FROM toy_locale WHERE locale = ?" , CONNECTION_SYNCH );
2015-08-26 11:12:35 +02:00
2017-08-24 20:39:22 +02:00
// TransmogHoliday.db2
2018-03-12 18:20:26 +01:00
PrepareStatement ( HOTFIX_SEL_TRANSMOG_HOLIDAY , "SELECT ID, RequiredTransmogHoliday FROM transmog_holiday ORDER BY ID DESC" , CONNECTION_SYNCH );
2017-08-24 20:39:22 +02:00
// TransmogSet.db2
2018-09-25 21:08:38 +02:00
PrepareStatement ( HOTFIX_SEL_TRANSMOG_SET , "SELECT Name, ID, ClassMask, TrackingQuestID, Flags, TransmogSetGroupID, ItemNameDescriptionID, "
2019-06-08 13:19:48 +02:00
"ParentTransmogSetID, Unknown810, ExpansionID, PatchID, UiOrder FROM transmog_set ORDER BY ID DESC" , CONNECTION_SYNCH );
2017-08-24 20:39:22 +02:00
PREPARE_LOCALE_STMT ( HOTFIX_SEL_TRANSMOG_SET , "SELECT ID, Name_lang FROM transmog_set_locale WHERE locale = ?" , CONNECTION_SYNCH );
// TransmogSetGroup.db2
2018-03-12 18:20:26 +01:00
PrepareStatement ( HOTFIX_SEL_TRANSMOG_SET_GROUP , "SELECT Name, ID FROM transmog_set_group ORDER BY ID DESC" , CONNECTION_SYNCH );
PREPARE_LOCALE_STMT ( HOTFIX_SEL_TRANSMOG_SET_GROUP , "SELECT ID, Name_lang FROM transmog_set_group_locale WHERE locale = ?" , CONNECTION_SYNCH );
2017-08-24 20:39:22 +02:00
// TransmogSetItem.db2
PrepareStatement ( HOTFIX_SEL_TRANSMOG_SET_ITEM , "SELECT ID, TransmogSetID, ItemModifiedAppearanceID, Flags FROM transmog_set_item ORDER BY ID DESC" , CONNECTION_SYNCH );
2015-07-07 12:13:14 +02:00
// TransportAnimation.db2
2018-09-25 21:08:38 +02:00
PrepareStatement ( HOTFIX_SEL_TRANSPORT_ANIMATION , "SELECT ID, PosX, PosY, PosZ, SequenceID, TimeIndex, TransportID FROM transport_animation"
2015-07-07 12:13:14 +02:00
" ORDER BY ID DESC" , CONNECTION_SYNCH );
// TransportRotation.db2
2018-09-25 21:08:38 +02:00
PrepareStatement ( HOTFIX_SEL_TRANSPORT_ROTATION , "SELECT ID, Rot1, Rot2, Rot3, Rot4, TimeIndex, GameObjectsID FROM transport_rotation"
" ORDER BY ID DESC" , CONNECTION_SYNCH );
// UiMap.db2
PrepareStatement ( HOTFIX_SEL_UI_MAP , "SELECT Name, ID, ParentUiMapID, Flags, System, Type, LevelRangeMin, LevelRangeMax, BountySetID, "
"BountyDisplayLocation, VisibilityPlayerConditionID, HelpTextPosition, BkgAtlasID FROM ui_map ORDER BY ID DESC" , CONNECTION_SYNCH );
PREPARE_LOCALE_STMT ( HOTFIX_SEL_UI_MAP , "SELECT ID, Name_lang FROM ui_map_locale WHERE locale = ?" , CONNECTION_SYNCH );
// UiMapAssignment.db2
PrepareStatement ( HOTFIX_SEL_UI_MAP_ASSIGNMENT , "SELECT UiMinX, UiMinY, UiMaxX, UiMaxY, Region1X, Region1Y, Region1Z, Region2X, Region2Y, "
"Region2Z, ID, UiMapID, OrderIndex, MapID, AreaID, WmoDoodadPlacementID, WmoGroupID FROM ui_map_assignment ORDER BY ID DESC" , CONNECTION_SYNCH );
// UiMapLink.db2
2019-07-14 15:21:32 +02:00
PrepareStatement ( HOTFIX_SEL_UI_MAP_LINK , "SELECT UiMinX, UiMinY, UiMaxX, UiMaxY, ID, ParentUiMapID, OrderIndex, ChildUiMapID, "
"OverrideHighlightFileDataID, OverrideHighlightAtlasID FROM ui_map_link ORDER BY ID DESC" , CONNECTION_SYNCH );
2015-07-07 12:13:14 +02:00
2018-09-25 21:08:38 +02:00
// UiMapXMapArt.db2
PrepareStatement ( HOTFIX_SEL_UI_MAP_X_MAP_ART , "SELECT ID, PhaseID, UiMapArtID, UiMapID FROM ui_map_x_map_art ORDER BY ID DESC" , CONNECTION_SYNCH );
2015-07-07 12:13:14 +02:00
// UnitPowerBar.db2
2018-09-25 21:08:38 +02:00
PrepareStatement ( HOTFIX_SEL_UNIT_POWER_BAR , "SELECT ID, Name, Cost, OutOfError, ToolTip, MinPower, MaxPower, StartPower, CenterPower, "
"RegenerationPeace, RegenerationCombat, BarType, Flags, StartInset, EndInset, FileDataID1, FileDataID2, FileDataID3, FileDataID4, "
"FileDataID5, FileDataID6, Color1, Color2, Color3, Color4, Color5, Color6 FROM unit_power_bar ORDER BY ID DESC" , CONNECTION_SYNCH );
2015-07-07 12:13:14 +02:00
PREPARE_LOCALE_STMT ( HOTFIX_SEL_UNIT_POWER_BAR , "SELECT ID, Name_lang, Cost_lang, OutOfError_lang, ToolTip_lang FROM unit_power_bar_locale"
" WHERE locale = ?" , CONNECTION_SYNCH );
2016-04-25 22:03:34 +02:00
// Vehicle.db2
2018-09-25 21:08:38 +02:00
PrepareStatement ( HOTFIX_SEL_VEHICLE , "SELECT ID, Flags, FlagsB, TurnSpeed, PitchSpeed, PitchMin, PitchMax, MouseLookOffsetPitch, "
"CameraFadeDistScalarMin, CameraFadeDistScalarMax, CameraPitchOffset, FacingLimitRight, FacingLimitLeft, CameraYawOffset, UiLocomotionType, "
"VehicleUIIndicatorID, MissileTargetingID, SeatID1, SeatID2, SeatID3, SeatID4, SeatID5, SeatID6, SeatID7, SeatID8, PowerDisplayID1, "
"PowerDisplayID2, PowerDisplayID3 FROM vehicle ORDER BY ID DESC" , CONNECTION_SYNCH );
2016-04-25 22:03:34 +02:00
2016-01-31 19:25:51 +01:00
// VehicleSeat.db2
2018-09-25 21:08:38 +02:00
PrepareStatement ( HOTFIX_SEL_VEHICLE_SEAT , "SELECT ID, AttachmentOffsetX, AttachmentOffsetY, AttachmentOffsetZ, CameraOffsetX, CameraOffsetY, "
"CameraOffsetZ, Flags, FlagsB, FlagsC, AttachmentID, EnterPreDelay, EnterSpeed, EnterGravity, EnterMinDuration, EnterMaxDuration, "
"EnterMinArcHeight, EnterMaxArcHeight, EnterAnimStart, EnterAnimLoop, RideAnimStart, RideAnimLoop, RideUpperAnimStart, RideUpperAnimLoop, "
"ExitPreDelay, ExitSpeed, ExitGravity, ExitMinDuration, ExitMaxDuration, ExitMinArcHeight, ExitMaxArcHeight, ExitAnimStart, ExitAnimLoop, "
"ExitAnimEnd, VehicleEnterAnim, VehicleEnterAnimBone, VehicleExitAnim, VehicleExitAnimBone, VehicleRideAnimLoop, VehicleRideAnimLoopBone, "
"PassengerAttachmentID, PassengerYaw, PassengerPitch, PassengerRoll, VehicleEnterAnimDelay, VehicleExitAnimDelay, VehicleAbilityDisplay, "
"EnterUISoundID, ExitUISoundID, UiSkinFileDataID, CameraEnteringDelay, CameraEnteringDuration, CameraExitingDelay, CameraExitingDuration, "
"CameraPosChaseRate, CameraFacingChaseRate, CameraEnteringZoom, CameraSeatZoomMin, CameraSeatZoomMax, EnterAnimKitID, RideAnimKitID, "
"ExitAnimKitID, VehicleEnterAnimKitID, VehicleRideAnimKitID, VehicleExitAnimKitID, CameraModeID FROM vehicle_seat ORDER BY ID DESC" , CONNECTION_SYNCH );
2016-01-31 19:25:51 +01:00
2016-04-25 22:03:34 +02:00
// WmoAreaTable.db2
2018-09-25 21:08:38 +02:00
PrepareStatement ( HOTFIX_SEL_WMO_AREA_TABLE , "SELECT AreaName, ID, WmoID, NameSetID, WmoGroupID, SoundProviderPref, SoundProviderPrefUnderwater, "
"AmbienceID, UwAmbience, ZoneMusic, UwZoneMusic, IntroSound, UwIntroSound, AreaTableID, Flags FROM wmo_area_table ORDER BY ID DESC" , CONNECTION_SYNCH );
2016-04-25 22:03:34 +02:00
PREPARE_LOCALE_STMT ( HOTFIX_SEL_WMO_AREA_TABLE , "SELECT ID, AreaName_lang FROM wmo_area_table_locale WHERE locale = ?" , CONNECTION_SYNCH );
2017-11-05 20:24:45 +01:00
// WorldEffect.db2
2018-09-25 21:08:38 +02:00
PrepareStatement ( HOTFIX_SEL_WORLD_EFFECT , "SELECT ID, QuestFeedbackEffectID, WhenToDisplay, TargetType, TargetAsset, PlayerConditionID, "
"CombatConditionID FROM world_effect ORDER BY ID DESC" , CONNECTION_SYNCH );
2016-04-25 22:03:34 +02:00
2015-07-07 12:13:14 +02:00
// WorldMapOverlay.db2
2018-09-25 21:08:38 +02:00
PrepareStatement ( HOTFIX_SEL_WORLD_MAP_OVERLAY , "SELECT ID, UiMapArtID, TextureWidth, TextureHeight, OffsetX, OffsetY, HitRectTop, HitRectBottom, "
"HitRectLeft, HitRectRight, PlayerConditionID, Flags, AreaID1, AreaID2, AreaID3, AreaID4 FROM world_map_overlay ORDER BY ID DESC" , CONNECTION_SYNCH );
2016-04-25 22:03:34 +02:00
// WorldSafeLocs.db2
2018-09-25 21:08:38 +02:00
PrepareStatement ( HOTFIX_SEL_WORLD_SAFE_LOCS , "SELECT ID, AreaName, LocX, LocY, LocZ, MapID, Facing FROM world_safe_locs ORDER BY ID DESC" , CONNECTION_SYNCH );
2016-04-25 22:03:34 +02:00
PREPARE_LOCALE_STMT ( HOTFIX_SEL_WORLD_SAFE_LOCS , "SELECT ID, AreaName_lang FROM world_safe_locs_locale WHERE locale = ?" , CONNECTION_SYNCH );
2018-10-23 16:20:45 +02:00
// WorldStateExpression.db2
PrepareStatement ( HOTFIX_SEL_WORLD_STATE_EXPRESSION , "SELECT ID, Expression FROM world_state_expression ORDER BY ID DESC" , CONNECTION_SYNCH );
2014-11-11 13:14:36 +00:00
}
2017-05-12 18:49:51 +02:00
HotfixDatabaseConnection :: HotfixDatabaseConnection ( MySQLConnectionInfo & connInfo ) : MySQLConnection ( connInfo )
{
}
HotfixDatabaseConnection :: HotfixDatabaseConnection ( ProducerConsumerQueue < SQLOperation *>* q , MySQLConnectionInfo & connInfo ) : MySQLConnection ( q , connInfo )
{
}
HotfixDatabaseConnection ::~ HotfixDatabaseConnection ()
{
}