classAlterTableGuard
final class AlterTableGuard
Restricted visibility: declared "@visibility ZtdQuery\Platform\MySql". Code outside that scope must not name this declaration.
Alter Table Guard.
Methods§
public function hasUnsupportedAlterOperation(AlterStatement $statement, string $sql): boolCheck for unsupported ALTER TABLE operations.
Parameters
$statement | AlterStatement | |
$sql | string |
Returns
boolTest cases 4
Called from 1
Calls 3
- function-call
strtoupperline 22 - function-call
str_containsline 23 - method-call AlterTableGuard::rejectsOperation() line 30
public function rejectsOperation(AlterOperation $operation): boolRecognize ALTER operations whose effects cannot be simulated safely.
Parameters
$operation | AlterOperation |
Returns
boolTest cases 5
Called from 1
Calls 4
- static-call OptionList::hasAny() line 50
- static-call OptionList::unknownKeywords() line 63
- function-call
in_arrayline 64 - function-call
str_containsline 71
Test cases 12§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 9
AlterTableGuardTest::testHasUnsupportedAlterOperationCase1callsAlterTableGuardTest::testHasUnsupportedAlterOperationCase2callsAlterTableGuardTest::testHasUnsupportedAlterOperationCase3callsAlterTableGuardTest::testHasUnsupportedAlterOperationCase4callsAlterTableGuardTest::testRejectsOperationCase1callsAlterTableGuardTest::testRejectsOperationCase2callsAlterTableGuardTest::testRejectsOperationCase3callsAlterTableGuardTest::testRejectsOperationCase4callsAlterTableGuardTest::testRejectsOperationCase5calls
Other tests reaching this symbol 3
MySqlSessionFactoryTestcallsMySqlRewriterTestcallsStatementRewriterTestcalls