Add curly braces to while
Follows Iaa1a479b5eefcae0fc8f82b1d20e9575d609c0e9 Change-Id: I7f2b9b12e3282f5b8ba54a315fa12f1a97985572
This commit is contained in:
parent
c9f3a16e39
commit
6ff5461ce9
1 changed files with 2 additions and 1 deletions
|
|
@ -396,8 +396,9 @@ class DatabasePostgres extends Database {
|
|||
$sql = mb_convert_encoding( $sql, 'UTF-8' );
|
||||
}
|
||||
// Clear previously left over PQresult
|
||||
while ( $res = pg_get_result( $this->mConn ) )
|
||||
while ( $res = pg_get_result( $this->mConn ) ) {
|
||||
pg_free_result( $res );
|
||||
}
|
||||
if ( pg_send_query( $this->mConn, $sql ) === false ) {
|
||||
throw new DBUnexpectedError( $this, "Unable to post new query to PostgreSQL\n" );
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue