enumConditionClass
enum ConditionClass
Public API: explicitly declared with
@visibility public.The classes of SQLSTATE values a handler can name: SQLWARNING, NOT FOUND and SQLEXCEPTION.
SQLWARNING stands for the values that begin with 01, NOT FOUND for those that begin with 02, SQLEXCEPTION for every other value that does not begin with 00. Source: https://dev.mysql.com/doc/refman/8.4/en/declare-handler.html.
count(\SqlSemantics\Platform\MySql\Statement\Routine\Condition\ConditionClass::cases()) // => 3Cases§
case SqlWarningcase NotFoundcase SqlExceptionTest cases 11§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 1
Other tests reaching this symbol 10
ConditionRuleTest::testHandledLowersASingleConditioncallsConditionRuleTest::testHandledLowersEveryKindOfConditioncallsBlockRuleTest::testDeclarationLowersAConditionAndAHandlercallsConditionFactsTest::providerSameComparesTheValuescallsReturnSearchTest::providerFoundFindsANestedReturncallsReturnSearchTest::providerFoundIsFalseWithoutReturncallsReturnSearchTest::testNestedAnswersTheStatementsAndHandlerStatementsOfABlockcallsGeneralConditionTest::providerRenderWritesTheKeywordsOfTheClasscallsGeneralConditionTest::testRenderWritesTheClassesAHandlerNamescallsHandlerDeclarationTest::testAStatementOfAnotherClassIsRejectedcalls
Relations§
Constant reads 6
- class-const SqlSemantics\Platform\MySql\Lowering\Routine\Condition\ConditionRule::handled() packages/sql-semantics-mysql/src/Lowering/Routine/Condition/ConditionRule.php:86
- class-const SqlSemantics\Platform\MySql\Lowering\Routine\Condition\ConditionRule::handled() packages/sql-semantics-mysql/src/Lowering/Routine/Condition/ConditionRule.php:87
- class-const SqlSemantics\Platform\MySql\Lowering\Routine\Condition\ConditionRule::handled() packages/sql-semantics-mysql/src/Lowering/Routine/Condition/ConditionRule.php:88
- class-const SqlSemantics\Platform\MySql\Statement\Routine\Condition\GeneralCondition::render() packages/sql-semantics-mysql/src/Statement/Routine/Condition/GeneralCondition.php:37
- class-const SqlSemantics\Platform\MySql\Statement\Routine\Condition\GeneralCondition::render() packages/sql-semantics-mysql/src/Statement/Routine/Condition/GeneralCondition.php:38
- class-const SqlSemantics\Platform\MySql\Statement\Routine\Condition\GeneralCondition::render() packages/sql-semantics-mysql/src/Statement/Routine/Condition/GeneralCondition.php:39