procedureDefinitionsEqual compares procedure definitions with normalization
(def1, def2, _ string)
| 2334 | |
| 2335 | // procedureDefinitionsEqual compares procedure definitions with normalization |
| 2336 | func procedureDefinitionsEqual(def1, def2, _ string) bool { |
| 2337 | if def1 == def2 { |
| 2338 | return true |
| 2339 | } |
| 2340 | |
| 2341 | // Try PostgreSQL normalization first |
| 2342 | norm1 := normalizePostgreSQLFunction(def1) |
| 2343 | norm2 := normalizePostgreSQLFunction(def2) |
| 2344 | if norm1 == norm2 { |
| 2345 | return true |
| 2346 | } |
| 2347 | |
| 2348 | // For other engines, fall back to simple comparison |
| 2349 | return false |
| 2350 | } |
| 2351 | |
| 2352 | // sortDiffLists sorts all diff lists to ensure stable output order |
| 2353 | func sortDiffLists(diff *MetadataDiff) { |
no test coverage detected