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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
888fcd6f
Commit
888fcd6f
authored
Apr 04, 2007
by
gni/root@dev3-221.dev.cn.tlan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
recovery from 5.0 merge for bug18676
parent
99895eb6
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
7 deletions
+7
-7
mysql-test/r/ndb_autodiscover.result
mysql-test/r/ndb_autodiscover.result
+1
-1
sql/ha_ndbcluster.cc
sql/ha_ndbcluster.cc
+2
-0
sql/handler.cc
sql/handler.cc
+4
-4
sql/sql_table.cc
sql/sql_table.cc
+0
-2
No files found.
mysql-test/r/ndb_autodiscover.result
View file @
888fcd6f
...
@@ -382,7 +382,7 @@ create table t1 (a int primary key) engine=ndb;
...
@@ -382,7 +382,7 @@ create table t1 (a int primary key) engine=ndb;
select * from t1;
select * from t1;
a
a
select * from t1;
select * from t1;
ERROR HY000: Can't lock file (errno:
157
)
ERROR HY000: Can't lock file (errno:
4009
)
use test;
use test;
drop database test_only_ndb_tables;
drop database test_only_ndb_tables;
CREATE TABLE t9 (
CREATE TABLE t9 (
...
...
sql/ha_ndbcluster.cc
View file @
888fcd6f
...
@@ -221,6 +221,7 @@ static int ndb_to_mysql_error(const NdbError *ndberr)
...
@@ -221,6 +221,7 @@ static int ndb_to_mysql_error(const NdbError *ndberr)
{
{
/* read the mysql mapped error code */
/* read the mysql mapped error code */
int
error
=
ndberr
->
mysql_code
;
int
error
=
ndberr
->
mysql_code
;
switch
(
error
)
switch
(
error
)
{
{
/* errors for which we do not add warnings, just return mapped error code
/* errors for which we do not add warnings, just return mapped error code
...
@@ -239,6 +240,7 @@ static int ndb_to_mysql_error(const NdbError *ndberr)
...
@@ -239,6 +240,7 @@ static int ndb_to_mysql_error(const NdbError *ndberr)
default:
default:
break
;
break
;
}
}
/*
/*
Push the NDB error message as warning
Push the NDB error message as warning
- Used to be able to use SHOW WARNINGS toget more info on what the error is
- Used to be able to use SHOW WARNINGS toget more info on what the error is
...
...
sql/handler.cc
View file @
888fcd6f
...
@@ -2865,8 +2865,8 @@ ha_find_files(THD *thd,const char *db,const char *path,
...
@@ -2865,8 +2865,8 @@ ha_find_files(THD *thd,const char *db,const char *path,
Ask handler if the table exists in engine
Ask handler if the table exists in engine
RETURN
RETURN
HA_ERR_NO_SUCH_TABLE
Table does not exist
0
Table does not exist
HA_ERR_TABLE_EXIST
Table exists
1
Table exists
# Error code
# Error code
*/
*/
...
@@ -2891,7 +2891,7 @@ static my_bool table_exists_in_engine_handlerton(THD *thd, st_plugin_int *plugin
...
@@ -2891,7 +2891,7 @@ static my_bool table_exists_in_engine_handlerton(THD *thd, st_plugin_int *plugin
int
ha_table_exists_in_engine
(
THD
*
thd
,
const
char
*
db
,
const
char
*
name
)
int
ha_table_exists_in_engine
(
THD
*
thd
,
const
char
*
db
,
const
char
*
name
)
{
{
int
error
=
HA_ERR_NO_SUCH_TABLE
;
int
error
=
0
;
DBUG_ENTER
(
"ha_table_exists_in_engine"
);
DBUG_ENTER
(
"ha_table_exists_in_engine"
);
DBUG_PRINT
(
"enter"
,
(
"db: %s, name: %s"
,
db
,
name
));
DBUG_PRINT
(
"enter"
,
(
"db: %s, name: %s"
,
db
,
name
));
st_table_exists_in_engine_args
args
=
{
db
,
name
};
st_table_exists_in_engine_args
args
=
{
db
,
name
};
...
...
sql/sql_table.cc
View file @
888fcd6f
...
@@ -3439,7 +3439,6 @@ bool mysql_create_table_internal(THD *thd,
...
@@ -3439,7 +3439,6 @@ bool mysql_create_table_internal(THD *thd,
error
=
0
;
error
=
0
;
goto
err
;
goto
err
;
}
}
DBUG_PRINT
(
"info"
,(
"1"
));
my_error
(
ER_TABLE_EXISTS_ERROR
,
MYF
(
0
),
alias
);
my_error
(
ER_TABLE_EXISTS_ERROR
,
MYF
(
0
),
alias
);
goto
err
;
goto
err
;
}
}
...
@@ -3451,7 +3450,6 @@ bool mysql_create_table_internal(THD *thd,
...
@@ -3451,7 +3450,6 @@ bool mysql_create_table_internal(THD *thd,
{
{
if
(
create_info
->
options
&
HA_LEX_CREATE_IF_NOT_EXISTS
)
if
(
create_info
->
options
&
HA_LEX_CREATE_IF_NOT_EXISTS
)
goto
warn
;
goto
warn
;
DBUG_PRINT
(
"info"
,(
"2"
));
my_error
(
ER_TABLE_EXISTS_ERROR
,
MYF
(
0
),
table_name
);
my_error
(
ER_TABLE_EXISTS_ERROR
,
MYF
(
0
),
table_name
);
goto
unlock_and_end
;
goto
unlock_and_end
;
}
}
...
...
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