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)
| 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. |
| 502 | func (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 |
| 507 | func (d *Dalgorm) IsJsonOrderError(err error) bool { |