IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 42637


Ignore:
Timestamp:
Feb 23, 2024, 10:08:06 AM (2 years ago)
Author:
eugene
Message:

fix trace print for systems with and without unsigned long long for my_ulonglong

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20230313/psLib/src/db/psDB.c

    r42500 r42637  
    10401040    fieldCount = mysql_num_fields(result);
    10411041
    1042     psTrace("psLib.db", PS_LOG_INFO, "query returned %lu rows with %d fields",             rowCount, fieldCount);
     1042    // annoyingly, in some versions of mysql the value my_ulonglong is actually unsigned long long and in others
     1043    // it is actually unsigned long.  rather than try to set a print type which depends on the build, we just
     1044    // cast here to the unsigned long since it is rare that we would need such a large rowCount
     1045    psTrace("psLib.db", PS_LOG_INFO, "query returned %lu rows with %d fields", (unsigned long) rowCount, fieldCount);
    10431046
    10441047    while ((row = mysql_fetch_row(result))) {
Note: See TracChangeset for help on using the changeset viewer.