Skip to content

Commit 8475058

Browse files
authored
Merge pull request #191 from kkmuffme/fix-found-rows-inconsistency
prevent "SELECT FOUND_ROWS" possibly returning an unrelated result
2 parents 5147e8e + e1c222c commit 8475058

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ludicrousdb/includes/class-ludicrousdb.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1810,6 +1810,8 @@ public function query( $query ) {
18101810
$elapsed += $this->timer_stop();
18111811
++$this->num_queries;
18121812
$query .= '; SELECT FOUND_ROWS()';
1813+
} else {
1814+
$this->last_found_rows_result = null;
18131815
}
18141816
} else {
18151817
$this->last_found_rows_result = null;

0 commit comments

Comments
 (0)