FSN#54341 De minder optimale variatie in ALG-rechten iets explicieter loggen
svn path=/Website/branches/v2018.1/; revision=38834
This commit is contained in:
@@ -288,6 +288,7 @@ function discx3d(psql,
|
||||
fullSQL = "" // Build a UNION for each INS_DISCIPLINE
|
||||
|
||||
var oRs = Oracle.Execute(sqlDA); // used for ALG
|
||||
var variationCount = 0;
|
||||
while (!oRs.eof)
|
||||
{
|
||||
var discsOfThisLevel = [];
|
||||
@@ -299,7 +300,10 @@ function discx3d(psql,
|
||||
oRs.MoveNext()
|
||||
}
|
||||
pfullSQL = psql + " AND "+ pdiscipline_column_3d + " IN (" + discsOfThisLevel.join(", ") + ")";
|
||||
__Log(pautfunction + ' for disciplines ' + discsOfThisLevel.join(", ") + ' authorized at ALG level ' + thisLevel);
|
||||
__Log(pautfunction + ' for disciplines ' + discsOfThisLevel.join(", ") + ' authorized at ALG level ' + thisLevel + (srtalg?' for srtalg ' + srtalg:""));
|
||||
variationCount ++;
|
||||
if (variationCount > 1)
|
||||
__Log("Dit is de {0}e variatie in ALG rechten. Dat geeft minder optimale grote queries".format(variationCount), "#F88");
|
||||
|
||||
// if (incidentele bestellingen) then no ALG autorisation (srtdisc==5)
|
||||
if (thisLevel == -1 || srtalg == 0)
|
||||
|
||||
Reference in New Issue
Block a user