@@ -32,7 +32,7 @@ |
||
32 | 32 | /** |
33 | 33 | * Returns a single column from the next row of a result set. |
34 | 34 | * @param integer $columnIndex zero-based column index |
35 | - * @return mixed the column of the current row, false if no more rows available |
|
35 | + * @return string|false the column of the current row, false if no more rows available |
|
36 | 36 | */ |
37 | 37 | public function readColumn($columnIndex) |
38 | 38 | { |
@@ -146,7 +146,7 @@ |
||
146 | 146 | $orderByStatment = $this->buildOrderBy($newOrderBy); |
147 | 147 | |
148 | 148 | $sql = str_replace(':order', $orderByStatment,$sql); |
149 | - }else{ |
|
149 | + } else{ |
|
150 | 150 | $orderByStatment = $this->buildOrderBy($orderBy); |
151 | 151 | if ($orderByStatment !== '') { |
152 | 152 | $sql .= $this->separator . $orderByStatment; |
@@ -278,7 +278,7 @@ discard block |
||
278 | 278 | $command->bindValue(':schema', $this->db->defaultSchema); |
279 | 279 | $command->bindValue(':table1', $table->name); |
280 | 280 | |
281 | - }else { |
|
281 | + } else { |
|
282 | 282 | if (isset($table->schemaName)) { |
283 | 283 | $command->bindValue(':schema', $table->schemaName); |
284 | 284 | } |
@@ -353,7 +353,7 @@ discard block |
||
353 | 353 | $command->bindValue(':table', $table->name); |
354 | 354 | if($this->db->isISeries){ |
355 | 355 | $command->bindValue(':schema', $this->db->defaultSchema); |
356 | - }else { |
|
356 | + } else { |
|
357 | 357 | if (isset($table->schemaName)) { |
358 | 358 | $command->bindValue(':schema', $table->schemaName); |
359 | 359 | } |
@@ -400,7 +400,7 @@ discard block |
||
400 | 400 | AND qsys2.syscst.table_schema = :schema |
401 | 401 | ORDER BY qsys2.syskeycst.column_position |
402 | 402 | SQL; |
403 | - }else { |
|
403 | + } else { |
|
404 | 404 | $sql = <<<SQL |
405 | 405 | SELECT |
406 | 406 | i.indname AS indexname, |
@@ -424,7 +424,7 @@ discard block |
||
424 | 424 | |
425 | 425 | if($this->db->isISeries){ |
426 | 426 | $command->bindValue(':schema', $this->db->defaultSchema); |
427 | - }else{ |
|
427 | + } else{ |
|
428 | 428 | if (isset($table->schemaName)) { |
429 | 429 | $command->bindValue(':schema', $table->schemaName); |
430 | 430 | } |
@@ -459,7 +459,7 @@ discard block |
||
459 | 459 | AND TABLE_SCHEMA = :schema |
460 | 460 | ORDER BY TABLE_NAME |
461 | 461 | SQL; |
462 | - }else { |
|
462 | + } else { |
|
463 | 463 | |
464 | 464 | $sql = <<<SQL |
465 | 465 | SELECT |
@@ -98,6 +98,7 @@ discard block |
||
98 | 98 | |
99 | 99 | /** |
100 | 100 | * @inheritdoc |
101 | + * @param TableSchema $table |
|
101 | 102 | */ |
102 | 103 | protected function resolveTableNames($table, $name) |
103 | 104 | { |
@@ -182,6 +183,7 @@ discard block |
||
182 | 183 | |
183 | 184 | /** |
184 | 185 | * @inheritdoc |
186 | + * @param TableSchema $table |
|
185 | 187 | */ |
186 | 188 | protected function findColumns($table) |
187 | 189 | { |
@@ -271,6 +273,7 @@ discard block |
||
271 | 273 | |
272 | 274 | /** |
273 | 275 | * @inheritdoc |
276 | + * @param TableSchema $table |
|
274 | 277 | */ |
275 | 278 | protected function findConstraints($table) |
276 | 279 | { |
@@ -862,6 +865,9 @@ discard block |
||
862 | 865 | return $result; |
863 | 866 | } |
864 | 867 | |
868 | + /** |
|
869 | + * @param boolean $multiple |
|
870 | + */ |
|
865 | 871 | protected function normalizePdoRowKeyCase(array $row, $multiple) |
866 | 872 | { |
867 | 873 | if ($this->db->getSlavePdo()->getAttribute(\PDO::ATTR_CASE) === \PDO::CASE_LOWER) { |