projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7e49bc0
)
Process/FixMysqlCharset.php
author
Alan
<alan@roojs.com>
Wed, 23 Aug 2023 02:25:49 +0000
(10:25 +0800)
committer
Alan
<alan@roojs.com>
Wed, 23 Aug 2023 02:25:49 +0000
(10:25 +0800)
Process/FixMysqlCharset.php
patch
|
blob
|
history
diff --git
a/Process/FixMysqlCharset.php
b/Process/FixMysqlCharset.php
index
ddf8f5a
..
f4bc159
100644
(file)
--- 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());
}