Fix SQL3 type return value.
Michael Meskes <meskes@postgresql.org>
Fix SQL3 type return value. For non-SQL3 types ecpg used to return -Oid. This will break if there are enough Oids to fill the namespace. Therefore we play it safe and return 0 if there is no Oid->SQL3 tyoe mapping available.
Files
| Path | Change | +/− |
|---|---|---|
| src/interfaces/ecpg/ecpglib/typename.c | modified | +2 −2 |
| src/interfaces/ecpg/test/expected/sql-dyntest.c | modified | +17 −20 |
| src/interfaces/ecpg/test/expected/sql-dyntest.stderr | modified | +19 −19 |
| src/interfaces/ecpg/test/expected/sql-dyntest.stdout | modified | +2 −2 |
| src/interfaces/ecpg/test/sql/dyntest.pgc | modified | +1 −4 |