Sent from Mail <https://go.microsoft.com/fwlink/?LinkId=550986> for
Windows 10
*From: *Vladislav Vaintroub <mailto:vvaintroub@xxxxxxxxx>
*Sent: *17 May 2017 18:08
*To: *ksubramanian@xxxxxxxxxxxxxxx
<mailto:ksubramanian@xxxxxxxxxxxxxxx>; Maria Discuss
<mailto:maria-discuss@xxxxxxxxxxxxxxxxxxx>
*Subject: *Re: [Maria-discuss] Connector Net Question
On 17.05.2017 11:26, ksubramanian@xxxxxxxxxxxxxxx
<mailto:ksubramanian@xxxxxxxxxxxxxxx> wrote:
All,
We have set auto-commit=false at server level.
But our .Net developers want to enable this auto-commit as true
(default behaviour) that I hesitant to do that. Is there any
connector (driver) properties that we can set at connection level
for auto-commit. I know in JDBC driver, we have the properties
that we can set at driver level when we establish connection to
DB. But for connector/Net I am trying to find, couldn’t locate
one. I noticed auto-enlist sett to true or false, not sure whether
this will mimic the auto-commit functionality in a given connection.
Can anyone using .Net and MariaDB combination help me to share
your thought on this.
Out of curiosity, what is the reason for you to use the non-default
behavior (global auto-commit=false)?
As far as I know, you cannot set arbitrary session variable
automatically with C/NET, and there is no property for autocommit.
Thus this would need to be done in code, just after connecting, e.g
command.executeNonQuery("set @@autocommit=1")
Regards,
Karthick
Sent from Mail <https://go.microsoft.com/fwlink/?LinkId=550986>
for Windows 10
_______________________________________________
Mailing list:https://launchpad.net/~maria-discuss
<https://launchpad.net/%7Emaria-discuss>
Post to :maria-discuss@xxxxxxxxxxxxxxxxxxx
<mailto:maria-discuss@xxxxxxxxxxxxxxxxxxx>
Unsubscribe :https://launchpad.net/~maria-discuss
<https://launchpad.net/%7Emaria-discuss>
More help :https://help.launchpad.net/ListHelp