Replace some PQuery/PExecute by more simple Query/Execute

Original patch by hunuza, extended to whole code
Closses issue 1446

--HG--
branch : trunk
This commit is contained in:
Spp committed 2010-04-30 11:21:25 +02:00
1 parent 19bed20036
commit 1bc2a9fd4a
9 files changed
+17 -17

No files matched your search

+2 -2
View File
@@ -823,7 +823,7 @@ void AuctionHouseBot::Initialize()
{
QueryResult_AutoPtr results = QueryResult_AutoPtr(NULL);
char npcQuery[] = "SELECT distinct item FROM npc_vendor";
results = WorldDatabase.PQuery(npcQuery);
results = WorldDatabase.Query(npcQuery);
if (results != NULL)
{
do
@@ -849,7 +849,7 @@ void AuctionHouseBot::Initialize()
"SELECT item FROM prospecting_loot_template UNION "
"SELECT item FROM skinning_loot_template";
results = WorldDatabase.PQuery(lootQuery);
results = WorldDatabase.Query(lootQuery);
if (results != NULL)
{
do