1728
1728
if ( !$found_arg && $pos == $len ) {
1729
1729
PTDEBUG && _d("Did not find arg, looking for special cases");
1730
local $INPUT_RECORD_SEPARATOR = ";\n";
1730
local $INPUT_RECORD_SEPARATOR = ";\n"; # get next line
1731
1731
if ( defined(my $l = $next_event->()) ) {
1734
PTDEBUG && _d("Found admin statement", $l);
1735
push @properties, 'cmd', 'Admin', 'arg', $l;
1736
push @properties, 'bytes', length($properties[-1]);
1732
if ( $l =~ /^\s*[A-Z][a-z_]+: / ) {
1733
PTDEBUG && _d("Found NULL query before", $l);
1734
local $INPUT_RECORD_SEPARATOR = ";\n#";
1735
my $rest_of_event = $next_event->();
1736
push @{$self->{pending}}, $l . $rest_of_event;
1737
push @properties, 'cmd', 'Query', 'arg', '/* No query */';
1738
push @properties, 'bytes', 0;
1744
PTDEBUG && _d("Found admin statement", $l);
1745
push @properties, 'cmd', 'Admin', 'arg', $l;
1746
push @properties, 'bytes', length($properties[-1]);
1740
1751
PTDEBUG && _d("I can't figure out what to do with this line");
1893
my ($user, undef, $db) = $arg =~ /(\S+)/g;
1904
my ($user) = $arg =~ m/(\S+)/;
1905
my ($db) = $arg =~ m/on (\S+)/;
1895
1907
($user, $host) = split(/@/, $user);
1896
1908
PTDEBUG && _d('Connect', $user, '@', $host, 'on', $db);
2907
2919
. (defined $f ? '%09.6f' : '%02d'),
2908
2920
$y + 2000, $m, $d, $h, $i, (defined $f ? $s + $f : $s);
2922
elsif ( $val =~ m/^$proper_ts$/ ) {