From: Alan Date: Wed, 23 Aug 2023 02:25:21 +0000 (+0800) Subject: Process/FixMysqlCharset.php X-Git-Url: http://git.roojs.org/?a=commitdiff_plain;h=7463a6a871c23cf3a07d6474ab0e98d0a123ae6f;p=Pman.Core Process/FixMysqlCharset.php --- diff --git a/Process/FixMysqlCharset.php b/Process/FixMysqlCharset.php index b3af7938..2352214d 100644 --- a/Process/FixMysqlCharset.php +++ b/Process/FixMysqlCharset.php @@ -106,8 +106,12 @@ class Pman_Core_Process_FixMysqlCharset extends Pman_Core_Cli { { $t = DB_DataObject::factory($tbl); $t->query("SHOW TRIGGERS FROM {$t->databaseNickname()} where `table` = '{$tbl}'"); - //$t->find(); - $ar = $t->fetchAll(); - print_r($ar);exit; + if (!$t->find()) { + return; + } + while ($t->fetch()) { + print_r($t->toArray()); + } + exit; } }