summaryrefslogtreecommitdiff
path: root/connectivity
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-03-01 21:14:38 +0000
committerCaolán McNamara <caolanm@redhat.com>2015-03-01 21:14:52 +0000
commita0c81e5ad40c4499e8bdab54ec48739359b934db (patch)
tree5e38bc041804a0153caf3a3c92c413a3a2bae366 /connectivity
parentf78939e97d79a9a9d6bab8e948f875593135d6ed (diff)
V804: Decreased performance
Change-Id: I484dd153e5d7f0664eac85595011d610f2b8df7b
Diffstat (limited to 'connectivity')
-rw-r--r--connectivity/source/drivers/postgresql/pq_tools.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/connectivity/source/drivers/postgresql/pq_tools.cxx b/connectivity/source/drivers/postgresql/pq_tools.cxx
index 442a2a56d2bc..7971d883795f 100644
--- a/connectivity/source/drivers/postgresql/pq_tools.cxx
+++ b/connectivity/source/drivers/postgresql/pq_tools.cxx
@@ -836,10 +836,11 @@ OString extractSingleTableFromSelect( const OStringVector &vec )
{ "join", "natural", "outer", "inner", "left", "right", "full" , 0 };
for( int i = 0 ; forbiddenKeywords[i] ; i ++ )
{
+ size_t nKeywordLen = strlen(forbiddenKeywords[i]);
if( 0 == rtl_str_shortenedCompareIgnoreAsciiCase_WithLength(
vec[token].pData->buffer, vec[token].pData->length,
- forbiddenKeywords[i], strlen(forbiddenKeywords[i]),
- strlen(forbiddenKeywords[i]) ) )
+ forbiddenKeywords[i], nKeywordLen,
+ nKeywordLen ) )
{
// whoops, it is a join
ret.clear();