Browse Source

Fix sql reader column index error

master
Savorboard 5 years ago
parent
commit
b6699e1df6
3 changed files with 9 additions and 9 deletions
  1. +3
    -3
      src/DotNetCore.CAP.MySql/IDataStorage.MySql.cs
  2. +3
    -3
      src/DotNetCore.CAP.PostgreSql/IDataStorage.PostgreSql.cs
  3. +3
    -3
      src/DotNetCore.CAP.SqlServer/IDataStorage.SqlServer.cs

+ 3
- 3
src/DotNetCore.CAP.MySql/IDataStorage.MySql.cs View File

@@ -195,9 +195,9 @@ namespace DotNetCore.CAP.MySql
result.Add(new MediumMessage result.Add(new MediumMessage
{ {
DbId = reader.GetInt64(0).ToString(), DbId = reader.GetInt64(0).ToString(),
Origin = StringSerializer.DeSerialize(reader.GetString(3)),
Retries = reader.GetInt32(4),
Added = reader.GetDateTime(5)
Origin = StringSerializer.DeSerialize(reader.GetString(4)),
Retries = reader.GetInt32(5),
Added = reader.GetDateTime(6)
}); });
} }




+ 3
- 3
src/DotNetCore.CAP.PostgreSql/IDataStorage.PostgreSql.cs View File

@@ -203,9 +203,9 @@ namespace DotNetCore.CAP.PostgreSql
result.Add(new MediumMessage result.Add(new MediumMessage
{ {
DbId = reader.GetInt64(0).ToString(), DbId = reader.GetInt64(0).ToString(),
Origin = StringSerializer.DeSerialize(reader.GetString(3)),
Retries = reader.GetInt32(4),
Added = reader.GetDateTime(5)
Origin = StringSerializer.DeSerialize(reader.GetString(4)),
Retries = reader.GetInt32(5),
Added = reader.GetDateTime(6)
}); });
} }




+ 3
- 3
src/DotNetCore.CAP.SqlServer/IDataStorage.SqlServer.cs View File

@@ -202,9 +202,9 @@ namespace DotNetCore.CAP.SqlServer
result.Add(new MediumMessage result.Add(new MediumMessage
{ {
DbId = reader.GetInt64(0).ToString(), DbId = reader.GetInt64(0).ToString(),
Origin = StringSerializer.DeSerialize(reader.GetString(3)),
Retries = reader.GetInt32(4),
Added = reader.GetDateTime(5)
Origin = StringSerializer.DeSerialize(reader.GetString(4)),
Retries = reader.GetInt32(5),
Added = reader.GetDateTime(6)
}); });
} }




Loading…
Cancel
Save