eulerto / pgquarrel

pgquarrel compares PostgreSQL database schemas (DDL)
BSD 3-Clause "New" or "Revised" License
390 stars 42 forks source link

Fix reference to polnamespace (segfault) #93

Closed jacobwgillespie closed 3 years ago

jacobwgillespie commented 3 years ago

It looks like the query returns the namespace name as polnamespace, but the code incorrectly asks for polnspname, causing a segfault when policy = true. This change fixes the issue for me locally.

jacobwgillespie commented 3 years ago

Actually it looks like the description column was missing entirely from the query as well - this PR now fixes all column number -1 is out of range 0..9 errors.

eulerto commented 3 years ago

Good catch.