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
635d049d
Commit
635d049d
authored
Aug 13, 2007
by
marko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
branches/zip: row_rename_table_for_mysql(): Change the return type to ulint
and simplify error handling.
parent
b4e60c05
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
8 deletions
+6
-8
include/row0mysql.h
include/row0mysql.h
+1
-1
row/row0mysql.c
row/row0mysql.c
+5
-7
No files found.
include/row0mysql.h
View file @
635d049d
...
...
@@ -488,7 +488,7 @@ row_drop_database_for_mysql(
/*************************************************************************
Renames a table for MySQL. */
int
ul
int
row_rename_table_for_mysql
(
/*=======================*/
/* out: error code or DB_SUCCESS */
...
...
row/row0mysql.c
View file @
635d049d
...
...
@@ -3747,7 +3747,7 @@ row_delete_constraint(
/*************************************************************************
Renames a table for MySQL. */
int
ul
int
row_rename_table_for_mysql
(
/*=======================*/
/* out: error code or DB_SUCCESS */
...
...
@@ -3757,7 +3757,7 @@ row_rename_table_for_mysql(
ibool
commit
)
/* in: if TRUE then commit trx */
{
dict_table_t
*
table
;
ulint
err
;
ulint
err
=
DB_ERROR
;
mem_heap_t
*
heap
=
NULL
;
const
char
**
constraints_to_drop
=
NULL
;
ulint
n_constraints_to_drop
=
0
;
...
...
@@ -3777,8 +3777,7 @@ row_rename_table_for_mysql(
"InnoDB: with raw, and innodb_force_... is removed.
\n
"
,
stderr
);
trx_commit_for_mysql
(
trx
);
return
(
DB_ERROR
);
goto
funct_exit
;
}
else
if
(
row_mysql_is_system_table
(
new_name
))
{
fprintf
(
stderr
,
...
...
@@ -3788,8 +3787,7 @@ row_rename_table_for_mysql(
" of the MyISAM type!
\n
"
,
new_name
);
trx_commit_for_mysql
(
trx
);
return
(
DB_ERROR
);
goto
funct_exit
;
}
trx
->
op_info
=
"renaming table"
;
...
...
@@ -4080,7 +4078,7 @@ row_rename_table_for_mysql(
trx
->
op_info
=
""
;
return
(
(
int
)
err
);
return
(
err
);
}
/*************************************************************************
...
...
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