Changeset 42153
- Timestamp:
- Mar 29, 2022, 3:43:48 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20220316/psLib/src/db/psDB.c
r42118 r42153 56 56 57 57 58 # if (MYSQL_VERSION_ID > 50735) 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 … … 1452 1458 // XXX EAM 2022.03.15 : at least in mysql 8.0.28, my_bool is gone and just bool is used 1453 1459 // in 5.0 and 5.6, my_bool is char 1454 static boolisNull = true; // used in a MYSQL_BIND to indicate NULL1460 static MYSQL_BOOL isNull = true; // used in a MYSQL_BIND to indicate NULL 1455 1461 1456 1462 MYSQL_BIND *bind = mysqlRow->bind; … … 2876 2882 #define PS_IS_NAN(type, data, nan) *(type *)data == nan 2877 2883 2878 static bool psDBIsPTypeNaN(psElemType pType,2879 psPtr data) 2884 static MYSQL_BOOL psDBIsPTypeNaN(psElemType pType, psPtr data) 2885 2880 2886 { 2881 2887 bool isNaN = NULL;
Note:
See TracChangeset
for help on using the changeset viewer.
