diff --git a/README.rst b/README.rst index 346d8e8..a885c89 100644 --- a/README.rst +++ b/README.rst @@ -62,7 +62,7 @@ arguments that are internally passed to the Java connection URL. See the Javadoc of ``DriverManager`` class for details. -As the next parameter to ``connect`` you can optionally specify the +The next parameter to ``connect`` is optional and specifies the jar-Files of the driver if your classpath isn't set up sufficiently yet. The classpath set in ``CLASSPATH`` environment variable will be honored. See the documentation of your Java runtime environment. @@ -156,9 +156,11 @@ Changelog - More convenient way to setup Java classpath. *Important note* check the changes to the ``connect`` method and adapt your code. + - Honor ``CLASSPATH`` if used in JPype mode. + - Set ``.rowcount`` properly. - - Honor ``CLASSPATH`` if used in JPype mode. + - Changed signature of ``.setoutputsize()`` to be DB-API compliant. - 0.1.3 diff --git a/src/jaydebeapi/dbapi2.py b/src/jaydebeapi/dbapi2.py index c822ae9..b745964 100644 --- a/src/jaydebeapi/dbapi2.py +++ b/src/jaydebeapi/dbapi2.py @@ -431,7 +431,7 @@ class Cursor(object): def setinputsizes(self, sizes): pass - def setoutputsize(self, size, column): + def setoutputsize(self, size, column=None): pass def _to_datetime(java_val):