From 8ef0841ee0daee588586d94a0efc1fd5202a13a6 Mon Sep 17 00:00:00 2001
From: Barton Chittenden <barton@bywatersolutions.com>
Date: Mon, 1 Jun 2015 15:29:14 -0700
Subject: [PATCH] Bug 12372: koha-mysql: process any mysql args

---
 debian/scripts/koha-mysql |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/debian/scripts/koha-mysql b/debian/scripts/koha-mysql
index d1f9576..895077b 100755
--- a/debian/scripts/koha-mysql
+++ b/debian/scripts/koha-mysql
@@ -29,7 +29,7 @@ else
     exit 1
 fi
 
-[ "$#" = 1 ] || die "Usage: $0 instancename"
+is_instance "$1" || die "Usage: $0 instancename"
 name="$1"
 kohaconfig="/etc/koha/sites/$name/koha-conf.xml"
 
@@ -39,5 +39,5 @@ mysqluser="$( xmlstarlet sel -t -v 'yazgfs/config/user' $kohaconfig )"
 mysqlpass="$( xmlstarlet sel -t -v 'yazgfs/config/pass' $kohaconfig )"
 
 mysql --host="$mysqlhost" --user="$mysqluser" --password="$mysqlpass" \
-    "$mysqldb"
+    "$mysqldb"  "${@}"
 
-- 
1.7.10.4