diff options
Diffstat (limited to 'connectivity')
-rw-r--r-- | connectivity/source/drivers/postgresql/pq_preparedstatement.cxx | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/connectivity/source/drivers/postgresql/pq_preparedstatement.cxx b/connectivity/source/drivers/postgresql/pq_preparedstatement.cxx index 9c35eefc63eb..ecd333f834bb 100644 --- a/connectivity/source/drivers/postgresql/pq_preparedstatement.cxx +++ b/connectivity/source/drivers/postgresql/pq_preparedstatement.cxx @@ -170,7 +170,10 @@ static bool isOperator( char c ) static const char * operators = "<>=()!/&%.,;"; const char * w = operators; - for( ; *w && *w != c ; w ++); + while (*w && *w != c) + { + ++w; + } return *w != 0; } @@ -425,8 +428,12 @@ sal_Bool PreparedStatement::execute( ) buf.append( m_vars[vars] ); // skip to the end of the named parameter - for( ; index < str.getLength() && - ! ( isWhitespace( str[index] ) || isOperator( str[index] ) ) ; index ++ ); + while ( index < str.getLength() + && !( isWhitespace(str[index]) + || isOperator (str[index]))) + { + ++index; + } start = index; vars ++; } |