summaryrefslogtreecommitdiff
path: root/innobase/dict
diff options
context:
space:
mode:
authorunknown <heikki@hundin.mysql.fi>2004-12-10 18:03:43 +0200
committerunknown <heikki@hundin.mysql.fi>2004-12-10 18:03:43 +0200
commit070777797c50e2b99ed5a3a55d4c14fd8f9ec9dc (patch)
tree0884e71451a5a78697f80e4682af8a8cf2a2cec5 /innobase/dict
parent5f78275e0519a416f04ed1c259e60c4fbce7f8ce (diff)
downloadmariadb-git-070777797c50e2b99ed5a3a55d4c14fd8f9ec9dc.tar.gz
dict0dict.c, log.cc:
Remove accidentally merged 4.0 changes dict0dict.c: Remove the 4.0 fix accidentally auto-merged to 4.1 row0mysql.h, dict0dict.h: Remove a change auto-merged from 4.0 innobase/include/dict0dict.h: Remove a change auto-merged from 4.0 innobase/include/row0mysql.h: Remove a change auto-merged from 4.0 sql/log.cc: Remove accidentally merged 4.0 changes innobase/dict/dict0dict.c: Remove accidentally merged 4.0 changes
Diffstat (limited to 'innobase/dict')
-rw-r--r--innobase/dict/dict0dict.c41
1 files changed, 9 insertions, 32 deletions
diff --git a/innobase/dict/dict0dict.c b/innobase/dict/dict0dict.c
index e3aac1f70ad..2e6504cac11 100644
--- a/innobase/dict/dict0dict.c
+++ b/innobase/dict/dict0dict.c
@@ -27,8 +27,6 @@ Created 1/8/1996 Heikki Tuuri
#include "que0que.h"
#include "rem0cmp.h"
-ibool dict_char_0xA0_is_space = FALSE; /* A special fix for 4.0 */
-
dict_sys_t* dict_sys = NULL; /* the dictionary system */
rw_lock_t dict_operation_lock; /* table create, drop, etc. reserve
@@ -198,28 +196,7 @@ and unique key errors */
FILE* dict_foreign_err_file = NULL;
mutex_t dict_foreign_err_mutex; /* mutex protecting the foreign
and unique error buffers */
-/************************************************************************
-Checks if a byte is considered space in the current charset of MySQL.
-TODO: find out if this works correctly in multibyte charsets. */
-static
-ibool
-dict_isspace(
-/*=========*/
- /* out: TRUE if considered space */
- char c) /* in: one-byte character */
-{
- if (isspace(c)) {
-
- return(TRUE);
- }
-
- if (dict_char_0xA0_is_space && (byte)c == (byte)0xA0) {
-
- return(TRUE);
- }
-
- return(FALSE);
-}
+
/************************************************************************
Checks if the database name in two table names is the same. */
@@ -2347,7 +2324,7 @@ dict_accept(
*success = FALSE;
- while (dict_isspace(*ptr)) {
+ while (isspace(*ptr)) {
ptr++;
}
@@ -2392,7 +2369,7 @@ dict_scan_id(
*id = NULL;
- while (dict_isspace(*ptr)) {
+ while (isspace(*ptr)) {
ptr++;
}
@@ -2423,7 +2400,7 @@ dict_scan_id(
len++;
}
} else {
- while (!dict_isspace(*ptr) && *ptr != '(' && *ptr != ')'
+ while (!isspace(*ptr) && *ptr != '(' && *ptr != ')'
&& (accept_also_dot || *ptr != '.')
&& *ptr != ',' && *ptr != '\0') {
@@ -2927,11 +2904,11 @@ loop:
ut_a(success);
- if (!dict_isspace(*ptr) && *ptr != '"' && *ptr != '`') {
+ if (!isspace(*ptr) && *ptr != '"' && *ptr != '`') {
goto loop;
}
- while (dict_isspace(*ptr)) {
+ while (isspace(*ptr)) {
ptr++;
}
@@ -2957,7 +2934,7 @@ loop:
ptr = dict_accept(ptr, "FOREIGN", &success);
- if (!dict_isspace(*ptr)) {
+ if (!isspace(*ptr)) {
goto loop;
}
@@ -3045,7 +3022,7 @@ col_loop1:
}
ptr = dict_accept(ptr, "REFERENCES", &success);
- if (!success || !dict_isspace(*ptr)) {
+ if (!success || !isspace(*ptr)) {
dict_foreign_report_syntax_err(name, start_of_latest_foreign,
ptr);
return(DB_CANNOT_ADD_CONSTRAINT);
@@ -3426,7 +3403,7 @@ loop:
ptr = dict_accept(ptr, "DROP", &success);
- if (!dict_isspace(*ptr)) {
+ if (!isspace(*ptr)) {
goto loop;
}