aboutsummaryrefslogtreecommitdiff
path: root/src/server/shared/Database/QueryResult.cpp
diff options
context:
space:
mode:
authorazazel <none@none>2010-10-16 13:32:30 +0600
committerazazel <none@none>2010-10-16 13:32:30 +0600
commit3bd1ee0665f8c48bc256fcbe30f447c1fa40bec8 (patch)
tree0d16a8f7fafdf330d9d1f2ce7055ee7bf186a1b5 /src/server/shared/Database/QueryResult.cpp
parent88235496944f364bc8f13ef61dbad4639c43f471 (diff)
Fix most of the recently introduced warnings
--HG-- branch : trunk
Diffstat (limited to 'src/server/shared/Database/QueryResult.cpp')
-rwxr-xr-xsrc/server/shared/Database/QueryResult.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/server/shared/Database/QueryResult.cpp b/src/server/shared/Database/QueryResult.cpp
index fa6070a0516..56ac07ed8a1 100755
--- a/src/server/shared/Database/QueryResult.cpp
+++ b/src/server/shared/Database/QueryResult.cpp
@@ -94,14 +94,14 @@ m_length(NULL)
m_rowCount = mysql_stmt_num_rows(m_stmt);
- m_rows.resize(m_rowCount);
+ m_rows.resize(uint32(m_rowCount));
while (_NextRow())
{
- m_rows[m_rowPosition] = new Field[m_fieldCount];
+ m_rows[uint32(m_rowPosition)] = new Field[m_fieldCount];
for (uint64 fIndex = 0; fIndex < m_fieldCount; ++fIndex)
{
if (!*m_rBind[fIndex].is_null)
- m_rows[m_rowPosition][fIndex].SetByteValue( m_rBind[fIndex].buffer,
+ m_rows[uint32(m_rowPosition)][fIndex].SetByteValue( m_rBind[fIndex].buffer,
m_rBind[fIndex].buffer_length,
m_rBind[fIndex].buffer_type,
*m_rBind[fIndex].length );
@@ -114,13 +114,13 @@ m_length(NULL)
case MYSQL_TYPE_BLOB:
case MYSQL_TYPE_STRING:
case MYSQL_TYPE_VAR_STRING:
- m_rows[m_rowPosition][fIndex].SetByteValue( "",
+ m_rows[uint32(m_rowPosition)][fIndex].SetByteValue( "",
m_rBind[fIndex].buffer_length,
m_rBind[fIndex].buffer_type,
*m_rBind[fIndex].length );
break;
default:
- m_rows[m_rowPosition][fIndex].SetByteValue( 0,
+ m_rows[uint32(m_rowPosition)][fIndex].SetByteValue( 0,
m_rBind[fIndex].buffer_length,
m_rBind[fIndex].buffer_type,
*m_rBind[fIndex].length );
@@ -141,7 +141,7 @@ ResultSet::~ResultSet()
PreparedResultSet::~PreparedResultSet()
{
- for (uint64 i = 0; i < m_rowCount; ++i)
+ for (uint32 i = 0; i < uint32(m_rowCount); ++i)
delete[] m_rows[i];
}