mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-29 13:00:26 +02:00
[ticket/11162] Rename count variable name to remaining_rows.
PHPBB3-11162
This commit is contained in:
@@ -59,11 +59,11 @@ class phpbb_update_rows_avoiding_duplicates_test extends phpbb_database_test_cas
|
|||||||
|
|
||||||
phpbb_update_rows_avoiding_duplicates($db, TOPICS_WATCH_TABLE, 'topic_id', $from, $to);
|
phpbb_update_rows_avoiding_duplicates($db, TOPICS_WATCH_TABLE, 'topic_id', $from, $to);
|
||||||
|
|
||||||
$sql = 'SELECT count(*) AS count
|
$sql = 'SELECT count(*) AS remaining_rows
|
||||||
FROM ' . TOPICS_WATCH_TABLE . '
|
FROM ' . TOPICS_WATCH_TABLE . '
|
||||||
WHERE topic_id = ' . (int) $to;
|
WHERE topic_id = ' . (int) $to;
|
||||||
$result = $db->sql_query($sql);
|
$result = $db->sql_query($sql);
|
||||||
$result_count = $db->sql_fetchfield('count');
|
$result_count = $db->sql_fetchfield('remaining_rows');
|
||||||
$db->sql_freeresult($result);
|
$db->sql_freeresult($result);
|
||||||
|
|
||||||
$this->assertEquals($expected_result_count, $result_count);
|
$this->assertEquals($expected_result_count, $result_count);
|
||||||
|
Reference in New Issue
Block a user