From: Alan Date: Wed, 23 Aug 2023 02:25:49 +0000 (+0800) Subject: Process/FixMysqlCharset.php X-Git-Url: http://git.roojs.org/?a=commitdiff_plain;h=3e500c20744dcbdc022d8ea22078585421caad99;p=Pman.Core Process/FixMysqlCharset.php --- diff --git a/Process/FixMysqlCharset.php b/Process/FixMysqlCharset.php index ddf8f5af..f4bc1591 100644 --- a/Process/FixMysqlCharset.php +++ b/Process/FixMysqlCharset.php @@ -106,10 +106,10 @@ class Pman_Core_Process_FixMysqlCharset extends Pman_Core_Cli { { $t = DB_DataObject::factory($tbl); DB_DataObject::debugLevel(1); - $t->query("SHOW TRIGGERS FROM {$t->databaseNickname()} where `table` = '{$tbl}'"); - if (!$t->find()) { + if (!$t->query("SHOW TRIGGERS FROM {$t->databaseNickname()} where `table` = '{$tbl}'")) { return; } + while ($t->fetch()) { print_r($t->toArray()); }