From 03b795844c739e2512c8d61ae32faab8c8e78bf8 Mon Sep 17 00:00:00 2001 From: Kristin Laemmert Date: Wed, 17 Apr 2024 08:37:47 -0400 Subject: [PATCH] SQLStore: Improve recursive CTE support detection (#86397) sqlstore: improve recursive CTE support detection Vitess returns a not supported error, not a parse error Co-authored-by: Derek Perkins --- pkg/services/sqlstore/sqlstore.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/services/sqlstore/sqlstore.go b/pkg/services/sqlstore/sqlstore.go index d1c66575964..59faffe6db4 100644 --- a/pkg/services/sqlstore/sqlstore.go +++ b/pkg/services/sqlstore/sqlstore.go @@ -382,7 +382,7 @@ func (ss *SQLStore) RecursiveQueriesAreSupported() (bool, error) { }); err != nil { var driverErr *mysql.MySQLError if errors.As(err, &driverErr) { - if driverErr.Number == mysqlerr.ER_PARSE_ERROR { + if driverErr.Number == mysqlerr.ER_PARSE_ERROR || driverErr.Number == mysqlerr.ER_NOT_SUPPORTED_YET { return false, nil } }