From cf395a863277df7cac1b59ef1cfefdd35cc2bb62 Mon Sep 17 00:00:00 2001 From: Nick Sagona Date: Wed, 6 Mar 2024 16:36:57 -0600 Subject: [PATCH] Patch table info null column issue --- src/Gateway/AbstractGateway.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Gateway/AbstractGateway.php b/src/Gateway/AbstractGateway.php index 94e320c..4ce40be 100644 --- a/src/Gateway/AbstractGateway.php +++ b/src/Gateway/AbstractGateway.php @@ -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: @@ -136,4 +136,4 @@ public function getTableInfo(?AbstractAdapter $db = null): array return $info; } -} \ No newline at end of file +}