diff options
| author | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2024-05-28 07:37:18 +0300 |
|---|---|---|
| committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2024-05-28 07:37:18 +0300 |
| commit | 6f47c7ae8c7afaf9ad291d39f0d3974f191a7946 (patch) | |
| tree | 74ce89b352cb8096e6a94ddc8597274d3e2d53ce /tools/perf/scripts/python/exported-sql-viewer.py | |
| parent | 832f54c9ccd3a3f32d1db905462d3c58b4df52bd (diff) | |
| parent | a38297e3fb012ddfa7ce0321a7e5a8daeb1872b6 (diff) | |
| download | linux-6f47c7ae8c7afaf9ad291d39f0d3974f191a7946.tar.xz | |
Merge tag 'v6.9' into next
Sync up with the mainline to bring in the new cleanup API.
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
| -rwxr-xr-x | tools/perf/scripts/python/exported-sql-viewer.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/perf/scripts/python/exported-sql-viewer.py b/tools/perf/scripts/python/exported-sql-viewer.py index 13f2d8a81610..121cf61ba1b3 100755 --- a/tools/perf/scripts/python/exported-sql-viewer.py +++ b/tools/perf/scripts/python/exported-sql-viewer.py @@ -677,8 +677,8 @@ class CallGraphModelBase(TreeModel): # sqlite supports GLOB (text only) which uses * and ? and is case sensitive if not self.glb.dbref.is_sqlite3: # Escape % and _ - s = value.replace("%", "\%") - s = s.replace("_", "\_") + s = value.replace("%", "\\%") + s = s.replace("_", "\\_") # Translate * and ? into SQL LIKE pattern characters % and _ trans = string.maketrans("*?", "%_") match = " LIKE '" + str(s).translate(trans) + "'" |
