final class InvalidUserAttribute
    implements Diagnostic
    uses Snapshot
Public API: explicitly declared with @visibility public.

An ATTRIBUTE clause whose string is not a JSON object.

The server rejects the statement with ER_INVALID_USER_ATTRIBUTE_JSON. Source: https://dev.mysql.com/doc/refman/8.4/en/create-user.html#create-user-comments-attributes.

Describing the problemdoctest
(new \SqlSemantics\Platform\MySql\Statement\Account\Problem\InvalidUserAttribute('[1]'))->message() // => 'The user attribute [1] is not a JSON object (ER_INVALID_USER_ATTRIBUTE_JSON).'

Properties§

public string $text

Methods§

public function __construct(public string $text)

Parameters

$textstringThe attribute string as decoded
public function message(): string

Describes the problem.

Returns

string
Test cases 1

Test cases 3§

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 2

Relations§

Instantiated in 1