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
e772a22d
Commit
e772a22d
authored
Mar 21, 2007
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge bk-internal.mysql.com:/home/bk/mysql-5.0-maint
into recycle.(none):/src/bug27144/my50-bug27144
parents
4390f788
65c34cc8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
14 deletions
+18
-14
mysql-test/t/sp-destruct.test
mysql-test/t/sp-destruct.test
+18
-14
No files found.
mysql-test/t/sp-destruct.test
View file @
e772a22d
...
...
@@ -7,13 +7,10 @@
# In the case of trouble you might want to skip this.
#
# We're using --system things that probably doesn't work on Windows.
--
source
include
/
not_windows
.
inc
# Backup proc table
--
system
rm
-
rf
$MYSQLTEST_VARDIR
/
master
-
data
/
mysql
/
backup
--
system
mkdir
$MYSQLTEST_VARDIR
/
master
-
data
/
mysql
/
backup
--
system
cp
$MYSQLTEST_VARDIR
/
master
-
data
/
mysql
/
proc
.*
$MYSQLTEST_VARDIR
/
master
-
data
/
mysql
/
backup
/
--
copy_file
$MYSQLTEST_VARDIR
/
master
-
data
/
mysql
/
proc
.
frm
$MYSQLTEST_VARDIR
/
tmp
/
proc
.
frm
--
copy_file
$MYSQLTEST_VARDIR
/
master
-
data
/
mysql
/
proc
.
MYD
$MYSQLTEST_VARDIR
/
tmp
/
proc
.
MYD
--
copy_file
$MYSQLTEST_VARDIR
/
master
-
data
/
mysql
/
proc
.
MYI
$MYSQLTEST_VARDIR
/
tmp
/
proc
.
MYI
use
test
;
...
...
@@ -45,22 +42,25 @@ insert into t1 values (0);
flush
table
mysql
.
proc
;
# Thrashing the .frm file
--
system
echo
'saljdlfa'
>
$MYSQLTEST_VARDIR
/
master
-
data
/
mysql
/
proc
.
frm
--
replace_result
$MYSQLTEST_VARDIR
.
master
-
data
// ''
--
write_file
$MYSQLTEST_VARDIR
/
master
-
data
/
mysql
/
proc
.
frm
saljdfa
EOF
--
replace_result
$MYSQLTEST_VARDIR
.
master
-
data
// '' '\\' '/'
--
error
ER_NOT_FORM_FILE
call
bug14233
();
--
replace_result
$MYSQLTEST_VARDIR
.
master
-
data
// ''
--
replace_result
$MYSQLTEST_VARDIR
.
master
-
data
// ''
'\\' '/'
--
error
ER_NOT_FORM_FILE
create
view
v1
as
select
bug14233_f
();
--
replace_result
$MYSQLTEST_VARDIR
.
master
-
data
// ''
--
replace_result
$MYSQLTEST_VARDIR
.
master
-
data
// ''
'\\' '/'
--
error
ER_NOT_FORM_FILE
insert
into
t1
values
(
0
);
flush
table
mysql
.
proc
;
# Drop the mysql.proc table
--
system
rm
$MYSQLTEST_VARDIR
/
master
-
data
/
mysql
/
proc
.*
--
remove_file
$MYSQLTEST_VARDIR
/
master
-
data
/
mysql
/
proc
.
frm
--
remove_file
$MYSQLTEST_VARDIR
/
master
-
data
/
mysql
/
proc
.
MYD
--
remove_file
$MYSQLTEST_VARDIR
/
master
-
data
/
mysql
/
proc
.
MYI
--
error
ER_NO_SUCH_TABLE
call
bug14233
();
--
error
ER_NO_SUCH_TABLE
...
...
@@ -69,8 +69,12 @@ create view v1 as select bug14233_f();
insert
into
t1
values
(
0
);
# Restore mysql.proc
--
system
mv
$MYSQLTEST_VARDIR
/
master
-
data
/
mysql
/
backup
/*
$MYSQLTEST_VARDIR
/
master
-
data
/
mysql
/
--
system
rmdir
$MYSQLTEST_VARDIR
/
master
-
data
/
mysql
/
backup
--
copy_file
$MYSQLTEST_VARDIR
/
tmp
/
proc
.
frm
$MYSQLTEST_VARDIR
/
master
-
data
/
mysql
/
proc
.
frm
--
copy_file
$MYSQLTEST_VARDIR
/
tmp
/
proc
.
MYD
$MYSQLTEST_VARDIR
/
master
-
data
/
mysql
/
proc
.
MYD
--
copy_file
$MYSQLTEST_VARDIR
/
tmp
/
proc
.
MYI
$MYSQLTEST_VARDIR
/
master
-
data
/
mysql
/
proc
.
MYI
--
remove_file
$MYSQLTEST_VARDIR
/
tmp
/
proc
.
frm
--
remove_file
$MYSQLTEST_VARDIR
/
tmp
/
proc
.
MYD
--
remove_file
$MYSQLTEST_VARDIR
/
tmp
/
proc
.
MYI
flush
table
mysql
.
proc
;
flush
privileges
;
...
...
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