Pārlūkot izejas kodu

fixed mysql message queue executor bug. #66

master
Savorboard pirms 7 gadiem
vecāks
revīzija
573249f14c
1 mainītis faili ar 2 papildinājumiem un 0 dzēšanām
  1. +2
    -0
      src/DotNetCore.CAP.MySql/MySqlStorageConnection.cs

+ 2
- 0
src/DotNetCore.CAP.MySql/MySqlStorageConnection.cs Parādīt failu

@@ -60,6 +60,7 @@ SELECT * FROM `{_prefix}.published` WHERE Id=LAST_INSERT_ID();";

using (var connection = new MySqlConnection(Options.ConnectionString))
{
connection.Execute("SELECT LAST_INSERT_ID(0)");
return await connection.QueryFirstOrDefaultAsync<CapPublishedMessage>(sql);
}
}
@@ -105,6 +106,7 @@ SELECT * FROM `{_prefix}.received` WHERE Id=LAST_INSERT_ID();";

using (var connection = new MySqlConnection(Options.ConnectionString))
{
connection.Execute("SELECT LAST_INSERT_ID(0)");
return await connection.QueryFirstOrDefaultAsync<CapReceivedMessage>(sql);
}
}


Notiek ielāde…
Atcelt
Saglabāt