enumCallMisuseRule
enum CallMisuseRule
Public API: explicitly declared with
@visibility public.The rules about the clauses of a function call that SQLite enforces by the kind of the function.
Source: https://sqlite.org/lang_aggfunc.html, https://sqlite.org/windowfunctions.html.
$query = (new \SqlSemantics\Platform\Sqlite\Semantics())->analyze('SELECT row_number()');
$query->facts->diagnostics[0]->rule // => \SqlSemantics\Platform\Sqlite\Statement\Query\Problem\CallMisuseRule::WindowWithoutOverCases§
case WindowWithoutOvercase ScalarAsWindowcase FilterWithoutAggregatecase FilterOnWindowOnlycase OrderByWithoutAggregatecase DistinctInWindowcase DistinctArgumentsTest cases 17§
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 16
CallChecksTest::testBrokenAnswersTheRulesInAFixedOrderForEachKindcallsCallChecksTest::testBrokenOfAPlainCallDependsOnTheKindOnlycallsCallChecksTest::testReportRecordsAFilterOnAWindowOnlyFunctioncallsCallChecksTest::testReportRecordsAnArgumentOrderingOutsideAnAggregatecallsCallChecksTest::testReportRecordsAScalarFunctionCalledAsAWindowOrWithFiltercallsCallChecksTest::testReportRecordsAWindowFunctionCalledWithoutOvercallsCallChecksTest::testReportRecordsDistinctInAWindowAndDistinctWithSeveralArgumentscallsCallChecksTest::testReportRecordsThroughTheDerivationcallsFunctionCallTest::testDeriveScalarReportsAFilterOnAScalarFunctioncallsFunctionCallTest::testDeriveScalarReportsAFilterOnAWindowOnlyFunctioncallsFunctionCallTest::testDeriveScalarReportsAnOrderingInsideAScalarCallcallsFunctionCallTest::testDeriveScalarReportsAScalarFunctionUsedAsAWindowcallsFunctionCallTest::testDeriveScalarReportsAWindowFunctionWithoutOvercallsFunctionCallTest::testDeriveScalarReportsDistinctInAWindowcallsFunctionCallTest::testDeriveScalarReportsDistinctWithSeveralArgumentscallsCallMisuseTest::providerMessagescalls
Relations§
Constant reads 14
- class-const SqlSemantics\Platform\Sqlite\Rules\Typing\CallChecks::broken() packages/sql-semantics-sqlite/src/Rules/Typing/CallChecks.php:56
- class-const SqlSemantics\Platform\Sqlite\Rules\Typing\CallChecks::broken() packages/sql-semantics-sqlite/src/Rules/Typing/CallChecks.php:57
- class-const SqlSemantics\Platform\Sqlite\Rules\Typing\CallChecks::broken() packages/sql-semantics-sqlite/src/Rules/Typing/CallChecks.php:58
- class-const SqlSemantics\Platform\Sqlite\Rules\Typing\CallChecks::broken() packages/sql-semantics-sqlite/src/Rules/Typing/CallChecks.php:59
- class-const SqlSemantics\Platform\Sqlite\Rules\Typing\CallChecks::broken() packages/sql-semantics-sqlite/src/Rules/Typing/CallChecks.php:60
- class-const SqlSemantics\Platform\Sqlite\Rules\Typing\CallChecks::broken() packages/sql-semantics-sqlite/src/Rules/Typing/CallChecks.php:61
- class-const SqlSemantics\Platform\Sqlite\Rules\Typing\CallChecks::broken() packages/sql-semantics-sqlite/src/Rules/Typing/CallChecks.php:62
- class-const SqlSemantics\Platform\Sqlite\Statement\Query\Problem\CallMisuse::message() packages/sql-semantics-sqlite/src/Statement/Query/Problem/CallMisuse.php:40
- class-const SqlSemantics\Platform\Sqlite\Statement\Query\Problem\CallMisuse::message() packages/sql-semantics-sqlite/src/Statement/Query/Problem/CallMisuse.php:41
- class-const SqlSemantics\Platform\Sqlite\Statement\Query\Problem\CallMisuse::message() packages/sql-semantics-sqlite/src/Statement/Query/Problem/CallMisuse.php:42
- class-const SqlSemantics\Platform\Sqlite\Statement\Query\Problem\CallMisuse::message() packages/sql-semantics-sqlite/src/Statement/Query/Problem/CallMisuse.php:43
- class-const SqlSemantics\Platform\Sqlite\Statement\Query\Problem\CallMisuse::message() packages/sql-semantics-sqlite/src/Statement/Query/Problem/CallMisuse.php:44
- class-const SqlSemantics\Platform\Sqlite\Statement\Query\Problem\CallMisuse::message() packages/sql-semantics-sqlite/src/Statement/Query/Problem/CallMisuse.php:45
- class-const SqlSemantics\Platform\Sqlite\Statement\Query\Problem\CallMisuse::message() packages/sql-semantics-sqlite/src/Statement/Query/Problem/CallMisuse.php:46