enumMisuseRule
enum MisuseRule: string
Public API: explicitly declared with
@visibility public.The rules of SQLite a grammatical statement can break without naming a missing object.
$query = (new \SqlSemantics\Platform\Sqlite\Semantics())->analyze('SELECT *');
$query->facts->diagnostics[0]->rule // => \SqlSemantics\Platform\Sqlite\Statement\Query\Problem\MisuseRule::StarWithoutTablesCases§
case StarWithoutTables = 'no tables specified'case UnknownJoinType = 'unknown join type'case OnWithoutJoin = 'a JOIN clause is required before ON'case UsingWithoutJoin = 'a JOIN clause is required before USING'case NaturalJoinWithConstraint = 'a NATURAL join may not have an ON or USING clause'case OrderByBeforeCompound = 'ORDER BY clause should come after the compound operator not before'case LimitBeforeCompound = 'LIMIT clause should come after the compound operator not before'case HexLiteralTooBig = 'hex literal too big'case DecoratedColumnName = 'syntax error after column name'case DuplicateCommonTable = 'duplicate WITH table name'case CircularReference = 'circular reference'case QualifiedTriggerTarget = 'qualified table names are not allowed on INSERT, UPDATE, and DELETE statements…case IndexedTriggerTarget = 'the INDEXED BY and NOT INDEXED clauses are not allowed on UPDATE or DELETE sta…case RaiseOutsideTrigger = 'RAISE() may only be used within a trigger-program'case ParameterInTrigger = 'trigger cannot use variables'case TooManyValueColumns = 'row value misused'Test cases 52§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 2
Other tests reaching this symbol 50
FromRuleTest::testTermsAnswersOneTermWithoutAConstraintAndAChainOtherwisecallsFromRuleTest::testWordLowersAWordBeforeJoinAsAKeywordWhenWrittenAsOneAndAsANameOtherwisecallsSortRuleTest::testColumnsLowersTheNamesOfAColumnListWithCollationAndDirectioncallsTriggerRuleTest::testTargetLowersTheWrittenTableWithItsIndexChoiceAndReportsWhatSqliteRefusescallsProgramOnlyTest::testInsideProgramIsAppliedToTheConditionAndTheStatementsOfATriggercallsProgramOnlyTest::testInsideProgramReportsABindParameterOncecallsProgramOnlyTest::testOutsideProgramIsAppliedToAQueryAndNotToATriggerProgramcallsProgramOnlyTest::testOutsideProgramReportsARaiseFunctioncallsRowValueUseTest::testSingleReportsARowValueAndAnswersTheProblemcallsRowValueUseTest::testUniformReportsARowValueBesideASingleValuecallsRowValueUseTest::testWidthIsUnknownForADependentOrInvalidTypecallsTriggerFactsTest::testDeriveReportsAParameterAnywhereInTheProgramcallsTriggerFactsTest::testDeriveReportsTriggerOnlyMisusesAndTheColumnsOfUpdateOfcallsCommonTablesTest::testBindReportsARepeatedNameAndACircularReferencecallsCommonTablesTest::testShapeKeepsTheQueryNamesWithoutAListAndReportsADecoratedNamecallsCompoundFactsTest::testDeriveReportsAnOrderingOrALimitOnAnEarlierArmcallsProjectionTest::testItemsReportsARowValueResultColumncallsProjectionTest::testItemsReportsAStarWithoutInputAndAQualifierThatNamesNoRelationcallsSortScopesTest::testDeriveResolvesAnOrdinalAgainstTheProjectionAndReportsARowValuecallsFromScopeTest::testEnterReportsConstraintsWithoutAJoinAndInvalidOperatorscallsStoragesTest::testEitherIsInvalidWhenAnAlternativeIscallsStoragesTest::testOfIsNullForADependentOrInvalidFactcallsCaseExpressionTest::testDeriveScalarReportsARowValueComparedWithASingleBasecallsCaseExpressionTest::testDeriveScalarReportsARowValueConditioncallsCaseExpressionTest::testDeriveScalarReportsARowValueResultcallsCollateTest::testDeriveScalarReportsACollatedRowValuecallsHexLiteralTest::testDeriveScalarReportsALiteralWiderThanSixtyFourBitscallsBetweenTest::testDeriveScalarReportsARowValueBesideSingleValuescallsBinaryTest::testDeriveScalarReportsARowValueBesideASingleValuecallsBinaryTest::testDeriveScalarReportsARowValueOperandOfAnyOtherOperatorcallsPatternMatchTest::testDeriveScalarReportsARowValueOperandcallsUnaryTest::testDeriveScalarReportsARowValueOperandcallsRaiseTest::testDeriveScalarOutsideATriggerIsReportedByTheStatementcallsRowExpressionTest::testDeriveScalarAsAResultColumnIsReportedByTheSelectioncallsDeleteTest::testDeriveStatementReportsRaiseOutsideATriggercallsInsertRowsTest::testDeriveStatementReportsRaiseOutsideATriggercallsUpdateTest::testDeriveStatementReportsRaiseOutsideATriggercallsCompoundTest::testDeriveQueryReportsAnOrderByOrALimitBeforeTheOperatorcallsListedColumnTest::testRenderWritesTheNameTheCollationAndTheDirectioncallsMisuseTest::testMessageIsReportedForAStarWithoutTablescallsMisuseTest::testMessageIsTheTextOfTheRulecallsSelectTest::testDeriveStatementReportsRaiseOutsideATriggercallsStarTest::testRenderWritesANewlyBuiltStarWithoutInputcallsValuesClauseTest::testDeriveStatementReportsRaiseOutsideATriggercallsWithClauseTest::testRenderWritesTablesThatRepeatANameAndReportsThemcallsWithQueryTest::testDeriveStatementReportsRaiseOutsideATriggercallsJoinChainTest::testDeriveRelationReportsAConstraintWrittenWithoutAJoincallsJoinChainTest::testDeriveRelationReportsAnUnknownJoinTypeAndANaturalJoinWithAConstraintcallsJoinOnTest::testConditionMustBeASingleValuecallsCreateTriggerTest::testDeriveStatementReportsWhatSqliteForbidsInsideATriggercalls
Relations§
Constant reads 18
- class-const SqlSemantics\Platform\Sqlite\Rules\Expression\ProgramOnly::outsideProgram() packages/sql-semantics-sqlite/src/Rules/Expression/ProgramOnly.php:35
- class-const SqlSemantics\Platform\Sqlite\Rules\Expression\ProgramOnly::insideProgram() packages/sql-semantics-sqlite/src/Rules/Expression/ProgramOnly.php:48
- class-const SqlSemantics\Platform\Sqlite\Rules\Expression\RowValueUse::single() packages/sql-semantics-sqlite/src/Rules/Expression/RowValueUse.php:56
- class-const SqlSemantics\Platform\Sqlite\Rules\Expression\RowValueUse::uniform() packages/sql-semantics-sqlite/src/Rules/Expression/RowValueUse.php:79
- class-const SqlSemantics\Platform\Sqlite\Rules\Mutation\TriggerFacts::derive() packages/sql-semantics-sqlite/src/Rules/Mutation/TriggerFacts.php:74
- class-const SqlSemantics\Platform\Sqlite\Rules\Mutation\TriggerFacts::derive() packages/sql-semantics-sqlite/src/Rules/Mutation/TriggerFacts.php:77
- class-const SqlSemantics\Platform\Sqlite\Rules\Query\CommonTables::bind() packages/sql-semantics-sqlite/src/Rules/Query/CommonTables.php:60
- class-const SqlSemantics\Platform\Sqlite\Rules\Query\CommonTables::bind() packages/sql-semantics-sqlite/src/Rules/Query/CommonTables.php:82
- class-const SqlSemantics\Platform\Sqlite\Rules\Query\CommonTables::shape() packages/sql-semantics-sqlite/src/Rules/Query/CommonTables.php:148
- class-const SqlSemantics\Platform\Sqlite\Rules\Query\CompoundFacts::derive() packages/sql-semantics-sqlite/src/Rules/Query/CompoundFacts.php:78
- class-const SqlSemantics\Platform\Sqlite\Rules\Query\CompoundFacts::derive() packages/sql-semantics-sqlite/src/Rules/Query/CompoundFacts.php:78
- class-const SqlSemantics\Platform\Sqlite\Rules\Query\Projection::items() packages/sql-semantics-sqlite/src/Rules/Query/Projection.php:61
- class-const SqlSemantics\Platform\Sqlite\Rules\Query\Projection::items() packages/sql-semantics-sqlite/src/Rules/Query/Projection.php:76
- class-const SqlSemantics\Platform\Sqlite\Rules\Resolution\FromScope::enter() packages/sql-semantics-sqlite/src/Rules/Resolution/FromScope.php:80
- class-const SqlSemantics\Platform\Sqlite\Rules\Resolution\FromScope::enter() packages/sql-semantics-sqlite/src/Rules/Resolution/FromScope.php:83
- class-const SqlSemantics\Platform\Sqlite\Rules\Resolution\FromScope::enter() packages/sql-semantics-sqlite/src/Rules/Resolution/FromScope.php:89
- class-const SqlSemantics\Platform\Sqlite\Rules\Resolution\FromScope::enter() packages/sql-semantics-sqlite/src/Rules/Resolution/FromScope.php:89
- class-const SqlSemantics\Platform\Sqlite\Statement\Expression\Literal\HexLiteral::deriveScalar() packages/sql-semantics-sqlite/src/Statement/Expression/Literal/HexLiteral.php:57