Changeset 3123906
- Timestamp:
- 07/23/2024 01:01:11 PM (19 months ago)
- File:
-
- 1 edited
-
hyperdb/trunk/db.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
hyperdb/trunk/db.php
r2815858 r3123906 952 952 953 953 $this->result = $this->ex_mysql_query( $query, $this->dbh ); 954 $this->last_error = $this->ex_mysql_error( $this->dbh ); 954 955 955 956 if ( $statement_after_query ) { … … 960 961 ++$this->num_queries; 961 962 962 if ( preg_match( '/^\s*SELECT\s+SQL_CALC_FOUND_ROWS\s/i', $query ) ) {963 if ( preg_match( '/^\s*SELECT\s+SQL_CALC_FOUND_ROWS\s/i', $query ) && false !== $this->result ) { 963 964 if ( false === strpos( $query, 'NO_SELECT_FOUND_ROWS' ) ) { 964 965 $this->timer_start(); 965 966 $this->last_found_rows_result = $this->ex_mysql_query( 'SELECT FOUND_ROWS()', $this->dbh ); 966 967 $elapsed += $this->timer_stop(); 968 $this->last_error = $this->ex_mysql_error( $this->dbh ); 967 969 ++$this->num_queries; 968 970 $query .= '; SELECT FOUND_ROWS()'; … … 986 988 } 987 989 } 988 989 $this->last_error = $this->ex_mysql_error( $this->dbh );990 990 991 991 if ( $this->last_error ) {
Note: See TracChangeset
for help on using the changeset viewer.