Core: Append single character to stream as character, not as a string

This commit is contained in:
Spp- committed 2011-07-29 14:18:28 +02:00
1 parent 06b46ba203
commit e47b96af3e
70 files changed
+432 -424

No files matched your search

+3 -3
View File
@@ -101,7 +101,7 @@ public:
if (!tEntry)
return false;
whereClause << "WHERE id = '" << tEntry << "'";
whereClause << "WHERE id = '" << tEntry << '\'';
}
else
{
@@ -114,11 +114,11 @@ public:
{
std::string name = pParam1;
WorldDatabase.EscapeString(name);
whereClause << ", creature_template WHERE creature.id = creature_template.entry AND creature_template.name "_LIKE_" '" << name << "'";
whereClause << ", creature_template WHERE creature.id = creature_template.entry AND creature_template.name "_LIKE_" '" << name << '\'';
}
else
{
whereClause << "WHERE guid = '" << guid << "'";
whereClause << "WHERE guid = '" << guid << '\'';
}
}
//sLog->outError("DEBUG: %s", whereClause.c_str());
+2 -2
View File
@@ -254,13 +254,13 @@ public:
initString =false;
}
else
eventFilter << ", " << *itr;
eventFilter << ',' << *itr;
}
if (!initString)
eventFilter << "))";
else
eventFilter << ")";
eventFilter << ')';
result = WorldDatabase.PQuery("SELECT gameobject.guid, id, position_x, position_y, position_z, orientation, map, phaseMask, "
"(POW(position_x - %f, 2) + POW(position_y - %f, 2) + POW(position_z - %f, 2)) AS order_ FROM gameobject "