DASSL / ClassDB

An open-source system to let students experiment with relational data
https://dassl.github.io/ClassDB/
Other
8 stars 2 forks source link

Guard uses of DROP OWNED: changed in pg9.5 (N) #269

Closed smurthys closed 6 years ago

smurthys commented 6 years ago

The names CURRENT_USER and SESSION_USER in DROP OWNED is permitted only from pg9.5. Thus, this pattern of code needs to be guarded and executed as dynamic SQL in pg9.4 and earlier.

The script testDisallowSchemaDrop.sql has a few instances that need guarding.

smurthys commented 6 years ago

A few tips for making the changes: