| @@ 581-590 (lines=10) @@ | ||
| 578 | /** |
|
| 579 | * {@inheritDoc} |
|
| 580 | */ |
|
| 581 | public function getDropTemporaryTableSQL($table) |
|
| 582 | { |
|
| 583 | if ($table instanceof Table) { |
|
| 584 | $table = $table->getQuotedName($this); |
|
| 585 | } elseif (!is_string($table)) { |
|
| 586 | throw new \InvalidArgumentException('getDropTableSQL() expects $table parameter to be string or \Doctrine\DBAL\Schema\Table.'); |
|
| 587 | } |
|
| 588 | ||
| 589 | return 'DROP TEMPORARY TABLE ' . $table; |
|
| 590 | } |
|
| 591 | ||
| 592 | /** |
|
| 593 | * {@inheritDoc} |
|
| @@ 1093-1102 (lines=10) @@ | ||
| 1090 | * MySQL commits a transaction implicitly when DROP TABLE is executed, however not |
|
| 1091 | * if DROP TEMPORARY TABLE is executed. |
|
| 1092 | */ |
|
| 1093 | public function getDropTemporaryTableSQL($table) |
|
| 1094 | { |
|
| 1095 | if ($table instanceof Table) { |
|
| 1096 | $table = $table->getQuotedName($this); |
|
| 1097 | } elseif (!is_string($table)) { |
|
| 1098 | throw new \InvalidArgumentException('getDropTemporaryTableSQL() expects $table parameter to be string or \Doctrine\DBAL\Schema\Table.'); |
|
| 1099 | } |
|
| 1100 | ||
| 1101 | return 'DROP TEMPORARY TABLE ' . $table; |
|
| 1102 | } |
|
| 1103 | ||
| 1104 | /** |
|
| 1105 | * Gets the SQL Snippet used to declare a BLOB column type. |
|