postgres dbd driver for ruby dbi

S

snacktime

------=_Part_9695_29736501.1127509642738
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

Thought I would post here since the ruby dbi mailing list looks completely
dead.

There seems to be a bug in the postgres driver where the AutoCommit
attribute in the connect statement is ignored. Am I missing something here
or should I file a bug report on rubyforge?

require 'dbi'
dbh =3D DBI.connect("dbi:pg:dbname=3Dtestdb;host=3Ddb.test.net<http://db.te=
st.net>",
"testuser", "XXXXXXXX", 'AutoCommit' =3D> false)

## This insert gets committed
comm =3D dbh.prepare("INSERT INTO test(x,y) VALUES('one','two')")
comm.execute

## This insert does not get committed
dbh['AutoCommit'] =3D false
comm =3D dbh.prepare("INSERT INTO test(x,y) VALUES('one','two')")
comm.execute

------=_Part_9695_29736501.1127509642738--
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,982
Messages
2,570,186
Members
46,744
Latest member
CortneyMcK

Latest Threads

Top