diff --git a/composer.json b/composer.json index e207e16..83108c3 100644 --- a/composer.json +++ b/composer.json @@ -1,7 +1,7 @@ { "name" : "windwork/db", "description" : "windwork db component.Windwork MySQL数据库访问组件", - "version" : "0.3.2", + "version" : "0.3.3", "require" : { "php" : ">=5.5.0" }, diff --git a/lib/ADB.php b/lib/ADB.php index 65fed43..626461d 100644 --- a/lib/ADB.php +++ b/lib/ADB.php @@ -78,7 +78,7 @@ public function getTableSchema($table) static $tableSchemaList = array(); if((!$tableSchemaList || empty($tableSchemaList[$table]))) { - $rows = $this->getAll("SHOW COLUMNS FROM {$table}"); + $rows = $this->getAll("SHOW COLUMNS FROM %t", [$table]); $tableSchema = array( 'pk' => '', 'ai' => false,