mysqldude
Error codes › 3152

MySQL & MariaDB error 3152 ER_JSON_USED_AS_KEY

MySQLJSON column '…' supports indexing only via generated columns on a specified JSON path.
MariaDB
MySQLMariaDB
SymbolER_JSON_USED_AS_KEYER_MYSQL_3152
SQLSTATE42000HY000
TypeServer errorServer error
Versionssince 5.7.44 activesince 11.2.6 active
How the message changed between versions
MySQL fromSymbolMessage
5.7.44ER_JSON_VACUOUS_PATHThe path expression '$' is not allowed in this context.
8.0.11ER_JSON_USED_AS_KEYJSON column '%-.192s' supports indexing only via generated columns on a specified JSON path.