title: Why isn't this Python JDBC connection working?
body: <p>I'm trying to connect to a sybase type DB via the jaydebeapi, but I'm running into problems. I'm getting a strange error when I try to connect and I can't figure out why... Here is the code:</p>
  
  <pre><code>import jaydebeapi
  conn = jaydebeapi.connect('net.sourceforge.jtds.jdbc.Driver', ['jdbc:jtds:sybase://hostname:port/database','username','password'],['/home/homedirectory/jtds-1.2.5-dist/jtds-1.2.5.jar'])
  </code></pre>
  
  <p>Here is the error produced:</p>
  
  <pre><code>Traceback (most recent call last):
    File "testos.py", line 3, in &lt;module&gt;
      conn = jaydebeapi.connect('net.sourceforge.jtds.jdbc.Driver', ['jdbc:jtds:sybase://hostname:port/','username','password'],['/home/homedirectory/jtds-1.2.5-dist/jtds-1.2.5.jar'])
    File "/usr/lib/python2.6/site-packages/JayDeBeApi-0.2.0-py2.6.egg/jaydebeapi/__init__.py", line 359, in connect
      jconn = _jdbc_connect(jclassname, jars, libs, *driver_args)
    File "/usr/lib/python2.6/site-packages/JayDeBeApi-0.2.0-py2.6.egg/jaydebeapi/__init__.py", line 183, in _jdbc_connect_jpype
      return jpype.java.sql.DriverManager.getConnection(*driver_args)
  jpype._jexception.SQLExceptionPyRaisable: java.sql.SQLException: The executeQuery method must return a result set.
  </code></pre>
  
  <p>Why am I getting this error?</p>