Process/FixMysqlCharset.php
authorAlan <alan@roojs.com>
Wed, 23 Aug 2023 02:26:19 +0000 (10:26 +0800)
committerAlan <alan@roojs.com>
Wed, 23 Aug 2023 02:26:19 +0000 (10:26 +0800)
Process/FixMysqlCharset.php

index f4bc159..1e0d640 100644 (file)
@@ -106,9 +106,7 @@ class Pman_Core_Process_FixMysqlCharset extends Pman_Core_Cli {
     {
         $t = DB_DataObject::factory($tbl);
         DB_DataObject::debugLevel(1);
-        if (!$t->query("SHOW TRIGGERS FROM {$t->databaseNickname()} where `table` = '{$tbl}'")) {
-            return;
-        }
+        $t->query("SHOW TRIGGERS FROM {$t->databaseNickname()} where `table` = '{$tbl}'")) {
         
         while ($t->fetch()) {
             print_r($t->toArray());