[nagiosplug] t/check_dbi.t: Don't use ' INSERT … VALUES ...

"Nagios Plugin Development" <[email protected]> Wed, 4 Jul 2012 22:11:13 +0000
Newsgroups gmane.network.nagios.plugins.cvs
Message-ID <[email protected]>
 Module: nagiosplug
 Branch: master
 Commit: e056cc9d8279fdb76ffd77dfeaed4fb13f95cef0
 Author: Sebastian Harl <[email protected]>
   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";
 


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Nagiosplug-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nagiosplug-checkins