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
f80babd6
Commit
f80babd6
authored
Feb 24, 2007
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Replace non portable system commmands in trigger-grant
parent
d1351a6d
Changes
1
Hide 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 @
f80babd6
...
...
@@ -232,9 +232,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