|
@@ 1317-1320 (lines=4) @@
|
| 1314 |
|
$rows = 0; |
| 1315 |
|
$res = $this->select( $table, [ 'rowcount' => 'COUNT(*)' ], $conds, $fname, $options ); |
| 1316 |
|
|
| 1317 |
|
if ( $res ) { |
| 1318 |
|
$row = $this->fetchRow( $res ); |
| 1319 |
|
$rows = ( isset( $row['rowcount'] ) ) ? (int)$row['rowcount'] : 0; |
| 1320 |
|
} |
| 1321 |
|
|
| 1322 |
|
return $rows; |
| 1323 |
|
} |
|
@@ 1332-1335 (lines=4) @@
|
| 1329 |
|
$sql = $this->selectSQLText( $tables, '1', $conds, $fname, $options, $join_conds ); |
| 1330 |
|
$res = $this->query( "SELECT COUNT(*) AS rowcount FROM ($sql) tmp_count", $fname ); |
| 1331 |
|
|
| 1332 |
|
if ( $res ) { |
| 1333 |
|
$row = $this->fetchRow( $res ); |
| 1334 |
|
$rows = ( isset( $row['rowcount'] ) ) ? (int)$row['rowcount'] : 0; |
| 1335 |
|
} |
| 1336 |
|
|
| 1337 |
|
return $rows; |
| 1338 |
|
} |