[MCOL-2072] QueryStats creates a mysql_use_result() warning Created: 2019-01-08  Updated: 2021-09-04  Resolved: 2019-12-09

Status: Closed
Project: MariaDB ColumnStore
Component/s: None
Affects Version/s: 1.2.2
Fix Version/s: 1.2.6

Type: Bug Priority: Minor
Reporter: Andrew Hutchings (Inactive) Assignee: Daniel Lee (Inactive)
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
PartOf
is part of MCOL-3647 Merge develop-1.2 into develop Closed
Sprint: 2019-06

 Description   

We are using run() to execute the INSERT query for query stats which generates a warning on mysql_use_result() because there is no result set.

| Warning | 9999 | Columnstore Query Stats - fatal error running mysql_use_result() or empty result set in libmysql_client lib (-1) (unknown) |

We should have a flag in this function to state that we aren't expecting there to be results.



 Comments   
Comment by Andrew Hutchings (Inactive) [ 2019-01-08 ]

Set to minor because it means the write succeeded, just annoying that there is a warning.

Comment by Daniel Lee (Inactive) [ 2019-12-09 ]

Build verified: 1.2.601

engine commit:
d4173ef

This warning existed ever since queryStats was implemented. It was treated as a side effect. It is great to see this issue corrected.

Generated at Thu Feb 08 02:33:31 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.