diff options
| author | Andreas Fischer <bantu@phpbb.com> | 2012-11-11 17:48:59 +0100 |
|---|---|---|
| committer | Andreas Fischer <bantu@phpbb.com> | 2012-11-11 17:48:59 +0100 |
| commit | 7d0cc15b926dda1a53b8151e063e2ffda7441240 (patch) | |
| tree | c82283bb2a769ceff846027cc78e116b374f30d9 /tests/functions/update_rows_avoiding_duplicates_test.php | |
| parent | b0812c43fa05bec8c59e5ff3c7889f0f98089775 (diff) | |
| download | forums-7d0cc15b926dda1a53b8151e063e2ffda7441240.tar forums-7d0cc15b926dda1a53b8151e063e2ffda7441240.tar.gz forums-7d0cc15b926dda1a53b8151e063e2ffda7441240.tar.bz2 forums-7d0cc15b926dda1a53b8151e063e2ffda7441240.tar.xz forums-7d0cc15b926dda1a53b8151e063e2ffda7441240.zip | |
[ticket/11162] Rename count variable name to remaining_rows.
PHPBB3-11162
Diffstat (limited to 'tests/functions/update_rows_avoiding_duplicates_test.php')
| -rw-r--r-- | tests/functions/update_rows_avoiding_duplicates_test.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/functions/update_rows_avoiding_duplicates_test.php b/tests/functions/update_rows_avoiding_duplicates_test.php index e4e156209d..0c9ae068a4 100644 --- a/tests/functions/update_rows_avoiding_duplicates_test.php +++ b/tests/functions/update_rows_avoiding_duplicates_test.php @@ -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); - $sql = 'SELECT count(*) AS count + $sql = 'SELECT count(*) AS remaining_rows FROM ' . TOPICS_WATCH_TABLE . ' WHERE topic_id = ' . (int) $to; $result = $db->sql_query($sql); - $result_count = $db->sql_fetchfield('count'); + $result_count = $db->sql_fetchfield('remaining_rows'); $db->sql_freeresult($result); $this->assertEquals($expected_result_count, $result_count); |
