Core/DBLayer: Fix gcc warnings related to changes added to QueryResult.h/cpp recently
--HG-- branch : trunk
This commit is contained in:
@@ -133,7 +133,7 @@ void ResultBind::BindResult(uint32& num_rows)
|
||||
//- This is where we prepare the buffer based on metadata
|
||||
uint32 i = 0;
|
||||
MYSQL_FIELD* field;
|
||||
while (field = mysql_fetch_field(m_res))
|
||||
while ((field = mysql_fetch_field(m_res)))
|
||||
{
|
||||
size_t size = SizeForType(field);
|
||||
if (size == 0)
|
||||
|
||||
@@ -101,7 +101,8 @@ class ResultBind
|
||||
friend class PreparedResultSet;
|
||||
public:
|
||||
|
||||
ResultBind(MYSQL_STMT* stmt) : m_stmt(stmt), m_fieldCount(NULL), m_isNull(NULL), m_length(NULL), m_rBind(NULL) {}
|
||||
ResultBind(MYSQL_STMT* stmt) : m_rBind(NULL), m_stmt(stmt), m_isNull(NULL), m_length(NULL), m_fieldCount(0) {}
|
||||
|
||||
~ResultBind()
|
||||
{
|
||||
if (!m_fieldCount)
|
||||
|
||||
Reference in New Issue
Block a user