Quantcast
Channel: MySQL Forums - Connector/NET and C#, Mono, .Net
Viewing all articles
Browse latest Browse all 1451

Problem with Table Locks and Connector Versions (1 reply)

$
0
0
Dear Group,
I had some SQL that used Table Locks as a form of global synchronisation between computers, i.e I have two tables, 'A' and 'jobs'
LOCK TABLE A WRITE;
<sql to write to Table 'jobs'>
UNLOCK TABLES;

This worked in an earlier version of the .NET Connector (1.0.10.1);

However when I installed a newer version of the connector, (6.2.4)
the second command to update table 'jobs' produces an error
MySql.Data.MySqlClient.MySqlException: Table 'jobs' was not locked with LOCK TABLES

I did not lock table 'jobs' but the error will not go away until I do. (And I do not want to as other processes might want to read it - this is a synch method for some code only).

Can anyone assist me with what is going wrong here?

thanks
Simon Michnowicz

Viewing all articles
Browse latest Browse all 1451

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>