diff options
author | Shauren <shauren.trinity@gmail.com> | 2011-03-08 19:11:02 +0100 |
---|---|---|
committer | Shauren <shauren.trinity@gmail.com> | 2011-03-08 19:11:02 +0100 |
commit | 9710c41a40a311d363304853b33d0fee3f751383 (patch) | |
tree | 8d98282b74329fa225af85b42678d6ffbddb1da7 /src/server/shared/Database/QueryResult.cpp | |
parent | cbbfb52ca766cb3b9e8cb2a6e9cf04f42d356ab1 (diff) |
More warning fixes
Diffstat (limited to 'src/server/shared/Database/QueryResult.cpp')
-rwxr-xr-x | src/server/shared/Database/QueryResult.cpp | 5 |
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 |