[Dbix-class] create and create_related functioning differently when AutoCommit = 0

Adam Dukes adam.dukes at gmail.com
Tue Oct 16 20:06:34 GMT 2007


Hi,

I'm running into a problem when using DBIx::Class::ResultSet::create
with the schema's AutoCommit set to 0.  When I use this schema to grab
a Row object, and use add_to_* or create_related, the data is not
commited to the database, and all changes rollback after completion.

However, when I use the same schema to get a ResultSet, and use
ResultSet::create to insert a new row, the value is created and
inserted into the database immediately, and unaffected by rollback.

Any suggestions on why AutoCommit = 0 is not affecting the create calls?

Thanks,
Adam



More information about the DBIx-Class mailing list