mirror of
https://github.com/grafana/grafana.git
synced 2024-11-29 04:04:00 -06:00
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 <derek@nozzle.io>
This commit is contained in:
parent
1ffe858e06
commit
03b795844c
@ -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
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user