IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 16, 2022, 4:56:37 PM (4 years ago)
Author:
eugene
Message:

at least in mysql 8.0.28, my_bool is gone and just bool is used : it was never necessary to use my_bool (== char), so replace with bool

File:
1 edited

Legend:

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

    r41896 r42118  
    753753    // the return value also needs to be inverted for the same reason.
    754754    // is it safe to assume my_bool always safely casts to bool?
     755    // XXX EAM 2022.03.15 : at least in mysql 8.0.28, my_bool is gone and just bool is used
     756    // in 5.0 and 5.6, my_bool is char
    755757    return !(bool)mysql_autocommit(dbh->mysql, !mode);
    756758}
     
    14471449
    14481450    mysqlType       *mType;             // type tmp variable
    1449     static my_bool isNull = true;       // used in a MYSQL_BIND to indicate NULL
     1451
     1452    // XXX EAM 2022.03.15 : at least in mysql 8.0.28, my_bool is gone and just bool is used
     1453    // in 5.0 and 5.6, my_bool is char
     1454    static bool isNull = true;       // used in a MYSQL_BIND to indicate NULL
    14501455
    14511456    MYSQL_BIND *bind = mysqlRow->bind;
     
    16021607                    // assume for the time being that we don't have negative
    16031608                    // time as ISO8601 doesn't support dates prior to 0
    1604                     myTime->neg     = (my_bool)false;
     1609                    // XXX EAM 2022.03.15 : at least in mysql 8.0.28, my_bool is gone and just bool is used
     1610                    // in 5.0 and 5.6, my_bool is char
     1611                    myTime->neg     = (bool)false;
    16051612                    // currently unused by mysql
    16061613                    myTime->second_part  = (unsigned long)time->nsec;
Note: See TracChangeset for help on using the changeset viewer.