classInvalidUserAttribute
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.
(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 $textMethods§
public function __construct(public string $text)Parameters
$text | string | The attribute string as decoded |
public function message(): stringDescribes the problem.
Returns
stringTest cases 1
Test cases 3§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.