X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Flibs%2Frdbms%2Fdatabase%2Fresultwrapper%2FMssqlResultWrapper.php;h=ba79be14f0f22f4d4768f731208a80e6c040f020;hb=20e65a191541681c05d289efaf4edb20429da73d;hp=4b790446556db4fce0ac8249d2537ebec5323956;hpb=8a4a8a8dcbaf454c9f64cd8b5ba90704d7721500;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/libs/rdbms/database/resultwrapper/MssqlResultWrapper.php b/includes/libs/rdbms/database/resultwrapper/MssqlResultWrapper.php index 4b79044655..ba79be14f0 100644 --- a/includes/libs/rdbms/database/resultwrapper/MssqlResultWrapper.php +++ b/includes/libs/rdbms/database/resultwrapper/MssqlResultWrapper.php @@ -6,7 +6,7 @@ use stdClass; class MssqlResultWrapper extends ResultWrapper { /** @var int|null */ - private $mSeekTo = null; + private $seekTo = null; /** * @return stdClass|bool @@ -14,10 +14,10 @@ class MssqlResultWrapper extends ResultWrapper { public function fetchObject() { $res = $this->result; - if ( $this->mSeekTo !== null ) { + if ( $this->seekTo !== null ) { $result = sqlsrv_fetch_object( $res, stdClass::class, [], - SQLSRV_SCROLL_ABSOLUTE, $this->mSeekTo ); - $this->mSeekTo = null; + SQLSRV_SCROLL_ABSOLUTE, $this->seekTo ); + $this->seekTo = null; } else { $result = sqlsrv_fetch_object( $res ); } @@ -36,10 +36,10 @@ class MssqlResultWrapper extends ResultWrapper { public function fetchRow() { $res = $this->result; - if ( $this->mSeekTo !== null ) { + if ( $this->seekTo !== null ) { $result = sqlsrv_fetch_array( $res, SQLSRV_FETCH_BOTH, - SQLSRV_SCROLL_ABSOLUTE, $this->mSeekTo ); - $this->mSeekTo = null; + SQLSRV_SCROLL_ABSOLUTE, $this->seekTo ); + $this->seekTo = null; } else { $result = sqlsrv_fetch_array( $res ); } @@ -70,7 +70,7 @@ class MssqlResultWrapper extends ResultWrapper { } // Unlike MySQL, the seek actually happens on the next access - $this->mSeekTo = $row; + $this->seekTo = $row; return true; } }