|
@@ 1300-1303 (lines=4) @@
|
| 1297 |
|
$rows = 0; |
| 1298 |
|
$res = $this->select( $table, [ 'rowcount' => 'COUNT(*)' ], $conds, $fname, $options ); |
| 1299 |
|
|
| 1300 |
|
if ( $res ) { |
| 1301 |
|
$row = $this->fetchRow( $res ); |
| 1302 |
|
$rows = ( isset( $row['rowcount'] ) ) ? (int)$row['rowcount'] : 0; |
| 1303 |
|
} |
| 1304 |
|
|
| 1305 |
|
return $rows; |
| 1306 |
|
} |
|
@@ 1315-1318 (lines=4) @@
|
| 1312 |
|
$sql = $this->selectSQLText( $tables, '1', $conds, $fname, $options, $join_conds ); |
| 1313 |
|
$res = $this->query( "SELECT COUNT(*) AS rowcount FROM ($sql) tmp_count", $fname ); |
| 1314 |
|
|
| 1315 |
|
if ( $res ) { |
| 1316 |
|
$row = $this->fetchRow( $res ); |
| 1317 |
|
$rows = ( isset( $row['rowcount'] ) ) ? (int)$row['rowcount'] : 0; |
| 1318 |
|
} |
| 1319 |
|
|
| 1320 |
|
return $rows; |
| 1321 |
|
} |