tada / pljava

PL/Java is a free add-on module that brings Java™ Stored Procedures, Triggers, Functions, Aggregates, Operators, Types, etc., to the PostgreSQL™ backend.
http://tada.github.io/pljava/
Other
238 stars 77 forks source link

Expose predefined category codes in BaseUDT #391

Closed jcflack closed 2 years ago

jcflack commented 2 years ago

The PostgreSQL type 'category' is a bit awkward, because there are several predefined, but other codes can be used for custom purposes. So an enumeration of the predefined ones cannot be used as the type of the 'category' annotation element, but it still can improve readability when one of the predefined categories is what's wanted.

Also add a warning from the DDR processor if an upper-case category code has been given (that's the range reserved for PostgreSQL's predefined categories) but it doesn't correspond to any value of the PredefinedCategory enum.

jcflack commented 2 years ago

Created pull request against the wrong branch again. Mea culpa.