Hello,
under admittedly strange conditions:- connecting to default database- disconnecting via 'exec sql commit work release'ecpg generates wrong code.
The included patch cures this.
Best regards Christof