OSDN Git Service

perf scripts python: exported-sql-viewer.py: Fix use of TRUE with SQLite
authorAdrian Hunter <adrian.hunter@intel.com>
Wed, 13 Nov 2019 12:02:06 +0000 (14:02 +0200)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 13 Nov 2019 12:13:16 +0000 (09:13 -0300)
commitaf833988c088d3fed3e7188e7c3dd9ca17178dc3
treee21fd213efaef2fb4a5abc9e059718f4aec95429
parentda3ef7f6cd5222f5a0289c4eb34254c62629b603
perf scripts python: exported-sql-viewer.py: Fix use of TRUE with SQLite

Prior to version 3.23 SQLite does not support TRUE or FALSE, so always
use 1 and 0 for SQLite.

Fixes: 26c11206f433 ("perf scripts python: exported-sql-viewer.py: Use new 'has_calls' column")
Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: stable@vger.kernel.org # v5.3+
Link: http://lore.kernel.org/lkml/20191113120206.26957-1-adrian.hunter@intel.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/scripts/python/exported-sql-viewer.py