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
79131084
Commit
79131084
authored
Aug 11, 2001
by
monty@hundin.mysql.fi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed handling of strings in mysqldumpslow
parent
65a711f4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
+5
-4
scripts/mysqldumpslow.sh
scripts/mysqldumpslow.sh
+3
-2
sql/mysqlbinlog.cc
sql/mysqlbinlog.cc
+2
-2
No files found.
scripts/mysqldumpslow.sh
View file @
79131084
...
...
@@ -3,6 +3,7 @@
# Original version by Tim Bunce, sometime in 2000.
# Further changes by Tim Bunce, 8th March 2001.
# Handling of strings with \ and double '' by Monty 11 Aug 2001.
use strict
;
use Getopt::Long
;
...
...
@@ -95,8 +96,8 @@ while ( defined($_ = shift @pending) or defined($_ = <>) ) {
unless
(
$opt
{
a
})
{
s/
\b\d
+
\b
/N/g
;
s/
\b
0x[0-9A-Fa-f]+
\b
/N/g
;
s/
'
.*?
'
/
'S'
/g
;
s/
"
.*?
"
/
"S"
/g
;
s/
'
([^\\\'
]
|
\\
.|
\'\'
)
+
'/'
S
'/g;
s/"
([^\\\"]|\\.|\"\")+
"/"S"/g;
# -n=8: turn log_20001231 into log_NNNNNNNN
s/([a-z_]+)(\d{$opt{n},})/$1.('
N
' x length($2))/ieg if $opt{n};
# abbreviate massive "in (...)" statements and similar
...
...
sql/mysqlbinlog.cc
View file @
79131084
...
...
@@ -108,7 +108,7 @@ static void die(const char* fmt, ...)
static
void
print_version
()
{
printf
(
"%s Ver 1.
4
for %s at %s
\n
"
,
my_progname
,
SYSTEM_TYPE
,
MACHINE_TYPE
);
printf
(
"%s Ver 1.
5
for %s at %s
\n
"
,
my_progname
,
SYSTEM_TYPE
,
MACHINE_TYPE
);
}
...
...
@@ -133,7 +133,7 @@ the mysql command line client\n\n");
-o, --offset=N Skip the first N entries
\n
\
-h, --host=server Get the binlog from server
\n
\
-P, --port=port Use port to connect to the remote server
\n
\
-u, --user=username Connect to the remo
v
e server as username
\n
\
-u, --user=username Connect to the remo
t
e server as username
\n
\
-p, --password=password Password to connect to remote server
\n
\
-r, --result-file=file Direct output to a given file
\n
\
-j, --position=N Start reading the binlog at position N
\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