100 for ( $i = 0; $i < $this->result->field_count; $i++ ) {
101 $meta = $this->result->fetch_field_direct( $i );
102 if ( $fieldName == $meta->name ) {
105 $meta->not_null = $meta->flags & MYSQLI_NOT_NULL_FLAG;
106 $meta->primary_key = $meta->flags & MYSQLI_PRI_KEY_FLAG;
107 $meta->unique_key = $meta->flags & MYSQLI_UNIQUE_KEY_FLAG;
108 $meta->multiple_key = $meta->flags & MYSQLI_MULTIPLE_KEY_FLAG;
109 $meta->binary = $meta->flags & MYSQLI_BINARY_FLAG;
110 $meta->numeric = $meta->flags & MYSQLI_NUM_FLAG;
111 $meta->blob = $meta->flags & MYSQLI_BLOB_FLAG;
112 $meta->unsigned = $meta->flags & MYSQLI_UNSIGNED_FLAG;
113 $meta->zerofill = $meta->flags & MYSQLI_ZEROFILL_FLAG;