mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 23:21:59 +00:00
Better code
This commit is contained in:
parent
715b6f3617
commit
45b65a462e
@ -14,7 +14,6 @@ namespace mysqlxx
|
|||||||
StoreQueryResult::StoreQueryResult(MYSQL_RES * res_, Connection * conn_, const Query * query_) : ResultBase(res_, conn_, query_)
|
StoreQueryResult::StoreQueryResult(MYSQL_RES * res_, Connection * conn_, const Query * query_) : ResultBase(res_, conn_, query_)
|
||||||
{
|
{
|
||||||
UInt64 rows = mysql_num_rows(res);
|
UInt64 rows = mysql_num_rows(res);
|
||||||
UInt32 num_fields = getNumFields();
|
|
||||||
reserve(rows);
|
reserve(rows);
|
||||||
lengths.resize(rows * num_fields);
|
lengths.resize(rows * num_fields);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user