MCPcopy Index your code
hub / github.com/apache/devlake / IsCachedPlanError

Method IsCachedPlanError

backend/impls/dalgorm/dalgorm.go:502–504  ·  view source on GitHub ↗

IsCachedPlanError checks if the error is related to postgres cached query plan This error occurs occasionally in Postgres when reusing a cached query plan. It can be safely ignored since it does not actually affect results.

(err error)

Source from the content-addressed store, hash-verified

500// This error occurs occasionally in Postgres when reusing a cached query
501// plan. It can be safely ignored since it does not actually affect results.
502func (d *Dalgorm) IsCachedPlanError(err error) bool {
503 return strings.Contains(strings.ToLower(err.Error()), "cached plan must not change result type")
504}
505
506// IsJsonOrderError checks if the error is related to postgres json ordering
507func (d *Dalgorm) IsJsonOrderError(err error) bool {

Callers 1

convertGormErrorMethod · 0.95

Calls 1

ErrorMethod · 0.65

Tested by

no test coverage detected