43 ASSERT(index < _fieldCount);
44 return _currentRow[index];
75 ASSERT(m_rowPosition < m_rowCount);
76 return const_cast<Field*
>(&m_rows[
uint32(m_rowPosition) * m_fieldCount]);
81 ASSERT(m_rowPosition < m_rowCount);
82 ASSERT(index < m_fieldCount);
83 return m_rows[
uint32(m_rowPosition) * m_fieldCount + index];
MYSQL_RES * _result
Definition: QueryResult.h:54
#define TC_DATABASE_API
Definition: Define.h:122
uint32 GetFieldCount() const
Definition: QueryResult.h:71
uint32 m_fieldCount
Definition: QueryResult.h:90
std::shared_ptr< PreparedResultSet > PreparedQueryResult
Definition: QueryResult.h:107
MYSQL_FIELD * _fields
Definition: QueryResult.h:55
unsigned long * m_length
Definition: QueryResult.h:98
Class used to access individual fields of database query result.
Definition: Field.h:56
uint32 _fieldCount
Definition: QueryResult.h:50
MYSQL_RES * m_metadataResult
Field metadata, returned by mysql_stmt_result_metadata.
Definition: QueryResult.h:95
std::vector< Field > m_rows
Definition: QueryResult.h:87
uint64 GetRowCount() const
Definition: QueryResult.h:70
Definition: QueryResult.h:30
Field * Fetch() const
Definition: QueryResult.h:73
MYSQL_BIND * m_rBind
Definition: QueryResult.h:93
my_bool * m_isNull
Definition: QueryResult.h:97
Field const & operator[](uint32 index) const
Definition: QueryResult.h:79
uint64 GetRowCount() const
Definition: QueryResult.h:37
Vector2int16 & operator=(const Any &a)
uint64 m_rowPosition
Definition: QueryResult.h:89
uint32_t uint32
Definition: Define.h:150
uint64_t uint64
Definition: Define.h:149
std::shared_ptr< ResultSet > QueryResult
Definition: QueryResult.h:61
Field * Fetch() const
Definition: QueryResult.h:40
G3D::int16 & operator[](int i)
Definition: Vector2int16.h:51
Field * _currentRow
Definition: QueryResult.h:49
MYSQL_STMT * m_stmt
Definition: QueryResult.h:94
uint64 m_rowCount
Definition: QueryResult.h:88
#define ASSERT
Definition: Errors.h:55
uint64 _rowCount
Definition: QueryResult.h:48
uint32_t uint32
Definition: g3dmath.h:168
Definition: QueryResult.h:63
uint32 GetFieldCount() const
Definition: QueryResult.h:38