BINLOG_GTID_POS(..) does not return proper error unless mysql_store_result is called

Description

When I use BINLOG_GTID_POS(..) on a server where binary log is not enabled, I expect it to return ER_NO_BINARY_LOGGING. It does so lets say in MySQL client, but with some API variants it does not.

C API:

Perl:

In both cases output is

Current tree:

Environment

None

Assignee

Kristian Nielsen

Reporter

Elena Stepanova

Labels

Fix versions

Affects versions

Priority

Major
Configure