summaryrefslogtreecommitdiff
path: root/libmysql/errmsg.c
diff options
context:
space:
mode:
authormonty@mashka.mysql.fi <>2002-10-02 13:33:08 +0300
committermonty@mashka.mysql.fi <>2002-10-02 13:33:08 +0300
commitd69250a969449da43891ef5b2859df77917183a8 (patch)
tree5a27bda6d3f628af7dcb922ad022e84cf8cb351c /libmysql/errmsg.c
parent7134ffec210edde21860a2b2c2654be481de49b4 (diff)
downloadmariadb-git-d69250a969449da43891ef5b2859df77917183a8.tar.gz
Fixes and code cleanups after merge with 4.0.3
Warning handling and initial prepared statement handling (last not complete yet) Changed a lot of functions that returned 0/1 to my_bool type. GRANT handling now uses read/write locks instead of mutex Change basic net functions to use THD instead of NET (needed for 4.1 protocol) Use my_sprintf instead of sprintf() + strlen() Added alloc_query() to be able to chare query initialization code with prepared statements. Cleanup handling of SHOW COUNT(*) WARNINGS and SELECT LAST_INSERT_ID() Note that the following test fails (will be fixed ASAP): sub_select, union, rpl_rotate_logs and rpl_mystery22
Diffstat (limited to 'libmysql/errmsg.c')
-rw-r--r--libmysql/errmsg.c18
1 files changed, 6 insertions, 12 deletions
diff --git a/libmysql/errmsg.c b/libmysql/errmsg.c
index f1cf667f774..581bb184ff3 100644
--- a/libmysql/errmsg.c
+++ b/libmysql/errmsg.c
@@ -52,15 +52,13 @@ const char *client_errors[]=
"Error connecting to master:",
"Invalid connection handle",
"Invalid use of null pointer",
- "Memory allocation error",
"Statement not prepared",
"Not all parameters data supplied",
"Data truncated",
- "Not all parameters bound for the row fetch",
- "Failed to send the parameter data",
"No parameters exists in the statement",
"Invalid parameter number",
- "Can't send long data for non string or binary data types"
+ "Can't send long data for non string or binary data types (parameter: %d)",
+ "Using not supported parameter type: %d (parameter: %d)"
};
/* Start of code added by Roberto M. Serqueira - martinsc@uol.com.br - 05.24.2001 */
@@ -96,15 +94,13 @@ const char *client_errors[]=
"Error connecting to master:",
"Invalid connection handle",
"Invalid use of null pointer",
- "Memory allocation error",
"Statement not prepared",
"Not all parameters data supplied",
"Data truncated",
- "Not all parameters bound for the row fetch",
- "Failed to send the parameter data",
"No parameters exists in the statement",
"Invalid parameter number",
- "Can't send long data for non string or binary data types"
+ "Can't send long data for non string or binary data types (parameter: %d)",
+ "Using not supported parameter type: %d (parameter: %d)"
};
#else /* ENGLISH */
@@ -138,15 +134,13 @@ const char *client_errors[]=
"Error connecting to master:",
"Invalid connection handle",
"Invalid use of null pointer",
- "Memory allocation error",
"Statement not prepared",
"Not all parameters data supplied",
"Data truncated",
- "Not all parameters bound for the row fetch",
- "Failed to send the parameter data",
"No parameters exists in the statement",
"Invalid parameter number",
- "Can't send long data for non string or binary data types"
+ "Can't send long data for non string or binary data types (parameter: %d)",
+ "Using not supported parameter type: %d (parameter: %d)"
};
#endif