Cliff,<br><br>The difficulty is that the new version introduced a completely and much more friendly way to maintain configuration information like your database username, password, and the database you want to use.  The new version also has a completely re-written interface to the table browser, which is now used for executing queries as well.
<br><br>If you want a quick and dirty work-around for yourself  You can use the bundle editor to create your own command:<br><br>Set up the command in your own personal bundle as follows:<br><br>Save:  Current File  (or Nothing if you prefer)
<br>Commands:   mysql --html --user=<your username> --password=<yourpassword> --database=<yourdatabase><br><br>Input:  Selected Text or Document<br>Output: Show as html<br><br><br>Assign a key equivalent  like cmd-R
<br>Scope selector:  source.sql<br clear="all"><br>Now if you are in a sql file and hit cmd-R with nothing selected the entire file will be piped to mysql and the results will appear as an html table.   If you do the same thing, but with several queries selected then only the selected queries will be piped to mysql.
<br><br>Hope that helps people until a permanent solution within the SQL bundle is found.<br><br>Brad<br><br>-- <br>Brad Miller<br>Assistant Professor, Computer Science<br>Luther College
<br><br><div><span class="gmail_quote">On 7/16/07, <b class="gmail_sendername">Cliff Pruitt</b> <<a href="mailto:lists.cpruitt@cliffpruitt.com">lists.cpruitt@cliffpruitt.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I'm a little confused (not using the bundle much).  If it's working<br>in an older version of the bundle, can't you simply re-name the old<br>version of the command and re-introduce it to the bundle (either<br>
officially or as a user change) with the new name?  Is there<br>something else about the current version Bundle that would break the<br>old command?<br><br>- Cliff<br><br>On Jul 16, 2007, at 3:41 PM, Allan Odgaard wrote:<br>
<br>> On 16. Jul 2007, at 11:14, Jeremy Keen wrote:<br>><br>>> Shame. I NEED multi-line SQL Execution. I will be sticking with a<br>>> previous version of TM then.<br>>><br>>> I can't see how the issue of SQL injection matters though...
<br>><br>> I am parroting CiarĂ¡n here, but the problem with injection is when<br>> a string is taken from the user and just inserted into a query.<br>> E.g. SELECT * FROM table WHERE text = "$string" -- here the user
<br>> would ensure that $string starts with "; and if multi-line queries<br>> is supported, can basically do whatever SQL command he desires.<br>><br>> It seems rather brutal to just cut-off the ability to do multi-line
<br>> queries in the MySQL API, but apparently that's what they decided.<br>><br>>> Anyone got a work-around? Can I use the SQL bundle from a previous<br>>> version in the latest version?<br>><br>> That should work, I think r7187 is the last revision prior to the
<br>> change. So use the following command to checkout that bundle:<br>><br>>     svn co <a href="http://macromates.com/svn/Bundles/trunk/Bundles/">http://macromates.com/svn/Bundles/trunk/Bundles/</a><br>> SQL.tmbundle@7187
<br>><br>> There's a lot of people who do want the multi-line query<br>> functionality back, and I used it as well, so presumably a solution<br>> will be found, but for now there is the old bundle for those who
<br>> want it now.<br>><br>><br>> ______________________________________________________________________<br>> For new threads USE THIS: <a href="mailto:textmate@lists.macromates.com">textmate@lists.macromates.com
</a><br>> (threading gets destroyed and the universe will collapse if you don't)<br>> <a href="http://lists.macromates.com/mailman/listinfo/textmate">http://lists.macromates.com/mailman/listinfo/textmate</a><br>
<br><br><br>______________________________________________________________________<br>For new threads USE THIS: <a href="mailto:textmate@lists.macromates.com">textmate@lists.macromates.com</a><br>(threading gets destroyed and the universe will collapse if you don't)
<br><a href="http://lists.macromates.com/mailman/listinfo/textmate">http://lists.macromates.com/mailman/listinfo/textmate</a><br></blockquote></div><br>