]> granicus.if.org Git - postgresql/commit
Fix SQL3 type return value.
authorMichael Meskes <meskes@postgresql.org>
Wed, 13 Jan 2010 08:41:50 +0000 (08:41 +0000)
committerMichael Meskes <meskes@postgresql.org>
Wed, 13 Jan 2010 08:41:50 +0000 (08:41 +0000)
commitcf4d9c4772d9b8efe7d132ce6556d6b338870515
tree708e2f9e78517dbbfbe95054dce01d4efd5d59d9
parent43a9a2fb89e67f61c50419264a767e7356824067
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.
src/interfaces/ecpg/ecpglib/typename.c
src/interfaces/ecpg/test/expected/sql-dyntest.c
src/interfaces/ecpg/test/expected/sql-dyntest.stderr
src/interfaces/ecpg/test/expected/sql-dyntest.stdout
src/interfaces/ecpg/test/sql/dyntest.pgc