The following bug has been logged on the website:
Bug reference: 14776
Logged by: Thomas Chin
Email address: thom(at)genx(dot)net
PostgreSQL version: 9.6.3
Operating system: Linux
Description:
It appears that starting in ecpg 4.12.0, the pre-processor has issues with
macros code blocks ({ }) when a line continuation is used (\). When
encountered, "EXEC SQL TYPE" declarations are not registered, which results
in a "unregistered data type name" error. In another instance, variables
declared in an "EXEC SQL ... DECLARE SECTION" are unavailable given the same
conditions.