osdir.com
mailing list archive

Subject: Re: PyNone thrown when trying to get a cursor in zxJDBC - msg#00088

List: lang.jython.devel

Date: Prev Next Index Thread: Prev Next Index
Charlie,

there are some tests in Lib/test/zxjdbc. Are they run in regrtest ? I
also saw a connection string pointing to bzimmer's localhost. So we
probably would need to setup a local java db
like hsqldb or derby ?

By the way, the problem went away:

Jython 2.2b2 on java1.6.0
>>> import com.ziclix.python.sql.zxJDBC
>>> connectString="jdbc:oracle:thin:@myhost:port:instance"
>>> db = com.ziclix.python.sql.zxJDBC.connect(connectString, "user",
"password", "oracle.jdbc.driver.OracleDriver")
>>> c = db.cursor()
>>> c
<PyExtendedCursor object instance at 1>
>>>

Thanks !
Oti.

On 5/30/07, Charlie Groves <charlie.groves@xxxxxxxxx> wrote:
> It was an old vs new style problem. I moved all of the
> PyBuiltinFunctionSet stuff over to the newstyle world so all of our
> types line up. That necessitated making PyBuiltinMethodSet newstyle as
> well. However, to be a new style method PyBuiltinMethodSet needs to
> be a descriptor and have a __get__ method to bind it to an instance.
> I left that out which lead to the reported errors. PyBuiltinMethodSet
> is only used in zxJDBC which is why we didn't see any more reports of
> it. I fixed it in r3248 so it should be good for rc1.
>
> Are there any tests for zxJDBC at all? This was a really simple error
> that running it at all would almost certainly catch.
>
> Charlie
>
> On 5/29/07, Frank Wierzbicki <fwierzbicki@xxxxxxxxx> wrote:
> > On 5/29/07, Frank Wierzbicki <fwierzbicki@xxxxxxxxx> wrote:
> > > The 3124:3125 diff is pretty big, so I won't be able to go through it
> > > for clues until tonight or tomorrow...
> > Nothing jumped out in the diff. I verified Oti's observation that
> > bind() never gets called, leaving __self__ equal to PyNone... but I
> > haven't found a cause yet. Maybe it is some kind of old calling
> > style/new calling style problem? Giving up for tonight.
> >
> > -Frank
> >
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> _______________________________________________
> Jython-dev mailing list
> Jython-dev@xxxxxxxxxxxxxxxxxxxxx
> https://lists.sourceforge.net/lists/listinfo/jython-dev
>

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/


Was this page helpful?
Yes No
Thread at a glance:

Previous Message by Date: click to view message preview

Re: PyNone thrown when trying to get a cursor in zxJDBC

It was an old vs new style problem. I moved all of the PyBuiltinFunctionSet stuff over to the newstyle world so all of our types line up. That necessitated making PyBuiltinMethodSet newstyle as well. However, to be a new style method PyBuiltinMethodSet needs to be a descriptor and have a __get__ method to bind it to an instance. I left that out which lead to the reported errors. PyBuiltinMethodSet is only used in zxJDBC which is why we didn't see any more reports of it. I fixed it in r3248 so it should be good for rc1. Are there any tests for zxJDBC at all? This was a really simple error that running it at all would almost certainly catch. Charlie On 5/29/07, Frank Wierzbicki <fwierzbicki@xxxxxxxxx> wrote: > On 5/29/07, Frank Wierzbicki <fwierzbicki@xxxxxxxxx> wrote: > > The 3124:3125 diff is pretty big, so I won't be able to go through it > > for clues until tonight or tomorrow... > Nothing jumped out in the diff. I verified Oti's observation that > bind() never gets called, leaving __self__ equal to PyNone... but I > haven't found a cause yet. Maybe it is some kind of old calling > style/new calling style problem? Giving up for tonight. > > -Frank > ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/

Next Message by Date: click to view message preview

Re: PyNone thrown when trying to get a cursor in zxJDBC

On 5/30/07, Oti <ohumbel@xxxxxxxxx> wrote: > Charlie, > > there are some tests in Lib/test/zxjdbc. Are they run in regrtest ? I > also saw a connection string pointing to bzimmer's localhost. So we > probably would need to setup a local java db > like hsqldb or derby ? I actually downloaded hsqldb last night thinking I would try setting up a test, it's good to know there already are some in Lib/test/zxjdbc. No reason we can't include the hsqldb jar in our test area and automatically run them - I believe it only requires the one jar and can even be run in memory if we don't want to hit the filesystem. -Frank ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/

Previous Message by Thread: click to view message preview

Re: PyNone thrown when trying to get a cursor in zxJDBC

It was an old vs new style problem. I moved all of the PyBuiltinFunctionSet stuff over to the newstyle world so all of our types line up. That necessitated making PyBuiltinMethodSet newstyle as well. However, to be a new style method PyBuiltinMethodSet needs to be a descriptor and have a __get__ method to bind it to an instance. I left that out which lead to the reported errors. PyBuiltinMethodSet is only used in zxJDBC which is why we didn't see any more reports of it. I fixed it in r3248 so it should be good for rc1. Are there any tests for zxJDBC at all? This was a really simple error that running it at all would almost certainly catch. Charlie On 5/29/07, Frank Wierzbicki <fwierzbicki@xxxxxxxxx> wrote: > On 5/29/07, Frank Wierzbicki <fwierzbicki@xxxxxxxxx> wrote: > > The 3124:3125 diff is pretty big, so I won't be able to go through it > > for clues until tonight or tomorrow... > Nothing jumped out in the diff. I verified Oti's observation that > bind() never gets called, leaving __self__ equal to PyNone... but I > haven't found a cause yet. Maybe it is some kind of old calling > style/new calling style problem? Giving up for tonight. > > -Frank > ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/

Next Message by Thread: click to view message preview

Re: PyNone thrown when trying to get a cursor in zxJDBC

On 5/30/07, Oti <ohumbel@xxxxxxxxx> wrote: > Charlie, > > there are some tests in Lib/test/zxjdbc. Are they run in regrtest ? I > also saw a connection string pointing to bzimmer's localhost. So we > probably would need to setup a local java db > like hsqldb or derby ? I actually downloaded hsqldb last night thinking I would try setting up a test, it's good to know there already are some in Lib/test/zxjdbc. No reason we can't include the hsqldb jar in our test area and automatically run them - I believe it only requires the one jar and can even be run in memory if we don't want to hit the filesystem. -Frank ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/
Sign up for updates to this mailing list. email:
Loading Comments...
Home | News | Patents | Sitemap | FAQ | advertise

Advertising by