Your message dated Thu, 05 Jul 2012 15:53:12 +0000
with message-id <[email protected]>
and subject line Bug#680362: Removed package(s) from unstable
has caused the Debian Bug report #635838,
regarding mysqldumpslow doesn't handle "...\\" correctly
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
635838: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=635838
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: mysql-client-5.1
Version: 5.1.57-3
Severity: normal
Tags: patch

Hi,

% cat /tmp/ugly.log
# Time: 110726  9:21:14
# User@Host: user[user] @ localhost [::1]
# Query_time: 1  Lock_time: 0  Rows_sent: 0  Rows_examined: 413
SELECT SQL_CALC_FOUND_ROWS * FROM table WHERE column = 
'http://www.example.com/index.html?id=42\\\\';

old version:
% /tmp/mysqldumpslow.orig /tmp/ugly.log

Reading mysql slow query log from /tmp/ugly.log
Count: 1  Time=1.00s (1s)  Lock=0.00s (0s)  Rows=0.0 (0), user[user]@localhost
  SELECT SQL_CALC_FOUND_ROWS * FROM table WHERE column = 
'http://www.example.com/index.html?id=N\\\

new version:
% /tmp/mysqldumpslow /tmp/ugly.log

Reading mysql slow query log from /tmp/ugly.log
Count: 1  Time=1.00s (1s)  Lock=0.00s (0s)  Rows=0.0 (0), user[user]@localhost
  SELECT SQL_CALC_FOUND_ROWS * FROM table WHERE column = 'S'

% diff -u /tmp/mysqldumpslow.orig /tmp/mysqldumpslow
--- /tmp/mysqldumpslow.orig     2011-07-29 00:23:28.215764141 +0200
+++ /tmp/mysqldumpslow  2011-07-29 00:23:27.177763970 +0200
@@ -124,8 +124,9 @@
        s/\b0x[0-9A-Fa-f]+\b/N/g;
         s/''/'S'/g;
         s/""/"S"/g;
-        s/(\\')//g;
-        s/(\\")//g;
+        # You don't have to worry about \' at begin of line, because
+        # leading whitespace is normalized.
+        s/[^\\](?:\\\\)*(?:\\['"])//g;
         s/'[^']+'/'S'/g;
         s/"[^"]+"/"S"/g;
        # -n=8: turn log_20001231 into log_NNNNNNNN

Bye, Jörg.

-- System Information:
Debian Release: unstable/experimental
  APT prefers unstable
  APT policy: (900, 'unstable'), (700, 'experimental')
Architecture: powerpc (ppc)

Kernel: Linux 3.0.0-rc7.ledtest-00088-g1765a36-dirty
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Attachment: signature.asc
Description: Digital signature http://en.wikipedia.org/wiki/OpenPGP


--- End Message ---
--- Begin Message ---
Version: 5.1.62-1+rm

Dear submitter,

as the package mysql-5.1 has just been removed from the Debian archive
unstable we hereby close the associated bug reports.  We are sorry
that we couldn't deal with your issue properly.

For details on the removal, please see http://bugs.debian.org/680362

The version of this package that was in Debian prior to this removal
can still be found using http://snapshot.debian.org/.

This message was generated automatically; if you believe that there is
a problem with it please contact the archive administrators by mailing
[email protected].

Debian distribution maintenance software
pp.
Alexander Reichle-Schmehl (the ftpmaster behind the curtain)


--- End Message ---

Reply via email to