[Koha-bugs] [Bug 12372] New: feature request: debian/scripts/koha-mysql should be able to handle arbitrary mysql arguments.

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Jun 5 17:30:57 CEST 2014


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=12372

            Bug ID: 12372
           Summary: feature request: debian/scripts/koha-mysql should be
                    able to handle arbitrary mysql arguments.
 Change sponsored?: ---
           Product: Koha
           Version: 3.14
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P5 - low
         Component: Command-line Utilities
          Assignee: gmcharlt at gmail.com
          Reporter: barton at bywatersolutions.com
        QA Contact: testopia at bugs.koha-community.org

The call to 'mysql' in /home/koha/kohaclone/debian/scripts/koha-mysql looks
like this:

mysql --host="$mysqlhost" --user="$mysqluser" --password="$mysqlpass" \
    "$mysqldb"

If $name were shifted off the argument stack, rather than simply assigned from
$1, we could then pass the rest of the arguments directly to mysql:

mysql --host="$mysqlhost" --user="$mysqluser" --password="$mysqlpass" \
    "$mysqldb" "$@"

This would make the koha-mysql command far more flexible at the command line,
for instance

koha-mysql mybranch --vertical

or

koha-mysql mybranch --html

or

koha-mysql mybranch --table

would all be possible.

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list