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
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