title: dbext not finding sql snippets to execute
body: <p>I'm trying to use the dbext vim plugin to connect to a MySQL database.</p>
  
  <p>When I give commands like <code>&lt;Leader&gt;se</code> I get an error:</p>
  
  <pre><code>Can't open file 
  /var/folders/b3/s3wyytf90_ld113h1w3p86ldcg4glv/T/vQ0XMX3/7
  </code></pre>
  
  <p>That file doesn't exist. But the SQL I expect to be executed does exist in:</p>
  
  <pre><code>/var/folders/b3/s3wyytf90_ld113h1w3p86ldcg4glv/T/vQ0XMX3/dbext.sql
  </code></pre>
  
  <p>So it looks as if the plugin is writing a temp file in one location and looking for it in another.</p>
  
  <p>I'm sure the plugin can't be broken and I must have done something wrong, but I don't know enough Vimscript to follow it through.</p>
  
  <p>I have <code>Vim v7.3, dbext 20.00</code> and have just installed by unzipping the plugin zip into my <code>.vim</code> directory.</p>
  
  <p>I've used</p>
  
  <p><code>:DBPromptForBufferParameters</code></p>
  
  <p>to set up my connection parameters.</p>
  
  <p>The full error looks like:</p>
  
  <pre><code>dbext: Executing SQL at 13:54
  Error detected while processing function dbext#DB_execSql..dbext#DB_execFuncTypeWCheck..&lt;SNR&gt;42_DB_MYSQL_execSql..&lt;SNR&gt;42_DB_runCmd:
  line   24:
  E484: Can't open file /var/folders/b3/s3wyytf90_ld113h1w3p86ldcg4glv/T/v0BN3Qw/7
  Press ENTER or type command to continue
  </code></pre>
  
  <p>Can anyone point me in the right direction to resolve this?</p>
  
  <p><strong>Edit:</strong> I've since tried an install into an empty .vim directory, with all of my other config and plugins removed, so I don't think that it's a case of conflicting configuration.</p>
  
  <p>I'm running MacOSX, in case it's relevant.</p>