I have a stored procedure myProc defined within a file stored_proc.sql that has select statements to report on various things.
If call myProc within stored_proc.sql, skip-column-names works.
I'd like to call myProc within another file overall.sql, but, if I do SOURCE stored_proc.sql and CALL myProc() within overall.sql, skip-column-names stops working.
I'm executing overall.sql like this:
mysql <connection properties> --skip-column-names -e "SOURCE overall.sql"
Looks like
--skip-column-namesmay not work with the-eoption, but-skip-column-namesdoes work, if the*.sqlfile's pipe through either through|or<(e.g.cat overall.sql | mysql <...> --skip-column-names). I was hoping to use-eto be able to set a session variable, but doing asedreplacement (like in this SO post) also works.