summaryrefslogtreecommitdiffstats
path: root/connectivity
diff options
context:
space:
mode:
Diffstat (limited to 'connectivity')
-rw-r--r--connectivity/source/drivers/postgresql/pq_tools.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/connectivity/source/drivers/postgresql/pq_tools.cxx b/connectivity/source/drivers/postgresql/pq_tools.cxx
index cf650668c126..5ac5626e99e6 100644
--- a/connectivity/source/drivers/postgresql/pq_tools.cxx
+++ b/connectivity/source/drivers/postgresql/pq_tools.cxx
@@ -438,28 +438,28 @@ OUString extractTableFromInsert( const OUString & sql )
{
OUString ret;
int i = 0;
- for( ; i < sql.getLength() && isWhitespace(sql[i]) ; i++ );
+ while (i < sql.getLength() && isWhitespace(sql[i])) { i++; }
if( 0 == rtl_ustr_ascii_shortenedCompareIgnoreAsciiCase_WithLength(
&sql.getStr()[i], sql.getLength() - i, "insert" , 6 ) )
{
i += 6;
- for( ; i < sql.getLength() && isWhitespace(sql[i]) ; i++ );
+ while (i < sql.getLength() && isWhitespace(sql[i])) { i++; }
if( 0 == rtl_ustr_ascii_shortenedCompareIgnoreAsciiCase_WithLength(
&sql.getStr()[i], sql.getLength() - i, "into" , 4 ) )
{
i +=4;
- for( ; i < sql.getLength() && isWhitespace(sql[i]) ; i++ );
+ while (i < sql.getLength() && isWhitespace(sql[i])) { i++; }
int start = i;
bool quote = (sql[i] == '"');
for( i++ ; i < sql.getLength() ; i ++ )
{
if( quote && sql[i] == '"' )
{
- for( i++ ; i < sql.getLength() && isWhitespace(sql[i]) ; i++ );
+ while (i < sql.getLength() && isWhitespace(sql[i])) { i++; }
if( '.' == sql[i] )
{
- for( i++ ; i < sql.getLength() && isWhitespace(sql[i]) ; i++ );
+ while (i < sql.getLength() && isWhitespace(sql[i])) { i++; }
if( '"' == sql[i] )
{
// the second part of the table name does not use quotes