@@ -17,9 +17,9 @@ discard block |
||
| 17 | 17 | */ |
| 18 | 18 | class MySQLDriver implements DriverInterface |
| 19 | 19 | { |
| 20 | - const FOREIGN_QUERY = 'SELECT COLUMN_NAME as "column", REFERENCED_COLUMN_NAME as "referenced_column",' . |
|
| 21 | - 'CONCAT(REFERENCED_TABLE_SCHEMA, ".", REFERENCED_TABLE_NAME) as "referenced_table"' . |
|
| 22 | - 'FROM INFORMATION_SCHEMA.KEY_COLUMN_USAGE ' . |
|
| 20 | + const FOREIGN_QUERY = 'SELECT COLUMN_NAME as "column", REFERENCED_COLUMN_NAME as "referenced_column",'. |
|
| 21 | + 'CONCAT(REFERENCED_TABLE_SCHEMA, ".", REFERENCED_TABLE_NAME) as "referenced_table"'. |
|
| 22 | + 'FROM INFORMATION_SCHEMA.KEY_COLUMN_USAGE '. |
|
| 23 | 23 | 'WHERE CONSTRAINT_SCHEMA = "%s" AND TABLE_NAME = "%s";'; |
| 24 | 24 | |
| 25 | 25 | /** |
@@ -55,7 +55,7 @@ discard block |
||
| 55 | 55 | */ |
| 56 | 56 | public function columns($table) |
| 57 | 57 | { |
| 58 | - return $this->query($table, 'DESCRIBE ' . $table); |
|
| 58 | + return $this->query($table, 'DESCRIBE '.$table); |
|
| 59 | 59 | } |
| 60 | 60 | |
| 61 | 61 | /** |
@@ -252,7 +252,7 @@ discard block |
||
| 252 | 252 | } |
| 253 | 253 | |
| 254 | 254 | if (empty($columns) === true) { |
| 255 | - $message = 'Table "' . $table . '" does not exists!'; |
|
| 255 | + $message = 'Table "'.$table.'" does not exists!'; |
|
| 256 | 256 | |
| 257 | 257 | throw new TableNotFoundException($message); |
| 258 | 258 | } |