1235
MariaDBERRORNotableSyntax / VersionHIGH confidence

This version of MySQL doesn't yet support this feature

Production Risk

Low — query is rejected; upgrade or rewrite needed.

What this means

ER_NOT_SUPPORTED_YET (1235, SQLSTATE 42000) is raised when a SQL feature is used that the current MySQL version does not yet support. Common triggers include advanced window function syntax, CTEs with certain clauses, or features from newer versions.

Why it happens
  1. 1Using a SQL feature introduced in a newer MySQL version than installed
  2. 2Using certain subquery forms or clauses not yet supported
How to reproduce
trigger — this will error
trigger — this will error
-- In MySQL 5.6, CTEs are not supported
WITH cte AS (SELECT 1) SELECT * FROM cte;  -- ERROR 1235 in MySQL < 8.0

expected output

ERROR 1235 (42000): This version of MySQL doesn't yet support 'WITH'

Fix 1

Upgrade MySQL to a version that supports the feature

Upgrade MySQL to a version that supports the feature
-- Check current version
SELECT VERSION();

Why this works

Many modern SQL features (CTEs, window functions, JSON) require MySQL 8.0+.

Fix 2

Rewrite query using supported syntax

Rewrite query using supported syntax
-- Replace CTE with a derived table (MySQL 5.x compatible)
SELECT * FROM (SELECT 1 AS n) AS derived;

Why this works

Derived tables are supported in all MySQL versions and can replace simple CTEs.

Version notes

Sources
Official documentation ↗

MySQL 8.0 — 1235 ER_NOT_SUPPORTED_YET

Content generated with AI assistance and reviewed for accuracy. Found an error? hello@errcodes.dev

← All MariaDB errors