@@ -228,26 +228,26 @@ public function __construct(int $fieldType, int $fieldFlags, object $field)
228228 {
229229 $ this ->mappedType = $ this ->getTypeMap ()[$ fieldType ] ?? null ;
230230
231- $ this ->isMultipleKey = (bool ) ($ fieldFlags & MYSQLI_MULTIPLE_KEY_FLAG );
232- $ this ->isPrimaryKey = (bool ) ($ fieldFlags & MYSQLI_PRI_KEY_FLAG );
233- $ this ->isUniqueKey = (bool ) ($ fieldFlags & MYSQLI_UNIQUE_KEY_FLAG );
234- $ this ->isNotNull = (bool ) ($ fieldFlags & MYSQLI_NOT_NULL_FLAG );
235- $ this ->isUnsigned = (bool ) ($ fieldFlags & MYSQLI_UNSIGNED_FLAG );
236- $ this ->isZerofill = (bool ) ($ fieldFlags & MYSQLI_ZEROFILL_FLAG );
237- $ this ->isBlob = (bool ) ($ fieldFlags & MYSQLI_BLOB_FLAG );
238- $ this ->isEnum = (bool ) ($ fieldFlags & MYSQLI_ENUM_FLAG );
239- $ this ->isSet = (bool ) ($ fieldFlags & MYSQLI_SET_FLAG );
240-
241- // as flags 32768 can be NUM_FLAG or GROUP_FLAG
242- // reference: https://www.php.net/manual/en/mysqli-result.fetch-fields.php
243- // so check field type instead of flags
244- $ this ->isNumeric = $ this ->isType (self ::TYPE_INT ) || $ this ->isType (self ::TYPE_REAL );
245-
246- /*
247- MYSQLI_PART_KEY_FLAG => 'part_key',
248- MYSQLI_TIMESTAMP_FLAG => 'timestamp',
249- MYSQLI_AUTO_INCREMENT_FLAG => 'auto_increment',
250- */
231+ $ this ->isMultipleKey = (bool ) ($ fieldFlags & MYSQLI_MULTIPLE_KEY_FLAG );
232+ $ this ->isPrimaryKey = (bool ) ($ fieldFlags & MYSQLI_PRI_KEY_FLAG );
233+ $ this ->isUniqueKey = (bool ) ($ fieldFlags & MYSQLI_UNIQUE_KEY_FLAG );
234+ $ this ->isNotNull = (bool ) ($ fieldFlags & MYSQLI_NOT_NULL_FLAG );
235+ $ this ->isUnsigned = (bool ) ($ fieldFlags & MYSQLI_UNSIGNED_FLAG );
236+ $ this ->isZerofill = (bool ) ($ fieldFlags & MYSQLI_ZEROFILL_FLAG );
237+ $ this ->isBlob = (bool ) ($ fieldFlags & MYSQLI_BLOB_FLAG );
238+ $ this ->isEnum = (bool ) ($ fieldFlags & MYSQLI_ENUM_FLAG );
239+ $ this ->isSet = (bool ) ($ fieldFlags & MYSQLI_SET_FLAG );
240+
241+ // as flags 32768 can be NUM_FLAG or GROUP_FLAG
242+ // reference: https://www.php.net/manual/en/mysqli-result.fetch-fields.php
243+ // so check field type instead of flags
244+ $ this ->isNumeric = $ this ->isType (self ::TYPE_INT ) || $ this ->isType (self ::TYPE_REAL );
245+
246+ /*
247+ MYSQLI_PART_KEY_FLAG => 'part_key',
248+ MYSQLI_TIMESTAMP_FLAG => 'timestamp',
249+ MYSQLI_AUTO_INCREMENT_FLAG => 'auto_increment',
250+ */
251251
252252 $ this ->isMappedTypeBit = $ this ->isType (self ::TYPE_BIT );
253253 $ this ->isMappedTypeGeometry = $ this ->isType (self ::TYPE_GEOMETRY );
0 commit comments