-
Lakshmi Narayanan Sreethar authored
Part II of the fix. This patch updates the get_error_message() method of the ha_ndbcluster to fetch the proper details of the FK constraint on an fk constraint violation error and print it back to the server's buffer. The fk details is got either from the last transaction stored in thd_ndb for DML erros or from ndb's dictionary for DDL errors. A new method is also added to the Ndb_fk_util class to generate the FK constraint info in required format when an FK object is passed to it. This patch also updates all the MTR testcases and replaces the `Unknown error codes` text with proper FK info.
Lakshmi Narayanan Sreethar authoredPart II of the fix. This patch updates the get_error_message() method of the ha_ndbcluster to fetch the proper details of the FK constraint on an fk constraint violation error and print it back to the server's buffer. The fk details is got either from the last transaction stored in thd_ndb for DML erros or from ndb's dictionary for DDL errors. A new method is also added to the Ndb_fk_util class to generate the FK constraint info in required format when an FK object is passed to it. This patch also updates all the MTR testcases and replaces the `Unknown error codes` text with proper FK info.
Loading