Menu

#258 Transactions are broken when using the Ruby Driver

open
nobody
None
5
2012-09-27
2012-09-27
Jira Trac
No

An affiliate user reported the following:

Transactions are broken. It supposedly sets autocommit to false when initializing, but even when setting it to false manually, it doesn't work. Here's an example:

{code}
require 'cubrid'
c = Cubrid.connect('sequel_test')
c.auto_commit = false
c.query('CREATE TABLE a (a integer)')
c.query('SELECT COUNT(*) FROM a').fetch
c.query('INSERT INTO a DEFAULT VALUES').fetch c.query('SELECT COUNT(*) FROM a').fetch c.rollback c.query('SELECT COUNT(*) FROM a').fetch
{code}

Discussion

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.