aboutsummaryrefslogtreecommitdiff
path: root/plugins/t
diff options
context:
space:
mode:
authorGravatar Sebastian Harl <sh@tokkee.org> 2012-06-08 13:18:07 +0200
committerGravatar Sebastian Harl <sh@tokkee.org> 2012-06-08 13:18:07 +0200
commite056cc9d8279fdb76ffd77dfeaed4fb13f95cef0 (patch)
treea43cdc493d15b768a530bfc61cc82a31ad7e183c /plugins/t
parent84554196509fdbb595f93c05368b36dce1cde7c1 (diff)
downloadmonitoring-plugins-e056cc9d8279fdb76ffd77dfeaed4fb13f95cef0.tar.gz
t/check_dbi.t: Don't use 'INSERT … VALUES (a,b), (c,d)' with SQLite3.
Older versions of SQLite3 don't seem to support that.
Diffstat (limited to 'plugins/t')
-rw-r--r--plugins/t/check_dbi.t3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/t/check_dbi.t b/plugins/t/check_dbi.t
index e542ba53..c24b5a8c 100644
--- a/plugins/t/check_dbi.t
+++ b/plugins/t/check_dbi.t
@@ -49,7 +49,8 @@ SKIP: {
$filename =~ s/^\/tmp\///;
system("$sqlite3 /tmp/$filename 'CREATE TABLE test(a INT, b TEXT)'");
- system("$sqlite3 /tmp/$filename 'INSERT INTO test VALUES (1, \"text1\"), (2, \"text2\")'");
+ system("$sqlite3 /tmp/$filename 'INSERT INTO test VALUES (1, \"text1\")'");
+ system("$sqlite3 /tmp/$filename 'INSERT INTO test VALUES (2, \"text2\")'");
my $check_cmd = "./check_dbi -d sqlite3 -o sqlite3_dbdir=/tmp -o dbname=$filename";