Re: [CDBI] MySQL and transactions

[prev] [thread] [next] [Date index for 2005/11/10]

From: Justin Guenther
Subject: Re: [CDBI] MySQL and transactions
Date: 23:02 on 10 Nov 2005
--===============1180261557==
Content-Type: multipart/alternative; 
	boundary="----=_Part_7925_20298246.1131663732910"

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

On 11/10/05, Perrin Harkins <perrin@xxxx.xxx> wrote:
>
> On Thu, 2005-11-10 at 16:31 -0600, Justin Guenther wrote:
> > Even with autocommit disabled, creating an object (i.e. Class->create
> > ({...})) inserts a row into the database before I do a dbi_commit().
>
> Can you see that row from other connections before it is committed?
> That's what it means to do a database commit -- other connections can
> see your changes. Until then, they can be rolled back.


Yes, that's what I meant. I stepped through my code with the perl debugger,
stepped over the create() call, then loaded up the CLI mysql client and did
a SELECT and the row that had not yet been committed was there.

- Perrin
>
>

------=_Part_7925_20298246.1131663732910
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

On 11/10/05, <b class=3D"gmail_sendername">Perrin Harkins</b> &lt;<a href=
=3D"mailto:perrin@xxxx.xxx">perrin@xxxx.xxx</a>&gt; wrote:<div><span class=
=3D"gmail_quote"></span><blockquote class=3D"gmail_quote" style=3D"border-l=
eft: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left:=
 1ex;">
On Thu, 2005-11-10 at 16:31 -0600, Justin Guenther wrote:<br>&gt; Even with=
 autocommit disabled, creating an object (i.e. Class-&gt;create<br>&gt; ({.=
..})) inserts a row into the database before I do a dbi_commit().<br><br>
Can you see that row from other connections before it is committed?<br>That=
's what it means to do a database commit -- other connections can<br>see yo=
ur changes.&nbsp;&nbsp;Until then, they can be rolled back.</blockquote><di=
v><br>



Yes, that's what I meant. I stepped through my code with the perl
debugger, stepped over the create() call, then loaded up the CLI mysql
client and did a SELECT and the row that had not yet been committed was
there.&nbsp;</div><br><blockquote class=3D"gmail_quote" style=3D"border-lef=
t: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1=
ex;">- Perrin<br><br></blockquote></div><br>

------=_Part_7925_20298246.1131663732910--


--===============1180261557==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
ClassDBI mailing list
ClassDBI@xxxxx.xxxxxxxxxxxxxxxx.xxx
http://lists.digitalcraftsmen.net/mailman/listinfo/classdbi

--===============1180261557==--

[CDBI] MySQL and transactions
Justin Guenther 22:31 on 10 Nov 2005

Re: [CDBI] MySQL and transactions
Perrin Harkins 22:50 on 10 Nov 2005

Re: [CDBI] MySQL and transactions
Justin Guenther 23:02 on 10 Nov 2005

Re: [CDBI] MySQL and transactions
Perrin Harkins 23:10 on 10 Nov 2005

RE: [CDBI] MySQL and transactions
Justin Guenther 00:06 on 11 Nov 2005

Re: [CDBI] MySQL and transactions
John Siracusa 00:19 on 11 Nov 2005

Generated at 21:49 on 21 Nov 2005 by mariachi v0.52