From 0e01348ccdf88b39d6ef11aaf358e12a346c46de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= Date: Mon, 19 Jan 2015 16:18:15 +0100 Subject: [PATCH] Disable traceing tests failing with sqlite 3.6.20 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit SQLite supports tracing executions. However when placeholders are used older sqlite versions like 3.6.20 reports the placeholders instead of actual values. For example, 3.7.17 repors values as expected. Signed-off-by: Petr Písař --- t/49_trace_and_profile.t | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/t/49_trace_and_profile.t b/t/49_trace_and_profile.t index b56826a..ffc4d49 100644 --- a/t/49_trace_and_profile.t +++ b/t/49_trace_and_profile.t @@ -27,7 +27,10 @@ for my $call_func (@CALL_FUNCS) { is $trace[0][0] => "create table foo (id integer)"; $dbh->do('insert into foo values (?)', undef, 1); +TODO: { + local $TODO = 'sqlite 3.6.20 traces placeholders instead of values'; is $trace[1][0] => "insert into foo values ('1')"; +} $dbh->$call_func(undef, $func_name); @@ -36,7 +39,10 @@ for my $call_func (@CALL_FUNCS) { $dbh->$call_func(sub { push @trace, [@_] }, $func_name); $dbh->do('insert into foo values (?)', undef, 3); +TODO: { + local $TODO = 'sqlite 3.6.20 traces placeholders instead of values'; is $trace[2][0] => "insert into foo values ('3')"; +} # profile my @profile; -- 1.9.3