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
0e69c15d
Commit
0e69c15d
authored
Mar 02, 2006
by
osku
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
row0mysql.c: Replace tabs within strings with spaces.
parent
758331dc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
62 additions
and
62 deletions
+62
-62
row/row0mysql.c
row/row0mysql.c
+62
-62
No files found.
row/row0mysql.c
View file @
0e69c15d
...
@@ -2405,8 +2405,8 @@ do not allow the discard. We also reserve the data dictionary latch. */
...
@@ -2405,8 +2405,8 @@ do not allow the discard. We also reserve the data dictionary latch. */
"FROM SYS_TABLES
\n
"
"FROM SYS_TABLES
\n
"
"WHERE NAME = table_name;
\n
"
"WHERE NAME = table_name;
\n
"
"IF (SQL %% NOTFOUND) THEN
\n
"
"IF (SQL %% NOTFOUND) THEN
\n
"
"
COMMIT WORK;
\n
"
"
COMMIT WORK;
\n
"
"
RETURN;
\n
"
"
RETURN;
\n
"
"END IF;
\n
"
"END IF;
\n
"
"UPDATE SYS_TABLES SET ID = new_id
\n
"
"UPDATE SYS_TABLES SET ID = new_id
\n
"
"WHERE ID = old_id;
\n
"
"WHERE ID = old_id;
\n
"
...
@@ -3039,46 +3039,46 @@ row_drop_table_for_mysql(
...
@@ -3039,46 +3039,46 @@ row_drop_table_for_mysql(
"FROM SYS_TABLES
\n
"
"FROM SYS_TABLES
\n
"
"WHERE NAME = table_name;
\n
"
"WHERE NAME = table_name;
\n
"
"IF (SQL % NOTFOUND) THEN
\n
"
"IF (SQL % NOTFOUND) THEN
\n
"
"
COMMIT WORK;
\n
"
"
COMMIT WORK;
\n
"
"
RETURN;
\n
"
"
RETURN;
\n
"
"END IF;
\n
"
"END IF;
\n
"
"found := 1;
\n
"
"found := 1;
\n
"
"SELECT ID INTO sys_foreign_id
\n
"
"SELECT ID INTO sys_foreign_id
\n
"
"FROM SYS_TABLES
\n
"
"FROM SYS_TABLES
\n
"
"WHERE NAME = 'SYS_FOREIGN';
\n
"
"WHERE NAME = 'SYS_FOREIGN';
\n
"
"IF (SQL % NOTFOUND) THEN
\n
"
"IF (SQL % NOTFOUND) THEN
\n
"
"
found := 0;
\n
"
"
found := 0;
\n
"
"END IF;
\n
"
"END IF;
\n
"
"IF (table_name = 'SYS_FOREIGN') THEN
\n
"
"IF (table_name = 'SYS_FOREIGN') THEN
\n
"
"
found := 0;
\n
"
"
found := 0;
\n
"
"END IF;
\n
"
"END IF;
\n
"
"IF (table_name = 'SYS_FOREIGN_COLS') THEN
\n
"
"IF (table_name = 'SYS_FOREIGN_COLS') THEN
\n
"
"
found := 0;
\n
"
"
found := 0;
\n
"
"END IF;
\n
"
"END IF;
\n
"
"WHILE found = 1 LOOP
\n
"
"WHILE found = 1 LOOP
\n
"
"
SELECT ID INTO foreign_id
\n
"
"
SELECT ID INTO foreign_id
\n
"
"
FROM SYS_FOREIGN
\n
"
"
FROM SYS_FOREIGN
\n
"
"
WHERE FOR_NAME = table_name
\n
"
"
WHERE FOR_NAME = table_name
\n
"
"
AND TO_BINARY(FOR_NAME) = TO_BINARY(table_name);
\n
"
"
AND TO_BINARY(FOR_NAME) = TO_BINARY(table_name);
\n
"
"
IF (SQL % NOTFOUND) THEN
\n
"
"
IF (SQL % NOTFOUND) THEN
\n
"
"
found := 0;
\n
"
"
found := 0;
\n
"
"
ELSE"
"
ELSE"
"
DELETE FROM SYS_FOREIGN_COLS WHERE ID = foreign_id;
\n
"
"
DELETE FROM SYS_FOREIGN_COLS WHERE ID = foreign_id;
\n
"
"
DELETE FROM SYS_FOREIGN WHERE ID = foreign_id;
\n
"
"
DELETE FROM SYS_FOREIGN WHERE ID = foreign_id;
\n
"
"
END IF;
\n
"
"
END IF;
\n
"
"END LOOP;
\n
"
"END LOOP;
\n
"
"found := 1;
\n
"
"found := 1;
\n
"
"WHILE found = 1 LOOP
\n
"
"WHILE found = 1 LOOP
\n
"
"
SELECT ID INTO index_id
\n
"
"
SELECT ID INTO index_id
\n
"
"
FROM SYS_INDEXES
\n
"
"
FROM SYS_INDEXES
\n
"
"
WHERE TABLE_ID = table_id;
\n
"
"
WHERE TABLE_ID = table_id;
\n
"
"
IF (SQL % NOTFOUND) THEN
\n
"
"
IF (SQL % NOTFOUND) THEN
\n
"
"
found := 0;
\n
"
"
found := 0;
\n
"
"
ELSE"
"
ELSE"
"
DELETE FROM SYS_FIELDS WHERE INDEX_ID = index_id;
\n
"
"
DELETE FROM SYS_FIELDS WHERE INDEX_ID = index_id;
\n
"
"
DELETE FROM SYS_INDEXES WHERE ID = index_id
\n
"
"
DELETE FROM SYS_INDEXES WHERE ID = index_id
\n
"
"
AND TABLE_ID = table_id;
\n
"
"
AND TABLE_ID = table_id;
\n
"
"
END IF;
\n
"
"
END IF;
\n
"
"END LOOP;
\n
"
"END LOOP;
\n
"
"DELETE FROM SYS_COLUMNS WHERE TABLE_ID = table_id;
\n
"
"DELETE FROM SYS_COLUMNS WHERE TABLE_ID = table_id;
\n
"
"DELETE FROM SYS_TABLES WHERE ID = table_id;
\n
"
"DELETE FROM SYS_TABLES WHERE ID = table_id;
\n
"
...
@@ -3544,44 +3544,44 @@ row_rename_table_for_mysql(
...
@@ -3544,44 +3544,44 @@ row_rename_table_for_mysql(
"old_t_name_len := LENGTH(old_table_name);
\n
"
"old_t_name_len := LENGTH(old_table_name);
\n
"
"gen_constr_prefix := CONCAT(old_table_name, '_ibfk_');
\n
"
"gen_constr_prefix := CONCAT(old_table_name, '_ibfk_');
\n
"
"WHILE found = 1 LOOP
\n
"
"WHILE found = 1 LOOP
\n
"
"
SELECT ID INTO foreign_id
\n
"
"
SELECT ID INTO foreign_id
\n
"
"
FROM SYS_FOREIGN
\n
"
"
FROM SYS_FOREIGN
\n
"
"
WHERE FOR_NAME = old_table_name
\n
"
"
WHERE FOR_NAME = old_table_name
\n
"
"
AND TO_BINARY(FOR_NAME) = TO_BINARY(old_table_name);
\n
"
"
AND TO_BINARY(FOR_NAME) = TO_BINARY(old_table_name);
\n
"
"
IF (SQL % NOTFOUND) THEN
\n
"
"
IF (SQL % NOTFOUND) THEN
\n
"
"
found := 0;
\n
"
"
found := 0;
\n
"
"
ELSE
\n
"
"
ELSE
\n
"
"
UPDATE SYS_FOREIGN
\n
"
"
UPDATE SYS_FOREIGN
\n
"
"
SET FOR_NAME = new_table_name
\n
"
"
SET FOR_NAME = new_table_name
\n
"
"
WHERE ID = foreign_id;
\n
"
"
WHERE ID = foreign_id;
\n
"
"
id_len := LENGTH(foreign_id);
\n
"
"
id_len := LENGTH(foreign_id);
\n
"
"
IF (INSTR(foreign_id, '/') > 0) THEN
\n
"
"
IF (INSTR(foreign_id, '/') > 0) THEN
\n
"
"
IF (INSTR(foreign_id,
\n
"
"
IF (INSTR(foreign_id,
\n
"
"
gen_constr_prefix) > 0)
\n
"
"
gen_constr_prefix) > 0)
\n
"
"
THEN
\n
"
"
THEN
\n
"
"
new_foreign_id :=
\n
"
"
new_foreign_id :=
\n
"
"
CONCAT(new_table_name,
\n
"
"
CONCAT(new_table_name,
\n
"
"
SUBSTR(foreign_id, old_t_name_len,
\n
"
"
SUBSTR(foreign_id, old_t_name_len,
\n
"
"
id_len - old_t_name_len));
\n
"
"
id_len - old_t_name_len));
\n
"
"
ELSE
\n
"
"
ELSE
\n
"
"
new_foreign_id :=
\n
"
"
new_foreign_id :=
\n
"
"
CONCAT(new_db_name,
\n
"
"
CONCAT(new_db_name,
\n
"
"
SUBSTR(foreign_id,
\n
"
"
SUBSTR(foreign_id,
\n
"
"
old_db_name_len,
\n
"
"
old_db_name_len,
\n
"
"
id_len - old_db_name_len));
\n
"
"
id_len - old_db_name_len));
\n
"
"
END IF;
\n
"
"
END IF;
\n
"
"
UPDATE SYS_FOREIGN
\n
"
"
UPDATE SYS_FOREIGN
\n
"
"
SET ID = new_foreign_id
\n
"
"
SET ID = new_foreign_id
\n
"
"
WHERE ID = foreign_id;
\n
"
"
WHERE ID = foreign_id;
\n
"
"
UPDATE SYS_FOREIGN_COLS
\n
"
"
UPDATE SYS_FOREIGN_COLS
\n
"
"
SET ID = new_foreign_id
\n
"
"
SET ID = new_foreign_id
\n
"
"
WHERE ID = foreign_id;
\n
"
"
WHERE ID = foreign_id;
\n
"
"
END IF;
\n
"
"
END IF;
\n
"
"
END IF;
\n
"
"
END IF;
\n
"
"END LOOP;
\n
"
"END LOOP;
\n
"
"UPDATE SYS_FOREIGN SET REF_NAME = new_table_name
\n
"
"UPDATE SYS_FOREIGN SET REF_NAME = new_table_name
\n
"
"WHERE REF_NAME = old_table_name
\n
"
"WHERE REF_NAME = old_table_name
\n
"
"
AND TO_BINARY(REF_NAME) = TO_BINARY(old_table_name);
\n
"
;
"
AND TO_BINARY(REF_NAME) = TO_BINARY(old_table_name);
\n
"
;
static
const
char
str5
[]
=
static
const
char
str5
[]
=
"END;
\n
"
;
"END;
\n
"
;
...
...
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