enumArityRule
enum ArityRule
Public API: explicitly declared with
@visibility public.The places where SQLite requires two column counts to agree.
$query = (new \SqlSemantics\Platform\Sqlite\Semantics())->analyze('SELECT 1 UNION SELECT 2, 3');
$query->facts->diagnostics[0]->rule // => \SqlSemantics\Platform\Sqlite\Statement\Query\Problem\ArityRule::CompoundArmsCases§
case CompoundArmscase ValueRowscase InsertedValuescase CommonTableColumnscase RowComparisoncase RowAssignmentcase ScalarSubquerycase InListElementTest cases 19§
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 18
RowValueUseTest::testElementsReportsTheFirstElementOfAnotherWidthOnlycallsRowValueUseTest::testMembershipReportsAnOperandOfAnotherWidthThanTheColumnscallsRowValueUseTest::testUniformReportsRowsOfDifferentWidthscallsInsertFactsTest::testDeriveCountsTheColumnsThatAreNotGeneratedWhenNoListIsWrittencallsInsertFactsTest::testDeriveCountsTheSourceColumnsAgainstTheTargetcallsMutationScopeTest::testAssignChecksTheColumnsAndTheWidthOfEachAssignmentcallsCommonTablesTest::testShapeRenamesTheColumnsByTheListAndReportsAnotherLengthcallsCompoundFactsTest::testCombinedTakesTheNamesOfTheFirstArmAndReportsAnotherWidthOncecallsBinaryTest::testDeriveScalarReportsRowsOfDifferentWidthscallsInListTest::testDeriveScalarReportsTheFirstValueOfAnotherWidthcallsInQueryTest::testDeriveScalarReportsAQueryOfAnotherWidthcallsInTableTest::testDeriveScalarReportsATableOfAnotherWidthcallsInsertRowsTest::testDeriveStatementCountsTheValuesAgainstTheColumnscallsInsertSelectTest::testDeriveStatementComparesTheQueryWidthWithTheColumnscallsRowAssignmentTest::testColumnsMustMatchTheWidthOfTheValuecallsCompoundTest::testDeriveQueryReportsArmsOfDifferentWidthOncecallsArityMismatchTest::providerMessagescallsValuesClauseTest::testDeriveQueryReportsARowOfAnotherWidthOncecalls
Relations§
Constant reads 17
- 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\Expression\RowValueUse::membership() packages/sql-semantics-sqlite/src/Rules/Expression/RowValueUse.php:89
- class-const SqlSemantics\Platform\Sqlite\Rules\Expression\RowValueUse::elements() packages/sql-semantics-sqlite/src/Rules/Expression/RowValueUse.php:104
- class-const SqlSemantics\Platform\Sqlite\Rules\Mutation\InsertFacts::derive() packages/sql-semantics-sqlite/src/Rules/Mutation/InsertFacts.php:66
- class-const SqlSemantics\Platform\Sqlite\Rules\Mutation\MutationScope::assign() packages/sql-semantics-sqlite/src/Rules/Mutation/MutationScope.php:96
- class-const SqlSemantics\Platform\Sqlite\Rules\Query\CommonTables::shape() packages/sql-semantics-sqlite/src/Rules/Query/CommonTables.php:136
- class-const SqlSemantics\Platform\Sqlite\Rules\Query\CompoundFacts::combined() packages/sql-semantics-sqlite/src/Rules/Query/CompoundFacts.php:113
- class-const SqlSemantics\Platform\Sqlite\Statement\Expression\Subquery\ScalarSubquery::deriveScalar() packages/sql-semantics-sqlite/src/Statement/Expression/Subquery/ScalarSubquery.php:59
- class-const SqlSemantics\Platform\Sqlite\Statement\Query\Problem\ArityMismatch::message() packages/sql-semantics-sqlite/src/Statement/Query/Problem/ArityMismatch.php:38
- class-const SqlSemantics\Platform\Sqlite\Statement\Query\Problem\ArityMismatch::message() packages/sql-semantics-sqlite/src/Statement/Query/Problem/ArityMismatch.php:39
- class-const SqlSemantics\Platform\Sqlite\Statement\Query\Problem\ArityMismatch::message() packages/sql-semantics-sqlite/src/Statement/Query/Problem/ArityMismatch.php:40
- class-const SqlSemantics\Platform\Sqlite\Statement\Query\Problem\ArityMismatch::message() packages/sql-semantics-sqlite/src/Statement/Query/Problem/ArityMismatch.php:41
- class-const SqlSemantics\Platform\Sqlite\Statement\Query\Problem\ArityMismatch::message() packages/sql-semantics-sqlite/src/Statement/Query/Problem/ArityMismatch.php:42
- class-const SqlSemantics\Platform\Sqlite\Statement\Query\Problem\ArityMismatch::message() packages/sql-semantics-sqlite/src/Statement/Query/Problem/ArityMismatch.php:43
- class-const SqlSemantics\Platform\Sqlite\Statement\Query\Problem\ArityMismatch::message() packages/sql-semantics-sqlite/src/Statement/Query/Problem/ArityMismatch.php:44
- class-const SqlSemantics\Platform\Sqlite\Statement\Query\Problem\ArityMismatch::message() packages/sql-semantics-sqlite/src/Statement/Query/Problem/ArityMismatch.php:45
- class-const SqlSemantics\Platform\Sqlite\Statement\Query\ValuesClause::deriveQuery() packages/sql-semantics-sqlite/src/Statement/Query/ValuesClause.php:84