summaryrefslogtreecommitdiff
path: root/sql/handler.h
diff options
context:
space:
mode:
authorunknown <magnus@neptunus.(none)>2004-05-24 12:35:39 +0200
committerunknown <magnus@neptunus.(none)>2004-05-24 12:35:39 +0200
commit88a3b3bca81656e94ea5eca77172045d551f1411 (patch)
tree2112e805a836ef945ff188e6ed8269e858e361a1 /sql/handler.h
parent4d3f8f210a27e6294be450e48419fa6c68a83490 (diff)
downloadmariadb-git-88a3b3bca81656e94ea5eca77172045d551f1411.tar.gz
Fixed prototype of get_error_message to use String to return error message
WL#1747 and #1746 allow user to decide if ordered index should be created or not BitKeeper/deleted/.del-AttrType.hpp~a9b2d6efcf660378: Delete: ndb/include/ndbapi/AttrType.hpp sql/ha_ndbcluster.cc: Removed the NDB_ERR_CODE_OFFSET, ndb and handler error codes should not clash Encapsulated functionality to cache information about known indexes into buil_index_list Added detection of algorithm from key_info in function get_index_type_from_table Updated read_range_first and records_in_range to work wih new prototype. sql/ha_ndbcluster.h: WL#1746 and WL#1747 Added ability to skip creating an ordered index in addition to the hash index if the user so wishes. Modified get_error_message to return error messaga in a String datatype, in that way the String class will take care of wheter the "data" has to be freed or not. sql/handler.cc: Use String datatype as ouput parameter of get_error_message. sql/handler.h: Changed the function prototype for getting error messages from handler to use String datataype
Diffstat (limited to 'sql/handler.h')
-rw-r--r--sql/handler.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/handler.h b/sql/handler.h
index 17151877286..0f8edc2cf12 100644
--- a/sql/handler.h
+++ b/sql/handler.h
@@ -288,7 +288,7 @@ public:
void update_timestamp(byte *record);
void update_auto_increment();
virtual void print_error(int error, myf errflag);
- virtual const char* get_error_message(int *error, bool *temporary);
+ virtual bool get_error_message(int error, String *buf);
uint get_dup_key(int error);
void change_table_ptr(TABLE *table_arg) { table=table_arg; }
virtual double scan_time()