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
3c164107
Commit
3c164107
authored
Feb 06, 2006
by
jonas@perch.ndb.mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug#16767, bug#16768 - ndb missleading names of error codes
rename error codes
parent
e77aa473
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
19 deletions
+19
-19
mysql-test/t/ndb_dd_ddl.test
mysql-test/t/ndb_dd_ddl.test
+8
-8
sql/ha_ndbcluster.cc
sql/ha_ndbcluster.cc
+7
-7
sql/share/errmsg.txt
sql/share/errmsg.txt
+4
-4
No files found.
mysql-test/t/ndb_dd_ddl.test
View file @
3c164107
...
@@ -41,7 +41,7 @@ INITIAL_SIZE 16M
...
@@ -41,7 +41,7 @@ INITIAL_SIZE 16M
UNDO_BUFFER_SIZE
=
1
M
UNDO_BUFFER_SIZE
=
1
M
ENGINE
=
NDB
;
ENGINE
=
NDB
;
--
error
ER_CREATE_
TABLESPACE
_FAILED
--
error
ER_CREATE_
FILEGROUP
_FAILED
CREATE
LOGFILE
GROUP
lg1
CREATE
LOGFILE
GROUP
lg1
ADD
UNDOFILE
'undofile.dat'
ADD
UNDOFILE
'undofile.dat'
INITIAL_SIZE
16
M
INITIAL_SIZE
16
M
...
@@ -52,7 +52,7 @@ ALTER LOGFILE GROUP lg1
...
@@ -52,7 +52,7 @@ ALTER LOGFILE GROUP lg1
ADD
UNDOFILE
'undofile02.dat'
ADD
UNDOFILE
'undofile02.dat'
INITIAL_SIZE
4
M
ENGINE
NDB
;
INITIAL_SIZE
4
M
ENGINE
NDB
;
--
error
ER_ALTER_
TABLESPACE
_FAILED
--
error
ER_ALTER_
FILEGROUP
_FAILED
ALTER
LOGFILE
GROUP
lg1
ALTER
LOGFILE
GROUP
lg1
ADD
UNDOFILE
'undofile02.dat'
ADD
UNDOFILE
'undofile02.dat'
INITIAL_SIZE
4
M
ENGINE
=
NDB
;
INITIAL_SIZE
4
M
ENGINE
=
NDB
;
...
@@ -63,7 +63,7 @@ USE LOGFILE GROUP lg1
...
@@ -63,7 +63,7 @@ USE LOGFILE GROUP lg1
INITIAL_SIZE 12M
INITIAL_SIZE 12M
ENGINE NDB
;
ENGINE NDB
;
--
error
ER_CREATE_
TABLESPACE
_FAILED
--
error
ER_CREATE_
FILEGROUP
_FAILED
CREATE
TABLESPACE
ts1
CREATE
TABLESPACE
ts1
ADD
DATAFILE
'datafile.dat'
ADD
DATAFILE
'datafile.dat'
USE
LOGFILE
GROUP lg1
USE
LOGFILE
GROUP lg1
...
@@ -76,7 +76,7 @@ ADD DATAFILE 'datafile2.dat'
...
@@ -76,7 +76,7 @@ ADD DATAFILE 'datafile2.dat'
INITIAL_SIZE
12
M
INITIAL_SIZE
12
M
ENGINE
=
NDB
;
ENGINE
=
NDB
;
--
error
ER_ALTER_
TABLESPACE
_FAILED
--
error
ER_ALTER_
FILEGROUP
_FAILED
ALTER
TABLESPACE
ts1
ALTER
TABLESPACE
ts1
ADD
DATAFILE
'datafile2.dat'
ADD
DATAFILE
'datafile2.dat'
INITIAL_SIZE
12
M
INITIAL_SIZE
12
M
...
@@ -105,7 +105,7 @@ ALTER TABLESPACE ts1
...
@@ -105,7 +105,7 @@ ALTER TABLESPACE ts1
DROP
DATAFILE
'datafile2.dat'
DROP
DATAFILE
'datafile2.dat'
ENGINE
=
NDB
;
ENGINE
=
NDB
;
--
error
ER_ALTER_
TABLESPACE
_FAILED
--
error
ER_ALTER_
FILEGROUP
_FAILED
ALTER
TABLESPACE
ts1
ALTER
TABLESPACE
ts1
DROP
DATAFILE
'datafile2.dat'
DROP
DATAFILE
'datafile2.dat'
ENGINE
=
NDB
;
ENGINE
=
NDB
;
...
@@ -114,7 +114,7 @@ ALTER TABLESPACE ts1
...
@@ -114,7 +114,7 @@ ALTER TABLESPACE ts1
DROP
DATAFILE
'datafile.dat'
DROP
DATAFILE
'datafile.dat'
ENGINE
=
NDB
;
ENGINE
=
NDB
;
--
error
ER_ALTER_
TABLESPACE
_FAILED
--
error
ER_ALTER_
FILEGROUP
_FAILED
ALTER
TABLESPACE
ts1
ALTER
TABLESPACE
ts1
DROP
DATAFILE
'datafile.dat'
DROP
DATAFILE
'datafile.dat'
ENGINE
=
NDB
;
ENGINE
=
NDB
;
...
@@ -122,14 +122,14 @@ ENGINE=NDB;
...
@@ -122,14 +122,14 @@ ENGINE=NDB;
DROP
TABLESPACE
ts1
DROP
TABLESPACE
ts1
ENGINE
=
NDB
;
ENGINE
=
NDB
;
--
error
ER_DROP_
TABLESPACE
_FAILED
--
error
ER_DROP_
FILEGROUP
_FAILED
DROP
TABLESPACE
ts1
DROP
TABLESPACE
ts1
ENGINE
=
NDB
;
ENGINE
=
NDB
;
DROP
LOGFILE
GROUP
lg1
DROP
LOGFILE
GROUP
lg1
ENGINE
=
NDB
;
ENGINE
=
NDB
;
--
error
ER_DROP_
TABLESPACE
_FAILED
--
error
ER_DROP_
FILEGROUP
_FAILED
DROP
LOGFILE
GROUP
lg1
DROP
LOGFILE
GROUP
lg1
ENGINE
=
NDB
;
ENGINE
=
NDB
;
...
...
sql/ha_ndbcluster.cc
View file @
3c164107
...
@@ -9378,7 +9378,7 @@ int ndbcluster_alter_tablespace(THD* thd, st_alter_tablespace *info)
...
@@ -9378,7 +9378,7 @@ int ndbcluster_alter_tablespace(THD* thd, st_alter_tablespace *info)
switch
(
info
->
ts_cmd_type
){
switch
(
info
->
ts_cmd_type
){
case
(
CREATE_TABLESPACE
):
case
(
CREATE_TABLESPACE
):
{
{
error
=
ER_CREATE_
TABLESPACE
_FAILED
;
error
=
ER_CREATE_
FILEGROUP
_FAILED
;
NdbDictionary
::
Tablespace
ndb_ts
;
NdbDictionary
::
Tablespace
ndb_ts
;
NdbDictionary
::
Datafile
ndb_df
;
NdbDictionary
::
Datafile
ndb_df
;
...
@@ -9408,7 +9408,7 @@ int ndbcluster_alter_tablespace(THD* thd, st_alter_tablespace *info)
...
@@ -9408,7 +9408,7 @@ int ndbcluster_alter_tablespace(THD* thd, st_alter_tablespace *info)
}
}
case
(
ALTER_TABLESPACE
):
case
(
ALTER_TABLESPACE
):
{
{
error
=
ER_ALTER_
TABLESPACE
_FAILED
;
error
=
ER_ALTER_
FILEGROUP
_FAILED
;
if
(
info
->
ts_alter_tablespace_type
==
ALTER_TABLESPACE_ADD_FILE
)
if
(
info
->
ts_alter_tablespace_type
==
ALTER_TABLESPACE_ADD_FILE
)
{
{
NdbDictionary
::
Datafile
ndb_df
;
NdbDictionary
::
Datafile
ndb_df
;
...
@@ -9437,7 +9437,7 @@ int ndbcluster_alter_tablespace(THD* thd, st_alter_tablespace *info)
...
@@ -9437,7 +9437,7 @@ int ndbcluster_alter_tablespace(THD* thd, st_alter_tablespace *info)
else
else
{
{
DBUG_PRINT
(
"error"
,
(
"No such datafile"
));
DBUG_PRINT
(
"error"
,
(
"No such datafile"
));
my_error
(
ER_ALTER_
TABLESPACE
_FAILED
,
MYF
(
0
),
" NO SUCH FILE"
);
my_error
(
ER_ALTER_
FILEGROUP
_FAILED
,
MYF
(
0
),
" NO SUCH FILE"
);
DBUG_RETURN
(
1
);
DBUG_RETURN
(
1
);
}
}
}
}
...
@@ -9452,7 +9452,7 @@ int ndbcluster_alter_tablespace(THD* thd, st_alter_tablespace *info)
...
@@ -9452,7 +9452,7 @@ int ndbcluster_alter_tablespace(THD* thd, st_alter_tablespace *info)
}
}
case
(
CREATE_LOGFILE_GROUP
):
case
(
CREATE_LOGFILE_GROUP
):
{
{
error
=
ER_CREATE_
TABLESPACE
_FAILED
;
error
=
ER_CREATE_
FILEGROUP
_FAILED
;
NdbDictionary
::
LogfileGroup
ndb_lg
;
NdbDictionary
::
LogfileGroup
ndb_lg
;
NdbDictionary
::
Undofile
ndb_uf
;
NdbDictionary
::
Undofile
ndb_uf
;
if
(
info
->
undo_file_name
==
NULL
)
if
(
info
->
undo_file_name
==
NULL
)
...
@@ -9485,7 +9485,7 @@ int ndbcluster_alter_tablespace(THD* thd, st_alter_tablespace *info)
...
@@ -9485,7 +9485,7 @@ int ndbcluster_alter_tablespace(THD* thd, st_alter_tablespace *info)
}
}
case
(
ALTER_LOGFILE_GROUP
):
case
(
ALTER_LOGFILE_GROUP
):
{
{
error
=
ER_ALTER_
TABLESPACE
_FAILED
;
error
=
ER_ALTER_
FILEGROUP
_FAILED
;
if
(
info
->
undo_file_name
==
NULL
)
if
(
info
->
undo_file_name
==
NULL
)
{
{
/*
/*
...
@@ -9507,7 +9507,7 @@ int ndbcluster_alter_tablespace(THD* thd, st_alter_tablespace *info)
...
@@ -9507,7 +9507,7 @@ int ndbcluster_alter_tablespace(THD* thd, st_alter_tablespace *info)
}
}
case
(
DROP_TABLESPACE
):
case
(
DROP_TABLESPACE
):
{
{
error
=
ER_DROP_
TABLESPACE
_FAILED
;
error
=
ER_DROP_
FILEGROUP
_FAILED
;
errmsg
=
"TABLESPACE"
;
errmsg
=
"TABLESPACE"
;
if
(
dict
->
dropTablespace
(
dict
->
getTablespace
(
info
->
tablespace_name
)))
if
(
dict
->
dropTablespace
(
dict
->
getTablespace
(
info
->
tablespace_name
)))
{
{
...
@@ -9518,7 +9518,7 @@ int ndbcluster_alter_tablespace(THD* thd, st_alter_tablespace *info)
...
@@ -9518,7 +9518,7 @@ int ndbcluster_alter_tablespace(THD* thd, st_alter_tablespace *info)
}
}
case
(
DROP_LOGFILE_GROUP
):
case
(
DROP_LOGFILE_GROUP
):
{
{
error
=
ER_DROP_
TABLESPACE
_FAILED
;
error
=
ER_DROP_
FILEGROUP
_FAILED
;
errmsg
=
"LOGFILE GROUP"
;
errmsg
=
"LOGFILE GROUP"
;
if
(
dict
->
dropLogfileGroup
(
dict
->
getLogfileGroup
(
info
->
logfile_group_name
)))
if
(
dict
->
dropLogfileGroup
(
dict
->
getLogfileGroup
(
info
->
logfile_group_name
)))
{
{
...
...
sql/share/errmsg.txt
View file @
3c164107
...
@@ -5739,11 +5739,11 @@ ER_WRONG_VALUE
...
@@ -5739,11 +5739,11 @@ ER_WRONG_VALUE
eng "Incorrect %-.32s value: '%-.128s'"
eng "Incorrect %-.32s value: '%-.128s'"
ER_NO_PARTITION_FOR_GIVEN_VALUE
ER_NO_PARTITION_FOR_GIVEN_VALUE
eng "Table has no partition for value %-.64s"
eng "Table has no partition for value %-.64s"
ER_
TABLESPACE
_OPTION_ONLY_ONCE
ER_
FILEGROUP
_OPTION_ONLY_ONCE
eng "It is not allowed to specify %s more than once"
eng "It is not allowed to specify %s more than once"
ER_CREATE_
TABLESPACE
_FAILED
ER_CREATE_
FILEGROUP
_FAILED
eng "Failed to create %s"
eng "Failed to create %s"
ER_DROP_
TABLESPACE
_FAILED
ER_DROP_
FILEGROUP
_FAILED
eng "Failed to drop %s"
eng "Failed to drop %s"
ER_TABLESPACE_AUTO_EXTEND_ERROR
ER_TABLESPACE_AUTO_EXTEND_ERROR
eng "The handler doesn't support autoextend of tablespaces"
eng "The handler doesn't support autoextend of tablespaces"
...
@@ -5751,7 +5751,7 @@ ER_WRONG_SIZE_NUMBER
...
@@ -5751,7 +5751,7 @@ ER_WRONG_SIZE_NUMBER
eng "A size parameter was incorrectly specified, either number or on the form 10M"
eng "A size parameter was incorrectly specified, either number or on the form 10M"
ER_SIZE_OVERFLOW_ERROR
ER_SIZE_OVERFLOW_ERROR
eng "The size number was correct but we don't allow the digit part to be more than 2 billion"
eng "The size number was correct but we don't allow the digit part to be more than 2 billion"
ER_ALTER_
TABLESPACE
_FAILED
ER_ALTER_
FILEGROUP
_FAILED
eng "Failed to alter: %s"
eng "Failed to alter: %s"
ER_BINLOG_ROW_LOGGING_FAILED
ER_BINLOG_ROW_LOGGING_FAILED
eng "Writing one row to the row-based binary log failed"
eng "Writing one row to the row-based binary log failed"
...
...
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