From 17e9f5388cc6c1ca078920d02bf3c014fffa61d0 Mon Sep 17 00:00:00 2001 From: Steve Boyd Date: Thu, 21 Apr 2022 14:14:28 +1200 Subject: [PATCH] FIX Ignore invalid byte character --- code/PostgreSQLSchemaManager.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/code/PostgreSQLSchemaManager.php b/code/PostgreSQLSchemaManager.php index 9c5b678..cae1473 100644 --- a/code/PostgreSQLSchemaManager.php +++ b/code/PostgreSQLSchemaManager.php @@ -858,7 +858,9 @@ protected function extractTriggerColumns($triggerName, $table) $argList = array(); $nextArg = ""; foreach ($bytes as $byte) { - if ($byte == "00") { + if ($byte == '\x') { + continue; + } elseif ($byte == "00") { $argList[] = $nextArg; $nextArg = ""; } else {