V804: Decreased performance
Change-Id: I484dd153e5d7f0664eac85595011d610f2b8df7b
This commit is contained in:
@@ -836,10 +836,11 @@ OString extractSingleTableFromSelect( const OStringVector &vec )
|
|||||||
{ "join", "natural", "outer", "inner", "left", "right", "full" , 0 };
|
{ "join", "natural", "outer", "inner", "left", "right", "full" , 0 };
|
||||||
for( int i = 0 ; forbiddenKeywords[i] ; i ++ )
|
for( int i = 0 ; forbiddenKeywords[i] ; i ++ )
|
||||||
{
|
{
|
||||||
|
size_t nKeywordLen = strlen(forbiddenKeywords[i]);
|
||||||
if( 0 == rtl_str_shortenedCompareIgnoreAsciiCase_WithLength(
|
if( 0 == rtl_str_shortenedCompareIgnoreAsciiCase_WithLength(
|
||||||
vec[token].pData->buffer, vec[token].pData->length,
|
vec[token].pData->buffer, vec[token].pData->length,
|
||||||
forbiddenKeywords[i], strlen(forbiddenKeywords[i]),
|
forbiddenKeywords[i], nKeywordLen,
|
||||||
strlen(forbiddenKeywords[i]) ) )
|
nKeywordLen ) )
|
||||||
{
|
{
|
||||||
// whoops, it is a join
|
// whoops, it is a join
|
||||||
ret.clear();
|
ret.clear();
|
||||||
|
Reference in New Issue
Block a user