aboutsummaryrefslogtreecommitdiff
path: root/src/server/shared/Database/QueryResult.cpp
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2011-03-08 19:11:02 +0100
committerShauren <shauren.trinity@gmail.com>2011-03-08 19:11:02 +0100
commit9710c41a40a311d363304853b33d0fee3f751383 (patch)
tree8d98282b74329fa225af85b42678d6ffbddb1da7 /src/server/shared/Database/QueryResult.cpp
parentcbbfb52ca766cb3b9e8cb2a6e9cf04f42d356ab1 (diff)
More warning fixes
Diffstat (limited to 'src/server/shared/Database/QueryResult.cpp')
-rwxr-xr-xsrc/server/shared/Database/QueryResult.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/server/shared/Database/QueryResult.cpp b/src/server/shared/Database/QueryResult.cpp
index a38e605fcf2..9c6ad20222e 100755
--- a/src/server/shared/Database/QueryResult.cpp
+++ b/src/server/shared/Database/QueryResult.cpp
@@ -65,8 +65,8 @@ m_length(NULL)
//- This is where we prepare the buffer based on metadata
uint32 i = 0;
- MYSQL_FIELD* field;
- while ((field = mysql_fetch_field(m_res)))
+ MYSQL_FIELD* field = mysql_fetch_field(m_res);
+ while (field)
{
size_t size = Field::SizeForType(field);
@@ -80,6 +80,7 @@ m_length(NULL)
m_rBind[i].is_unsigned = field->flags & UNSIGNED_FLAG;
++i;
+ field = mysql_fetch_field(m_res);
}
//- This is where we bind the bind the buffer to the statement