[nagiosplug] t/check_dbi.t: Don't use ' =?UTF-8?Q?INSERT=20=E2=80=A6=20VALUES=20?=...

Nagios Plugin Development nagios-plugins at users.sourceforge.net
Thu Jul 5 00:11:13 CEST 2012


 Module: nagiosplug
 Branch: master
 Commit: e056cc9d8279fdb76ffd77dfeaed4fb13f95cef0
 Author: Sebastian Harl <sh at tokkee.org>
   Date: Fri Jun  8 13:18:07 2012 +0200
    URL: http://nagiosplug.git.sf.net/git/gitweb.cgi?p=nagiosplug/nagiosplug;a=commit;h=e056cc9

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.

---

 plugins/t/check_dbi.t |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/plugins/t/check_dbi.t b/plugins/t/check_dbi.t
index e542ba5..c24b5a8 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";
 





More information about the Commits mailing list