[CONC-678] Retrieve warnings via SESSION_TRACK_WARNINGS Created: 2023-12-02  Updated: 2023-12-07

Status: Open
Project: MariaDB Connector/C
Component/s: Error handling
Affects Version/s: None
Fix Version/s: None

Type: New Feature Priority: Major
Reporter: Georg Richter Assignee: Georg Richter
Resolution: Unresolved Votes: 0
Labels: None

Issue Links:
PartOf
is part of MDEV-32931 SESSION_TRACK_WARNINGS: Send warnings... Open

 Description   

This issue is the client part of MDEV-32931

To support receiving warning via session tracking, the following features have to be implemented:

1) Store warnings in function ma_save_session_track_info
2) Beside setting session variable session_track_warnings via SQL command, provide an option which specifies if and how many warnings should be retrieved - this setting will be set when establishing connection between client and server (init_command):

unsigned int warning_count= 5;
 
rc= mysql_optionsv(mysql, MARIADB_OPT_WARNING_COUNT, &warning_count);

Warnings will be retrieved via mysql_session_track_get* functions.


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