| @@ 425-435 (lines=11) @@ | ||
| 422 | /** |
|
| 423 | * {@inheritdoc} |
|
| 424 | */ |
|
| 425 | public function hasColumn($tableName, $columnName) |
|
| 426 | { |
|
| 427 | $rows = $this->fetchAll(sprintf('SHOW COLUMNS FROM %s', $this->quoteTableName($tableName))); |
|
| 428 | foreach ($rows as $column) { |
|
| 429 | if (strcasecmp($column['Field'], $columnName) === 0) { |
|
| 430 | return true; |
|
| 431 | } |
|
| 432 | } |
|
| 433 | ||
| 434 | return false; |
|
| 435 | } |
|
| 436 | ||
| 437 | /** |
|
| 438 | * {@inheritdoc} |
|
| @@ 639-649 (lines=11) @@ | ||
| 636 | /** |
|
| 637 | * {@inheritdoc} |
|
| 638 | */ |
|
| 639 | public function hasColumn($tableName, $columnName) |
|
| 640 | { |
|
| 641 | $rows = $this->getTableInfo($tableName); |
|
| 642 | foreach ($rows as $column) { |
|
| 643 | if (strcasecmp($column['name'], $columnName) === 0) { |
|
| 644 | return true; |
|
| 645 | } |
|
| 646 | } |
|
| 647 | ||
| 648 | return false; |
|
| 649 | } |
|
| 650 | ||
| 651 | /** |
|
| 652 | * {@inheritdoc} |
|