[APPDB] admin.php: fix incorrect call to query_affected_rows

Bruno Jesus 00cpxxx at gmail.com
Thu May 11 14:20:18 CDT 2017


On Thu, May 11, 2017 at 3:27 PM, Rosanne DiMesio <dimesio at earthlink.net> wrote:
> Should be query_num_rows.
>
> Signed-off-by: Rosanne DiMesio <dimesio at earthlink.net>
> ---
>  admin.php | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/admin.php b/admin.php
> index 09c0aca..fe1ccc6 100644
> --- a/admin.php
> +++ b/admin.php
> @@ -199,7 +199,7 @@ function fixNoteLinks()
>
>      echo "<br />Deleting note links<br />";
>      $hResult = query_parameters("DELETE FROM appNotes WHERE linkedWith != '0'");
> -    echo "Deleted ".query_affected_rows()." links<br />";
> +    echo "Deleted ".query_num_rows()." links<br />";

Is this some particularity of the wrapper database function? I say
that because for example both mysql and postgresql have the 2 distinct
functions where affected_rows is used for delete/update and num_rows
is used for select queries.



More information about the wine-devel mailing list