|
@@ 1398-1401 (lines=4) @@
|
| 1395 |
|
$rows = 0; |
| 1396 |
|
$res = $this->select( $table, [ 'rowcount' => 'COUNT(*)' ], $conds, $fname, $options ); |
| 1397 |
|
|
| 1398 |
|
if ( $res ) { |
| 1399 |
|
$row = $this->fetchRow( $res ); |
| 1400 |
|
$rows = ( isset( $row['rowcount'] ) ) ? (int)$row['rowcount'] : 0; |
| 1401 |
|
} |
| 1402 |
|
|
| 1403 |
|
return $rows; |
| 1404 |
|
} |
|
@@ 1413-1416 (lines=4) @@
|
| 1410 |
|
$sql = $this->selectSQLText( $tables, '1', $conds, $fname, $options, $join_conds ); |
| 1411 |
|
$res = $this->query( "SELECT COUNT(*) AS rowcount FROM ($sql) tmp_count", $fname ); |
| 1412 |
|
|
| 1413 |
|
if ( $res ) { |
| 1414 |
|
$row = $this->fetchRow( $res ); |
| 1415 |
|
$rows = ( isset( $row['rowcount'] ) ) ? (int)$row['rowcount'] : 0; |
| 1416 |
|
} |
| 1417 |
|
|
| 1418 |
|
return $rows; |
| 1419 |
|
} |