Changeset 42378 for trunk/psLib/src/db/psDB.c
- Timestamp:
- Feb 8, 2023, 11:51:50 AM (3 years ago)
- Location:
- trunk/psLib
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
src/db/psDB.c (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib
- Property svn:mergeinfo changed
/branches/eam_branches/ipp-20220316/psLib (added) merged: 42117-42118,42153,42346,42353-42354,42368
- Property svn:mergeinfo changed
-
trunk/psLib/src/db/psDB.c
r41896 r42378 56 56 57 57 58 # if (MYSQL_VERSION_ID >= 80000) 59 # define MYSQL_BOOL bool 60 # else 61 # define MYSQL_BOOL my_bool 62 # endif 63 58 64 // set the pointer to NULL if we are actually freeing the memory 59 65 #define PSDB_NULL_FREE(ptr) \ … … 138 144 139 145 // pType utility functions 140 static psPtr psDBGetPTypeNaN(psElemType pType);141 static boolpsDBIsPTypeNaN(psElemType pType, psPtr data);146 static psPtr psDBGetPTypeNaN(psElemType pType); 147 static MYSQL_BOOL psDBIsPTypeNaN(psElemType pType, psPtr data); 142 148 143 149 // public functions … … 753 759 // the return value also needs to be inverted for the same reason. 754 760 // is it safe to assume my_bool always safely casts to bool? 761 // XXX EAM 2022.03.15 : at least in mysql 8.0.28, my_bool is gone and just bool is used 762 // in 5.0 and 5.6, my_bool is char 763 // 755 764 return !(bool)mysql_autocommit(dbh->mysql, !mode); 756 765 } … … 1447 1456 1448 1457 mysqlType *mType; // type tmp variable 1449 static my_bool isNull = true; // used in a MYSQL_BIND to indicate NULL 1458 1459 // XXX EAM 2022.03.15 : at least in mysql 8.0.28, my_bool is gone and just bool is used 1460 // in 5.0 and 5.6, my_bool is char 1461 static MYSQL_BOOL isNull = true; // used in a MYSQL_BIND to indicate NULL 1450 1462 1451 1463 MYSQL_BIND *bind = mysqlRow->bind; … … 1602 1614 // assume for the time being that we don't have negative 1603 1615 // time as ISO8601 doesn't support dates prior to 0 1604 myTime->neg = (my_bool)false; 1616 // XXX EAM 2022.03.15 : at least in mysql 8.0.28, my_bool is gone and just bool is used 1617 // in 5.0 and 5.6, my_bool is char 1618 myTime->neg = (bool)false; 1605 1619 // currently unused by mysql 1606 1620 myTime->second_part = (unsigned long)time->nsec; … … 2869 2883 #define PS_IS_NAN(type, data, nan) *(type *)data == nan 2870 2884 2871 static bool psDBIsPTypeNaN(psElemType pType,2872 psPtr data) 2885 static MYSQL_BOOL psDBIsPTypeNaN(psElemType pType, psPtr data) 2886 2873 2887 { 2874 2888 bool isNaN = NULL;
Note:
See TracChangeset
for help on using the changeset viewer.
