Last modified: 2014-11-20 20:18:44 UTC
Created attachment 17169 [details] New version of the /usr/bin/sql file Currently, if we use a database not described in /usr/bin/sql script (like "ptwiki"), the script calls itself in a way that prevents the use of wildcards (*) as parameter. So running queries like sql ptwiki 'select * from revision limit 1' does not work, while sql ptwiki_p 'select * from revision limit 1' sql ptwiki 'select rev_id from revision limit 1' work. I made some changes to the file, and attached to this bug. I think it is safe to replace it. This new version solves the problem (changing ${*:2} to "${@:2}" is enough), but also allows the user to pass filenames as parameter. So sql ptwiki 'filename.sql' will also work.