@@ -391,7 +391,7 @@ |
||
| 391 | 391 | $matches = preg_grep ( '*\.*' , $this->getTablesName () ); |
| 392 | 392 | if ( count ( $matches ) ) |
| 393 | 393 | { |
| 394 | - die("error: Table name must not contain the schema\n"); |
|
| 394 | + die("error: Table name must not contain the schema\n"); |
|
| 395 | 395 | } |
| 396 | 396 | } |
| 397 | 397 | |
@@ -174,10 +174,10 @@ discard block |
||
| 174 | 174 | $sqlTables = !empty($this->tablesName)?"AND table_name IN ( $this->tablesName )":''; |
| 175 | 175 | |
| 176 | 176 | $this->totalTables = $this->getPDO () |
| 177 | - ->query ( |
|
| 178 | - "SELECT COUNT(*) FROM information_schema.tables WHERE table_schema = '{$this->database}' $sqlTables" |
|
| 179 | - ) |
|
| 180 | - ->fetchColumn (); |
|
| 177 | + ->query ( |
|
| 178 | + "SELECT COUNT(*) FROM information_schema.tables WHERE table_schema = '{$this->database}' $sqlTables" |
|
| 179 | + ) |
|
| 180 | + ->fetchColumn (); |
|
| 181 | 181 | } |
| 182 | 182 | |
| 183 | 183 | return (int) $this->totalTables; |
@@ -194,10 +194,10 @@ discard block |
||
| 194 | 194 | public function getSequence ( $table, $column, $schema = 0 ) |
| 195 | 195 | { |
| 196 | 196 | $return = $this->getPDO () |
| 197 | - ->query ( |
|
| 198 | - "select * from information_schema.columns where extra like '%auto_increment%' and TABLE_SCHEMA='{$this->database}' AND TABLE_NAME='{$table}' AND COLUMN_NAME='{$column}';" |
|
| 199 | - ) |
|
| 200 | - ->fetch ( \PDO::FETCH_ASSOC ); |
|
| 197 | + ->query ( |
|
| 198 | + "select * from information_schema.columns where extra like '%auto_increment%' and TABLE_SCHEMA='{$this->database}' AND TABLE_NAME='{$table}' AND COLUMN_NAME='{$column}';" |
|
| 199 | + ) |
|
| 200 | + ->fetch ( \PDO::FETCH_ASSOC ); |
|
| 201 | 201 | |
| 202 | 202 | if ( !$return ) { |
| 203 | 203 | return; |
@@ -157,7 +157,7 @@ |
||
| 157 | 157 | |
| 158 | 158 | $configIni = isset( $argv[ 'config-ini' ] ) |
| 159 | 159 | ? $argv[ 'config-ini' ] : $this->_basePath |
| 160 | - . $this->configIniDefault; |
|
| 160 | + . $this->configIniDefault; |
|
| 161 | 161 | |
| 162 | 162 | $configTemp = $this->loadIniFile ( realpath ( $configIni ) ); |
| 163 | 163 | $configCurrent = self::parseConfigEnv ( $configTemp, $argv ); |