| @@ 568-577 (lines=10) @@ | ||
| 565 | /** |
|
| 566 | * {@inheritDoc} |
|
| 567 | */ |
|
| 568 | public function getDropTemporaryTableSQL($table) |
|
| 569 | { |
|
| 570 | if ($table instanceof Table) { |
|
| 571 | $table = $table->getQuotedName($this); |
|
| 572 | } elseif (!is_string($table)) { |
|
| 573 | throw new \InvalidArgumentException('getDropTableSQL() expects $table parameter to be string or \Doctrine\DBAL\Schema\Table.'); |
|
| 574 | } |
|
| 575 | ||
| 576 | return 'DROP TEMPORARY TABLE ' . $table; |
|
| 577 | } |
|
| 578 | ||
| 579 | /** |
|
| 580 | * {@inheritDoc} |
|
| @@ 1082-1091 (lines=10) @@ | ||
| 1079 | * MySQL commits a transaction implicitly when DROP TABLE is executed, however not |
|
| 1080 | * if DROP TEMPORARY TABLE is executed. |
|
| 1081 | */ |
|
| 1082 | public function getDropTemporaryTableSQL($table) |
|
| 1083 | { |
|
| 1084 | if ($table instanceof Table) { |
|
| 1085 | $table = $table->getQuotedName($this); |
|
| 1086 | } elseif (!is_string($table)) { |
|
| 1087 | throw new \InvalidArgumentException('getDropTemporaryTableSQL() expects $table parameter to be string or \Doctrine\DBAL\Schema\Table.'); |
|
| 1088 | } |
|
| 1089 | ||
| 1090 | return 'DROP TEMPORARY TABLE ' . $table; |
|
| 1091 | } |
|
| 1092 | ||
| 1093 | /** |
|
| 1094 | * Gets the SQL Snippet used to declare a BLOB column type. |
|
| @@ 1448-1457 (lines=10) @@ | ||
| 1445 | * |
|
| 1446 | * @throws \InvalidArgumentException |
|
| 1447 | */ |
|
| 1448 | public function getDropIndexSQL($index, $table = null) |
|
| 1449 | { |
|
| 1450 | if ($index instanceof Index) { |
|
| 1451 | $index = $index->getQuotedName($this); |
|
| 1452 | } elseif (!is_string($index)) { |
|
| 1453 | throw new \InvalidArgumentException('AbstractPlatform::getDropIndexSQL() expects $index parameter to be string or \Doctrine\DBAL\Schema\Index.'); |
|
| 1454 | } |
|
| 1455 | ||
| 1456 | return 'DROP INDEX ' . $index; |
|
| 1457 | } |
|
| 1458 | ||
| 1459 | /** |
|
| 1460 | * Returns the SQL to drop a constraint. |
|