Explorar o código

Fixed:表名的问题

Zhu Jinhui %!s(int64=7) %!d(string=hai) anos
pai
achega
9edd8197b6
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/Driver/Base.php

+ 1 - 1
src/Driver/Base.php

@@ -346,7 +346,7 @@ class Base
 	{
 		list($database, $tableName) = array_pad(explode('.', $table), 2, '');
 		if($tableName) return "`{$database}`.`{$tableName}`";
-		return $table;
+		return '`'. $table . '`';
 	}
 
 	public function setLanguage()