Kaydet (Commit) 9e6b275a authored tarafından Lionel Elie Mamane's avatar Lionel Elie Mamane

tdf#107457 don't quote columns referred by expression (not by name)

Change-Id: I4894313ec27d716e9899c885ddc6be38a2447689
üst 0e65e822
......@@ -224,7 +224,12 @@ namespace dbtools
{
OUString colName;
xDetailField->getPropertyValue("RealName") >>= colName;
sFilter += quoteName( m_sIdentifierQuoteString, colName ) + " = :";
sal_Bool isFunction(false);
xDetailField->getPropertyValue("Function") >>= isFunction;
if (isFunction)
sFilter += colName;
else
sFilter += quoteName( m_sIdentifierQuoteString, colName );
}
// generate a parameter name which is not already used
......@@ -235,7 +240,7 @@ namespace dbtools
o_rNewParamName += "_";
}
return sFilter += o_rNewParamName;
return sFilter += " =:" + o_rNewParamName;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment