Comment 7 for bug 1316001

Revision history for this message
Michael Widenius (monty) wrote :

The real problem here is that no application should ever include sql_common.h or try to execute, the internal to libmysql functions, simple_command() or advanced_command() directly.

The primary reason for this is that these functions are not safe for internal API or structure changes and may cause applications crashes between even minor versions of libmysql.a

The right way to solve this, if mysql data dumper really need this, would be to create two new api functions,
mysql_simple_command() and mysql_advanced_command() and add these to libmysql.a

Before doing the above, I would like to know why mysql data dumper is calling simple_command() directly instead of calling the corresponding command (like mysql_list_fields).

Regards,
Monty