The use of the dollar sign ($) as the initial character of an unquoted identifier was deprecated in MySQL 8.0.32. In this release, the use of an unquoted identifier starting with the dollar sign and containing one or more dollar signs in addition to the first one generates a syntax error.
From the MySQL changelog:
This means that code such as this:
which produces a query like this:
produces an error when using the query and args in methods like
sqlx.DB.SelectContext
: