replace user/internal values for integer and varchar indexes
This commit is contained in:
parent
939b50e0c5
commit
706c15929b
@ -104,6 +104,9 @@ Public Class ClassControls
|
|||||||
If ClassPatterns.HasComplexPatterns(oSql) Then
|
If ClassPatterns.HasComplexPatterns(oSql) Then
|
||||||
LOGGER.Debug(" >>sql enthält Platzhalter und wird erst während der Laufzeit gefüllt!", False)
|
LOGGER.Debug(" >>sql enthält Platzhalter und wird erst während der Laufzeit gefüllt!", False)
|
||||||
Else
|
Else
|
||||||
|
oSql = ClassPatterns.ReplaceInternalValues(oSql)
|
||||||
|
oSql = ClassPatterns.ReplaceUserValues(oSql, USER_PRENAME, USER_SURNAME, USER_SHORTNAME, USER_LANGUAGE, USER_EMAIL, USER_ID, CURRENT_DOKART_ID)
|
||||||
|
|
||||||
Dim oDatatable = ClassDatabase.Return_Datatable_Combined(oSql, oConnectionString, False)
|
Dim oDatatable = ClassDatabase.Return_Datatable_Combined(oSql, oConnectionString, False)
|
||||||
oControl.DataSource = oDatatable
|
oControl.DataSource = oDatatable
|
||||||
End If
|
End If
|
||||||
@ -416,7 +419,6 @@ Public Class ClassControls
|
|||||||
oControlSql = ClassPatterns.ReplaceInternalValues(oControlSql)
|
oControlSql = ClassPatterns.ReplaceInternalValues(oControlSql)
|
||||||
oControlSql = ClassPatterns.ReplaceControlValues(oControlSql, Panel)
|
oControlSql = ClassPatterns.ReplaceControlValues(oControlSql, Panel)
|
||||||
|
|
||||||
|
|
||||||
LOGGER.Debug("SQL After Preparing: [{0}]", oControlSql)
|
LOGGER.Debug("SQL After Preparing: [{0}]", oControlSql)
|
||||||
LOGGER.Debug("Setting new value for [{0}]", oControlName)
|
LOGGER.Debug("Setting new value for [{0}]", oControlName)
|
||||||
SetDependingControlResult(oControlName, oControlSql, oConnectionId)
|
SetDependingControlResult(oControlName, oControlSql, oConnectionId)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user