Hello,
I'm using MySQL Version 5.0.19 and CoreLab.MySQL Version 3.5.3.0
When I try the following code I alway receive an InsertId of 0 although the record is inserted into the db and the primary key is increased correctly, does anybody know why?
Code:
MySqlCommand command = new MySqlCommand();
command.Connection = new MySqlConnection( connectionString );
MySqlTransaction transaction = command.Connection.BeginTransaction();
command.Transaction = transaction;
command.CommandText = "INSERT INTO Layers SET ...";
command.ExecuteNonQuery();
transaction.Commit();
int index = (int)command.InsertId;
Vince
InsertID always 0?
-
- Posts: 10
- Joined: Wed 27 Jul 2005 11:36
-
- Posts: 10
- Joined: Wed 27 Jul 2005 11:36
New Build
Any update on when the new build is available?