Fixed error introduced in MySQLProtocolParser

When originally moved the fix out of the pt-query-digest into
MySQLProtocolParser I made a mistake and I've introduced an error.
Fixed.
This commit is contained in:
Carlos Salguero
2016-06-13 17:29:24 -03:00
parent 5cc70d2b36
commit 1accb78055
3 changed files with 3 additions and 3 deletions

View File

@@ -1223,7 +1223,7 @@ sub parse_client_handshake_packet {
my ( $db ) = $data =~ m!
^.{64}${user}00.. # Everything matched before
(?:..){$code_len} # The scramble buffer
(.*)00.*\Z # The database name
(.*?)00.*\Z # The database name
!x;
my $pkt = {
user => to_string($user),