summaryrefslogtreecommitdiff
path: root/storage/blackhole
diff options
context:
space:
mode:
authorMarc Alff <marc.alff@oracle.com>2010-12-01 13:06:41 +0100
committerMarc Alff <marc.alff@oracle.com>2010-12-01 13:06:41 +0100
commit033c6c394db89c3904a1bcf9ad050f1a29bf0d24 (patch)
tree9f2d3992effc2d9809c49daf233e7ba44892c62b /storage/blackhole
parent938c61dcbbd49f96f52ca61ccc5536d9b1dd5b83 (diff)
downloadmariadb-git-033c6c394db89c3904a1bcf9ad050f1a29bf0d24.tar.gz
Bug#53696 Performance schema engine violates the PSEA API by calling my_error()
This is a code cleanup. The implementation of a storage engine (subclasses of handler) is not supposed to call my_error() directly inside the engine implementation, but only return error codes, and report errors later at the demand of the sql layer only (if needed), using handler::print_error(). This fix removes misplaced calls to my_error(), and provide an implementation of print_error() instead. Given that the sql layer implementation of create table, ha_create_table(), does not use print_error() but returns ER_CANT_CREATE_TABLE directly, the return code for create table statements using the performance schema has changed to ER_CANT_CREATE_TABLE. Adjusted the test suite accordingly.
Diffstat (limited to 'storage/blackhole')
0 files changed, 0 insertions, 0 deletions