Re: [exim] mysql lookup on update: $value is affected rows?

Top Page
Delete this message
Reply to this message
Author: Nico Erfurth
Date:  
To: Marilyn Davis, exim-users
CC: 
Subject: Re: [exim] mysql lookup on update: $value is affected rows?
Marilyn Davis wrote:

>>So all that Exim is doing is returning the value that MySQL is giving it.
>>I suppose to double-check one could insert an extra
>>
>>    debug_printf("result=%s\n", result);

                            ^^ %s outputs a strings



> Yes it does! So I did as you suggested:
>
>    if ( mysql_field_count(mysql_handle) == 0 )
>      {
>      DEBUG(D_lookup) debug_printf("MYSQL: query was not one that returns data\n");
>      result = string_sprintf("%d", mysql_affected_rows(mysql_handle));
>      debug_printf("result = %d\n", result);

                               ^^ %d outputs a decimal number


Please correct the debug_printf statement.

Nico