classProhibitedExpression
final class ProhibitedExpression
implements Diagnostic
uses Snapshot
Public API: explicitly declared with
@visibility public.An expression of a definition that uses a construct SQLite rejects at its position.
SQLite reports "parameters prohibited in CHECK constraints" and the like when the definition is prepared. Source: https://sqlite.org/lang_createtable.html#check_constraints, https://sqlite.org/partialindex.html, https://sqlite.org/expridx.html, https://sqlite.org/gencol.html.
(new \SqlSemantics\Platform\Sqlite\Semantics())->analyze('CREATE INDEX i ON t (a) WHERE a IN (SELECT 1)') // throws \SqlSemantics\Platform\Sqlite\Model\Diagnostic\SemanticException: Subqueries are prohibited in partial index WHERE clauses.Properties§
public ProhibitedConstruct $constructpublic DefinitionPosition $positionMethods§
public function __construct(
public ProhibitedConstruct $construct,
public DefinitionPosition $position,
)Parameters
$construct | ProhibitedConstruct | What the expression uses |
$position | DefinitionPosition | Where it is used |
public function message(): stringDescribes the problem.
Returns
stringTest cases 1
Calls 2
- class-const ProhibitedConstruct::DotOperator() line 40
- function-call
ucfirstline 40
Test cases 3§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.