Parcourir la source

Dashboard - Invalid column name 'id'. (#413)

System.Data.SqlClient.SqlException (0x80131904): Invalid column name 'id'.
master
edelibas il y a 5 ans
committed by Savorboard
Parent
révision
275b5b5ed1
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. +2
    -2
      src/DotNetCore.CAP.SqlServer/IMonitoringApi.SqlServer.cs

+ 2
- 2
src/DotNetCore.CAP.SqlServer/IMonitoringApi.SqlServer.cs Voir le fichier

@@ -181,7 +181,7 @@ select [Key], [Count] from aggr with (nolock) where [Key] in @keys;";
var sqlQuery = $@"
with aggr as (
select FORMAT(Added,'yyyy-MM-dd-HH') as [Key],
count(id) [Count]
count(Id) [Count]
from [{_options.Schema}].{tableName}
where StatusName = @statusName
group by FORMAT(Added,'yyyy-MM-dd-HH')
@@ -211,4 +211,4 @@ select [Key], [Count] from aggr with (nolock) where [Key] in @keys;";
return result;
}
}
}
}

Chargement…
Annuler
Enregistrer