Kaydet (Commit) a0c81e5a authored tarafından Caolán McNamara's avatar Caolán McNamara

V804: Decreased performance

Change-Id: I484dd153e5d7f0664eac85595011d610f2b8df7b
üst f78939e9
...@@ -836,10 +836,11 @@ OString extractSingleTableFromSelect( const OStringVector &vec ) ...@@ -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();
......
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