Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
45ed0a08
Commit
45ed0a08
authored
Jan 30, 2003
by
serg@serg.mysql.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge work:/home/bk/mysql-4.0
into serg.mysql.com:/usr/home/serg/Abk/mysql-4.0
parents
8611ac7a
1ced5948
Changes
10
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
17 additions
and
12 deletions
+17
-12
extra/perror.c
extra/perror.c
+6
-2
include/my_base.h
include/my_base.h
+3
-2
myisam/mi_open.c
myisam/mi_open.c
+1
-1
myisam/myisamchk.c
myisam/myisamchk.c
+1
-1
myisammrg/myrg_open.c
myisammrg/myrg_open.c
+1
-1
sql/ha_innodb.cc
sql/ha_innodb.cc
+1
-1
sql/ha_isam.cc
sql/ha_isam.cc
+1
-1
sql/ha_myisam.cc
sql/ha_myisam.cc
+1
-1
sql/ha_myisammrg.cc
sql/ha_myisammrg.cc
+1
-1
sql/handler.cc
sql/handler.cc
+1
-1
No files found.
extra/perror.c
View file @
45ed0a08
...
@@ -59,8 +59,10 @@ static HA_ERRORS ha_errlist[]=
...
@@ -59,8 +59,10 @@ static HA_ERRORS ha_errlist[]=
{
121
,
"Duplicate key on write or update"
},
{
121
,
"Duplicate key on write or update"
},
{
123
,
"Someone has changed the row since it was read; Update with is recoverable"
},
{
123
,
"Someone has changed the row since it was read; Update with is recoverable"
},
{
124
,
"Wrong index given to function"
},
{
124
,
"Wrong index given to function"
},
{
126
,
"Index file is crashed
/ Wrong file format
"
},
{
126
,
"Index file is crashed"
},
{
127
,
"Record-file is crashed"
},
{
127
,
"Record-file is crashed"
},
{
128
,
"Out of memory"
},
{
130
,
"Incorrect file format"
},
{
131
,
"Command not supported by database"
},
{
131
,
"Command not supported by database"
},
{
132
,
"Old database file"
},
{
132
,
"Old database file"
},
{
133
,
"No record read before update"
},
{
133
,
"No record read before update"
},
...
@@ -73,7 +75,7 @@ static HA_ERRORS ha_errlist[]=
...
@@ -73,7 +75,7 @@ static HA_ERRORS ha_errlist[]=
{
140
,
"Wrong create options"
},
{
140
,
"Wrong create options"
},
{
141
,
"Duplicate unique key or constraint on write or update"
},
{
141
,
"Duplicate unique key or constraint on write or update"
},
{
142
,
"Unknown character set used"
},
{
142
,
"Unknown character set used"
},
{
143
,
"Conflicting table definition
between MERGE and mapped
table"
},
{
143
,
"Conflicting table definition
s in sub-tables of MERGE
table"
},
{
144
,
"Table is crashed and last repair failed"
},
{
144
,
"Table is crashed and last repair failed"
},
{
145
,
"Table was marked as crashed and should be repaired"
},
{
145
,
"Table was marked as crashed and should be repaired"
},
{
146
,
"Lock timed out; Retry transaction"
},
{
146
,
"Lock timed out; Retry transaction"
},
...
@@ -81,6 +83,8 @@ static HA_ERRORS ha_errlist[]=
...
@@ -81,6 +83,8 @@ static HA_ERRORS ha_errlist[]=
{
148
,
"Updates are not allowed under a read only transactions"
},
{
148
,
"Updates are not allowed under a read only transactions"
},
{
149
,
"Lock deadlock; Retry transaction"
},
{
149
,
"Lock deadlock; Retry transaction"
},
{
150
,
"Foreign key constraint is incorrectly formed"
},
{
150
,
"Foreign key constraint is incorrectly formed"
},
{
151
,
"Cannot add a child row"
},
{
152
,
"Cannot delete a parent row"
},
{
-
30999
,
"DB_INCOMPLETE: Sync didn't finish"
},
{
-
30999
,
"DB_INCOMPLETE: Sync didn't finish"
},
{
-
30998
,
"DB_KEYEMPTY: Key/data deleted or never created"
},
{
-
30998
,
"DB_KEYEMPTY: Key/data deleted or never created"
},
{
-
30997
,
"DB_KEYEXIST: The key/data pair already exists"
},
{
-
30997
,
"DB_KEYEXIST: The key/data pair already exists"
},
...
...
include/my_base.h
View file @
45ed0a08
...
@@ -216,6 +216,7 @@ enum ha_base_keytype {
...
@@ -216,6 +216,7 @@ enum ha_base_keytype {
#define HA_ERR_CRASHED 126
/* Indexfile is crashed */
#define HA_ERR_CRASHED 126
/* Indexfile is crashed */
#define HA_ERR_WRONG_IN_RECORD 127
/* Record-file is crashed */
#define HA_ERR_WRONG_IN_RECORD 127
/* Record-file is crashed */
#define HA_ERR_OUT_OF_MEM 128
/* Record-file is crashed */
#define HA_ERR_OUT_OF_MEM 128
/* Record-file is crashed */
#define HA_ERR_NOT_A_TABLE 130
/* not a MYI file - no signature */
#define HA_ERR_WRONG_COMMAND 131
/* Command not supported */
#define HA_ERR_WRONG_COMMAND 131
/* Command not supported */
#define HA_ERR_OLD_FILE 132
/* old databasfile */
#define HA_ERR_OLD_FILE 132
/* old databasfile */
#define HA_ERR_NO_ACTIVE_RECORD 133
/* No record read in update() */
#define HA_ERR_NO_ACTIVE_RECORD 133
/* No record read in update() */
...
@@ -228,7 +229,7 @@ enum ha_base_keytype {
...
@@ -228,7 +229,7 @@ enum ha_base_keytype {
#define HA_WRONG_CREATE_OPTION 140
/* Wrong create option */
#define HA_WRONG_CREATE_OPTION 140
/* Wrong create option */
#define HA_ERR_FOUND_DUPP_UNIQUE 141
/* Dupplicate unique on write */
#define HA_ERR_FOUND_DUPP_UNIQUE 141
/* Dupplicate unique on write */
#define HA_ERR_UNKNOWN_CHARSET 142
/* Can't open charset */
#define HA_ERR_UNKNOWN_CHARSET 142
/* Can't open charset */
#define HA_ERR_WRONG_
TABLE_DEF 143
#define HA_ERR_WRONG_
MRG_TABLE_DEF 143
/* conflicting MyISAM tables in MERGE */
#define HA_ERR_CRASHED_ON_REPAIR 144
/* Last (automatic?) repair failed */
#define HA_ERR_CRASHED_ON_REPAIR 144
/* Last (automatic?) repair failed */
#define HA_ERR_CRASHED_ON_USAGE 145
/* Table must be repaired */
#define HA_ERR_CRASHED_ON_USAGE 145
/* Table must be repaired */
#define HA_ERR_LOCK_WAIT_TIMEOUT 146
#define HA_ERR_LOCK_WAIT_TIMEOUT 146
...
...
myisam/mi_open.c
View file @
45ed0a08
...
@@ -114,7 +114,7 @@ MI_INFO *mi_open(const char *name, int mode, uint open_flags)
...
@@ -114,7 +114,7 @@ MI_INFO *mi_open(const char *name, int mode, uint open_flags)
DBUG_PRINT
(
"error"
,(
"Wrong header in %s"
,
name_buff
));
DBUG_PRINT
(
"error"
,(
"Wrong header in %s"
,
name_buff
));
DBUG_DUMP
(
"error_dump"
,(
char
*
)
share
->
state
.
header
.
file_version
,
DBUG_DUMP
(
"error_dump"
,(
char
*
)
share
->
state
.
header
.
file_version
,
head_length
);
head_length
);
my_errno
=
HA_ERR_
WRONG_TABLE_DEF
;
my_errno
=
HA_ERR_
NOT_A_TABLE
;
goto
err
;
goto
err
;
}
}
share
->
options
=
mi_uint2korr
(
share
->
state
.
header
.
options
);
share
->
options
=
mi_uint2korr
(
share
->
state
.
header
.
options
);
...
...
myisam/myisamchk.c
View file @
45ed0a08
...
@@ -735,7 +735,7 @@ static int myisamchk(MI_CHECK *param, my_string filename)
...
@@ -735,7 +735,7 @@ static int myisamchk(MI_CHECK *param, my_string filename)
case
HA_ERR_CRASHED
:
case
HA_ERR_CRASHED
:
mi_check_print_error
(
param
,
"'%s' doesn't have a correct index definition. You need to recreate it before you can do a repair"
,
filename
);
mi_check_print_error
(
param
,
"'%s' doesn't have a correct index definition. You need to recreate it before you can do a repair"
,
filename
);
break
;
break
;
case
HA_ERR_
WRONG_TABLE_DEF
:
case
HA_ERR_
NOT_A_TABLE
:
mi_check_print_error
(
param
,
"'%s' is not a MyISAM-table"
,
filename
);
mi_check_print_error
(
param
,
"'%s' is not a MyISAM-table"
,
filename
);
break
;
break
;
case
HA_ERR_CRASHED_ON_USAGE
:
case
HA_ERR_CRASHED_ON_USAGE
:
...
...
myisammrg/myrg_open.c
View file @
45ed0a08
...
@@ -84,7 +84,7 @@ MYRG_INFO *myrg_open(const char *name, int mode, int handle_locking)
...
@@ -84,7 +84,7 @@ MYRG_INFO *myrg_open(const char *name, int mode, int handle_locking)
last_isam
=
isam
;
last_isam
=
isam
;
if
(
info
.
reclength
&&
info
.
reclength
!=
isam
->
s
->
base
.
reclength
)
if
(
info
.
reclength
&&
info
.
reclength
!=
isam
->
s
->
base
.
reclength
)
{
{
my_errno
=
HA_ERR_WRONG_
IN_RECORD
;
my_errno
=
HA_ERR_WRONG_
MRG_TABLE_DEF
;
goto
err
;
goto
err
;
}
}
info
.
reclength
=
isam
->
s
->
base
.
reclength
;
info
.
reclength
=
isam
->
s
->
base
.
reclength
;
...
...
sql/ha_innodb.cc
View file @
45ed0a08
...
@@ -231,7 +231,7 @@ convert_error_code_to_mysql(
...
@@ -231,7 +231,7 @@ convert_error_code_to_mysql(
}
else
if
(
error
==
(
int
)
DB_COL_APPEARS_TWICE_IN_INDEX
)
{
}
else
if
(
error
==
(
int
)
DB_COL_APPEARS_TWICE_IN_INDEX
)
{
return
(
HA_ERR_
WRONG_TABLE_DEF
);
return
(
HA_ERR_
CRASHED
);
}
else
if
(
error
==
(
int
)
DB_OUT_OF_FILE_SPACE
)
{
}
else
if
(
error
==
(
int
)
DB_OUT_OF_FILE_SPACE
)
{
...
...
sql/ha_isam.cc
View file @
45ed0a08
...
@@ -35,7 +35,7 @@
...
@@ -35,7 +35,7 @@
*****************************************************************************/
*****************************************************************************/
const
char
**
ha_isam
::
bas_ext
()
const
const
char
**
ha_isam
::
bas_ext
()
const
{
static
const
char
*
ext
[]
=
{
".IS
D"
,
".ISM
"
,
NullS
};
return
ext
;
}
{
static
const
char
*
ext
[]
=
{
".IS
M"
,
".ISD
"
,
NullS
};
return
ext
;
}
int
ha_isam
::
open
(
const
char
*
name
,
int
mode
,
uint
test_if_locked
)
int
ha_isam
::
open
(
const
char
*
name
,
int
mode
,
uint
test_if_locked
)
...
...
sql/ha_myisam.cc
View file @
45ed0a08
...
@@ -117,7 +117,7 @@ void mi_check_print_warning(MI_CHECK *param, const char *fmt,...)
...
@@ -117,7 +117,7 @@ void mi_check_print_warning(MI_CHECK *param, const char *fmt,...)
}
}
const
char
**
ha_myisam
::
bas_ext
()
const
const
char
**
ha_myisam
::
bas_ext
()
const
{
static
const
char
*
ext
[]
=
{
".MY
D"
,
".MYI
"
,
NullS
};
return
ext
;
}
{
static
const
char
*
ext
[]
=
{
".MY
I"
,
".MYD
"
,
NullS
};
return
ext
;
}
const
char
*
ha_myisam
::
index_type
(
uint
key_number
)
const
char
*
ha_myisam
::
index_type
(
uint
key_number
)
...
...
sql/ha_myisammrg.cc
View file @
45ed0a08
...
@@ -69,7 +69,7 @@ int ha_myisammrg::open(const char *name, int mode, uint test_if_locked)
...
@@ -69,7 +69,7 @@ int ha_myisammrg::open(const char *name, int mode, uint test_if_locked)
err:
err:
myrg_close
(
file
);
myrg_close
(
file
);
file
=
0
;
file
=
0
;
return
(
my_errno
=
HA_ERR_WRONG_TABLE_DEF
);
return
(
my_errno
=
HA_ERR_WRONG_
MRG_
TABLE_DEF
);
}
}
int
ha_myisammrg
::
close
(
void
)
int
ha_myisammrg
::
close
(
void
)
...
...
sql/handler.cc
View file @
45ed0a08
...
@@ -679,7 +679,7 @@ void handler::print_error(int error, myf errflag)
...
@@ -679,7 +679,7 @@ void handler::print_error(int error, myf errflag)
case
HA_ERR_END_OF_FILE
:
case
HA_ERR_END_OF_FILE
:
textno
=
ER_KEY_NOT_FOUND
;
textno
=
ER_KEY_NOT_FOUND
;
break
;
break
;
case
HA_ERR_WRONG_TABLE_DEF
:
case
HA_ERR_WRONG_
MRG_
TABLE_DEF
:
textno
=
ER_WRONG_MRG_TABLE
;
textno
=
ER_WRONG_MRG_TABLE
;
break
;
break
;
case
HA_ERR_FOUND_DUPP_KEY
:
case
HA_ERR_FOUND_DUPP_KEY
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment