From 85fec966b818c1f3b41c595138fc0710f84d73d3 Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Thu, 28 Nov 2013 12:12:10 +0100 Subject: [PATCH] Improve IDO query performance. Refs #5235 --- components/db_ido_mysql/idomysqlconnection.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/db_ido_mysql/idomysqlconnection.cpp b/components/db_ido_mysql/idomysqlconnection.cpp index d824d033e..ba89dad7e 100644 --- a/components/db_ido_mysql/idomysqlconnection.cpp +++ b/components/db_ido_mysql/idomysqlconnection.cpp @@ -280,7 +280,7 @@ Array::Ptr IdoMysqlConnection::Query(const String& query) << errinfo_database_query(query) ); - MYSQL_RES *result = mysql_store_result(&m_Connection); + MYSQL_RES *result = mysql_use_result(&m_Connection); if (!result) { if (mysql_field_count(&m_Connection) > 0)