Toad World® Forums

Help on overriding standard PER Generator

I thought this would be straightforward, but it wasn't.

I'd like to modify the standard script for CREATE TABLE. (DB is PostgreSQL 11.) I have two scripts in My Package. In each I copied one function from PERCodeGeneratorPG, once the Internal Script version, once the JScript. Neither is being called when I generate DDL (I can tell because they should output a comment string, setting aside the added logic.)

My guess is I missed one step telling it to override.

Hello Andrew,

to overwrite function via script, it's necessary to define that function in Metamodel (see manual).

Hope this will help.

Michal