Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions core/src/main/java/lucee/runtime/debug/DebuggerImpl.java
Original file line number Diff line number Diff line change
Expand Up @@ -480,11 +480,11 @@ public Struct getDebuggingData(PageContext pc, boolean addAddionalInfo) throws D
SQLItem[] params = qe.getSQL().getItems();
StringBuilder paramValue = new StringBuilder();
StringBuilder paramType = new StringBuilder();
String delim = "";
for (int i = 0; i < params.length; i++) {
paramValue.append(params[i].getValue()).toString();
if (i < params.length - 1) paramValue.append(",");
paramType.append(SQLCaster.toStringType(params[i].getType(), "")).toString();
if (i < params.length - 1) paramType.append(",");
paramValue.append(delim + params[i].getValue()).toString();
paramType.append(delim + SQLCaster.toStringType(params[i].getType(), "")).toString();
delim = ",,";
}
qryQueries.setAt(KeyConstants._paramValue, row, paramValue.toString());
qryQueries.setAt(KeyConstants._paramType, row, paramType.toString());
Expand Down
4 changes: 2 additions & 2 deletions core/src/main/java/resource/context/admin/debug/Classic.cfc
Original file line number Diff line number Diff line change
Expand Up @@ -382,8 +382,8 @@ if(!pages.recordcount || !hasQueries) {
</cfif>
<pre>#queries.sql#</pre>
<cfif !isEmpty(queries.paramValue) && !isEmpty(queries.paramType)>
<cfset paramValue1 = listtoarray(queries.paramValue,",")>
<cfset paramType1 = listtoarray(queries.paramType, ",")>
<cfset paramValue1 = listtoarray(queries.paramValue,",,",false,true)>
<cfset paramType1 = listtoarray(queries.paramType,",,",false,true)>
<cfoutput>
<pre><b> Query Parameter Value(s) - </b><br><br><cfloop from="1" to="#arraylen(paramValue1)#" index="i">###i# Parameter(#paramType1[i]#) = #paramValue1[i]#<br></cfloop></pre>
</cfoutput>
Expand Down