mirror of
https://github.com/monitoring-plugins/monitoring-plugins.git
synced 2026-04-15 22:00:06 -04:00
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.
This commit is contained in:
parent
8455419650
commit
e056cc9d82
1 changed files with 2 additions and 1 deletions
|
|
@ -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";
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue