throw new QueryTemplateParsingException("Invalid Mule expression: " + sqlText.substring(tokenStart));
}
tokenEnd++;
String value = sqlText.substring(tokenStart, tokenEnd);
QueryParam inputParam = new DefaultInputQueryParam(paramIndex++, UnknownDbType.getInstance(), value);
parameterList.add(inputParam);
sqlToUse = sqlToUse + "?";
tokenStart = tokenEnd;
}
else if (currentChar == ':')
{
String parameter;
while (tokenEnd < sqlTextChars.length && !isParameterSeparator(sqlTextChars[tokenEnd]))
{
tokenEnd++;
}
if (tokenEnd - tokenStart > 1)
{
sqlToUse = sqlToUse + "?";
parameter = sqlText.substring(tokenStart + 1, tokenEnd);
QueryParam inputParam = new DefaultInputQueryParam(paramIndex++, UnknownDbType.getInstance(), null, parameter);
parameterList.add(inputParam);
}
tokenStart = tokenEnd;
}
else if (isParamChar(currentChar))
{
QueryParam inputParam = new DefaultInputQueryParam(paramIndex++, UnknownDbType.getInstance(), null);
parameterList.add(inputParam);
tokenStart++;
sqlToUse = sqlToUse + currentChar;
}
else