Skip to content

Commit

Permalink
Patch table info null column issue
Browse files Browse the repository at this point in the history
  • Loading branch information
nicksagona committed Mar 6, 2024
1 parent 5331394 commit cf395a8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Gateway/AbstractGateway.php
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ public function getTableInfo(?AbstractAdapter $db = null): array
$primaryResult = ($row[$keyField] == 1);
break;
case Sql::MYSQL:
$nullResult = (!empty($row[$keyField]) && (strtoupper($row[$nullField]) != 'NO'));
$nullResult = (!empty($row[$nullField]) && (strtoupper($row[$nullField]) != 'NO'));
$primaryResult = (!empty($row[$keyField]) && (strtoupper($row[$keyField]) == 'PRI'));
break;
default:
Expand All @@ -136,4 +136,4 @@ public function getTableInfo(?AbstractAdapter $db = null): array
return $info;
}

}
}

0 comments on commit cf395a8

Please sign in to comment.