Make GeneralLogParser.pm understand the "as" part of a Connect command.

This commit is contained in:
Daniel Nichter
2012-11-14 11:38:55 -07:00
parent 2c9ebf33e2
commit 9b105ee2d2
4 changed files with 61 additions and 4 deletions

View File

@@ -9682,7 +9682,8 @@ sub parse_event {
$cmd = $arg;
}
else {
my ($user, undef, $db) = $arg =~ /(\S+)/g;
my ($user) = $arg =~ m/(\S+)/;
my ($db) = $arg =~ m/on (\S+)/;
my $host;
($user, $host) = split(/@/, $user);
PTDEBUG && _d('Connect', $user, '@', $host, 'on', $db);