1#if __has_include(<mysql.h>)
2#include <mysql.h>
3#else
4#include <mysql/mysql.h>
5#endif
6
7#include <mysqlxx/Connection.h>
8#include <mysqlxx/UseQueryResult.h>
9
10
11namespace mysqlxx
12{
13
14UseQueryResult::UseQueryResult(MYSQL_RES * res_, Connection * conn_, const Query * query_) : ResultBase(res_, conn_, query_)
15{
16}
17
18Row UseQueryResult::fetch()
19{
20 MYSQL_ROW row = mysql_fetch_row(res);
21 if (!row)
22 checkError(conn->getDriver());
23
24 return Row(row, this, mysql_fetch_lengths(res));
25}
26
27}
28