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
26f5adf3
Commit
26f5adf3
authored
Apr 13, 2006
by
osku
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use que_eval_sql() in dict_create_or_check_foreign_constraint_tables.
parent
93e91928
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
22 deletions
+3
-22
dict/dict0crea.c
dict/dict0crea.c
+3
-22
No files found.
dict/dict0crea.c
View file @
26f5adf3
...
...
@@ -1127,11 +1127,8 @@ dict_create_or_check_foreign_constraint_tables(void)
{
dict_table_t
*
table1
;
dict_table_t
*
table2
;
que_thr_t
*
thr
;
que_t
*
graph
;
ulint
error
;
trx_t
*
trx
;
const
char
*
str
;
mutex_enter
(
&
(
dict_sys
->
mutex
));
...
...
@@ -1183,7 +1180,7 @@ dict_create_or_check_foreign_constraint_tables(void)
VARBINARY, like in other InnoDB system tables, to get a clean
design. */
str
=
error
=
que_eval_sql
(
NULL
,
"PROCEDURE CREATE_FOREIGN_SYS_TABLES_PROC () IS
\n
"
"BEGIN
\n
"
"CREATE TABLE
\n
"
...
...
@@ -1195,22 +1192,8 @@ dict_create_or_check_foreign_constraint_tables(void)
"SYS_FOREIGN_COLS(ID CHAR, POS INT, FOR_COL_NAME CHAR, REF_COL_NAME CHAR);
\n
"
"CREATE UNIQUE CLUSTERED INDEX ID_IND ON SYS_FOREIGN_COLS (ID, POS);
\n
"
"COMMIT WORK;
\n
"
"END;
\n
"
;
graph
=
pars_sql
(
NULL
,
str
);
ut_a
(
graph
);
graph
->
trx
=
trx
;
trx
->
graph
=
NULL
;
graph
->
fork_type
=
QUE_FORK_MYSQL_INTERFACE
;
ut_a
(
thr
=
que_fork_start_command
(
graph
));
que_run_threads
(
thr
);
error
=
trx
->
error_state
;
"END;
\n
"
,
trx
);
if
(
error
!=
DB_SUCCESS
)
{
fprintf
(
stderr
,
"InnoDB: error %lu in creation
\n
"
,
...
...
@@ -1229,8 +1212,6 @@ dict_create_or_check_foreign_constraint_tables(void)
error
=
DB_MUST_GET_MORE_FILE_SPACE
;
}
que_graph_free
(
graph
);
trx
->
op_info
=
""
;
row_mysql_unlock_data_dictionary
(
trx
);
...
...
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