> -----Original Message-----
> From: Leo Soto M. [mailto:leo.soto@...]
> Sent: Tuesday, October 07, 2008 4:07 PM
> To: Michał Bednarczyk
> Cc: jython-users@...
> Subject: Re: [Jython-users] Greeting and question
Thank you for your quick reply.
> > And the result is: "Data inserted" but I haven't any new
> rows in my table...
> You need to do `db.commit()`.
Ok, it works :-) I can add new records to db.
> `execute` doesn't return anything. Or to be more precise, according to
> the DB-API spec "return values are not defined". If your select
> doesn't return anything, fetchall() will return an empty sequence.
It is strange because I've seen some examples with this code (http://www.jython.org/docs/zxjdbc.html). What should I use to get data from db?
> I suggest you take a look at the DB-API spec or some related tutorial.
> Jython's zxJDBC follows the spec very closely.
"Return values are not defined." What it means? How can I get this data?
In PHP it was simple :-/
> > there is an error:
> > DatabaseError: driver
> > not found I'm using Easy Eclipse on Windows XP, CLASSPATH
> is correct, jar files are added to project.
> What jython version are you using? 2.2.x? Or some 2.5 alpha release?
I'm using jython 2.2.1 now.