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
da3c2d38
Commit
da3c2d38
authored
Feb 24, 2007
by
msvensson@pilot.blaudden
Browse files
Options
Browse Files
Download
Plain Diff
Merge pilot.blaudden:/home/msvensson/mysql/mysql-5.0-maint
into pilot.blaudden:/home/msvensson/mysql/mysql-5.1-new-maint
parents
b79c217d
e4700df9
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
3 deletions
+13
-3
mysql-test/t/trigger-grant.test
mysql-test/t/trigger-grant.test
+13
-3
No files found.
mysql-test/t/trigger-grant.test
View file @
da3c2d38
...
...
@@ -359,9 +359,19 @@ CREATE TRIGGER trg5 BEFORE DELETE ON t1
FOR
EACH
ROW
SET
@
a
=
5
;
--
system
grep
-
v
'^definers='
$MYSQLTEST_VARDIR
/
master
-
data
/
mysqltest_db1
/
t1
.
TRG
>
$MYSQLTEST_VARDIR
/
tmp
/
t1
.
TRG
--
system
echo
"definers='' '@' '@abc@def@@' '@hostname' '@abcdef@@@hostname'"
>>
$MYSQLTEST_VARDIR
/
tmp
/
t1
.
TRG
--
system
mv
$MYSQLTEST_VARDIR
/
tmp
/
t1
.
TRG
$MYSQLTEST_VARDIR
/
master
-
data
/
mysqltest_db1
/
t1
.
TRG
# Replace definers with the "weird" definers
perl
;
use
strict
;
use
warnings
;
my
$fname
=
"
$ENV
{
'MYSQLTEST_VARDIR'
}
/master-data/mysqltest_db1/t1.TRG"
;
open
(
FILE
,
"<"
,
$fname
)
or
die
;
my
@
content
=
grep
(
$_
!~
/^
definers
=/
,
<
FILE
>
);
close
FILE
;
open
(
FILE
,
">"
,
$fname
)
or
die
;
print
FILE
@
content
;
print
FILE
"definers='' '\@' '\@abc\@def\@\@' '\@hostname' '\@abcdef\@\@\@hostname'
\n
"
;
close
FILE
;
EOF
--
echo
...
...
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