Skip to content

Commit

Permalink
Merge pull request #2415 from MGatner/column-nullable
Browse files Browse the repository at this point in the history
Add 'nullable' to MySQL field data
  • Loading branch information
MGatner authored Nov 20, 2019
2 parents 2877e05 + 7ac3833 commit 4f792e5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions system/Database/MySQLi/Connection.php
Original file line number Diff line number Diff line change
Expand Up @@ -491,6 +491,7 @@ public function _fieldData(string $table): array

sscanf($query[$i]->Type, '%[a-z](%d)', $retVal[$i]->type, $retVal[$i]->max_length);

$retVal[$i]->nullable = $query[$i]->Null === 'YES';
$retVal[$i]->default = $query[$i]->Default;
$retVal[$i]->primary_key = (int)($query[$i]->Key === 'PRI');
}
Expand Down

0 comments on commit 4f792e5

Please sign in to comment.