CR: add support of interactive transactions for webclients
am 14.02.2011 17:29:10 von Herbert Huber--0-457256283-1297700950=:86299
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable
CR: add support of interactive transactions for webclients
Hello,=0AI =
dont know how to place an idea (CR) for mySQL.=0AI try it that way.
At=
the moment I am implementing an "easy-to-use" multiuser webclient for =0Ad=
atabase usage.=0A(phpMyAdmin in contrast is a very powerful tool for people=
with technical =0Abackground knowledge and=A0I like to use it.)
In an=
multiuser environment the usage of transactions to avoid data loss by =0Aa=
ccess conflicts between different users is mandatory.
But:=0AWebserver=
(e.g. apache) doesnt keep open the connection to mySQL after the =0Ascript=
(e.g. PHP) has been executed.=0AmySQL thread is terminated=A0and=A0any ope=
n transaction is "rolled back".
Idea (CR):=0Aprovide=A0new=A0session-v=
ariable KEEP_PROCESS and new command CHANGE_PROCESS.
-----------------=
--------------------------------------=0Ascenario (simplified):
user1 =
navigates through database =0ASELECT but NOT=A0"for update"
user1 like=
s to "checkout"=A0a row to do some changes:=0A
n=0A....=0ASTART TRANSACTION=0ASELECT .... FOR UPDATE=0ASET @@KEEP_PROCESS=
=3D1 // process=A0shall NOT be terminated after con=
nection =0Ahas been closed=0ASELECT CONNECTION_ID()=0Adata is displayed in =
webclient