Kaydet (Commit) e8162718 authored tarafından Michael Stahl's avatar Michael Stahl

connectivty: postgres: fix a bunch of empty for body warnings

Change-Id: Idd91616e43842142450c94ac8a61f4f29f4eb1b7
üst 5e7c0378
...@@ -438,28 +438,28 @@ OUString extractTableFromInsert( const OUString & sql ) ...@@ -438,28 +438,28 @@ OUString extractTableFromInsert( const OUString & sql )
{ {
OUString ret; OUString ret;
int i = 0; 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( if( 0 == rtl_ustr_ascii_shortenedCompareIgnoreAsciiCase_WithLength(
&sql.getStr()[i], sql.getLength() - i, "insert" , 6 ) ) &sql.getStr()[i], sql.getLength() - i, "insert" , 6 ) )
{ {
i += 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( if( 0 == rtl_ustr_ascii_shortenedCompareIgnoreAsciiCase_WithLength(
&sql.getStr()[i], sql.getLength() - i, "into" , 4 ) ) &sql.getStr()[i], sql.getLength() - i, "into" , 4 ) )
{ {
i +=4; i +=4;
for( ; i < sql.getLength() && isWhitespace(sql[i]) ; i++ ); while (i < sql.getLength() && isWhitespace(sql[i])) { i++; }
int start = i; int start = i;
bool quote = (sql[i] == '"'); bool quote = (sql[i] == '"');
for( i++ ; i < sql.getLength() ; i ++ ) for( i++ ; i < sql.getLength() ; i ++ )
{ {
if( quote && sql[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] ) if( '.' == sql[i] )
{ {
for( i++ ; i < sql.getLength() && isWhitespace(sql[i]) ; i++ ); while (i < sql.getLength() && isWhitespace(sql[i])) { i++; }
if( '"' == sql[i] ) if( '"' == sql[i] )
{ {
// the second part of the table name does not use quotes // the second part of the table name does not use quotes
......
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