@@ -46,9 +46,9 @@ discard block |
||
46 | 46 | |
47 | 47 | $this->pdo = $pdo; |
48 | 48 | |
49 | - $this->script = 'SELECT COLUMN_NAME as "column", REFERENCED_COLUMN_NAME as ' . |
|
50 | - '"referenced_column", CONCAT(REFERENCED_TABLE_SCHEMA, ".", ' . |
|
51 | - 'REFERENCED_TABLE_NAME) as "referenced_table" FROM INFORMATION_SCHEMA' . |
|
49 | + $this->script = 'SELECT COLUMN_NAME as "column", REFERENCED_COLUMN_NAME as '. |
|
50 | + '"referenced_column", CONCAT(REFERENCED_TABLE_SCHEMA, ".", '. |
|
51 | + 'REFERENCED_TABLE_NAME) as "referenced_table" FROM INFORMATION_SCHEMA'. |
|
52 | 52 | '.KEY_COLUMN_USAGE WHERE CONSTRAINT_SCHEMA = "%s" AND TABLE_NAME = "%s";'; |
53 | 53 | } |
54 | 54 | |
@@ -60,7 +60,7 @@ discard block |
||
60 | 60 | */ |
61 | 61 | public function columns($table) |
62 | 62 | { |
63 | - return $this->query($table, 'DESCRIBE ' . $table); |
|
63 | + return $this->query($table, 'DESCRIBE '.$table); |
|
64 | 64 | } |
65 | 65 | |
66 | 66 | /** |
@@ -257,7 +257,7 @@ discard block |
||
257 | 257 | } |
258 | 258 | |
259 | 259 | if (empty($columns) === true) { |
260 | - $message = 'Table "' . $table . '" does not exists!'; |
|
260 | + $message = 'Table "'.$table.'" does not exists!'; |
|
261 | 261 | |
262 | 262 | throw new TableNotFoundException($message); |
263 | 263 | } |