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.
Showing
- src/interfaces/ecpg/ecpglib/typename.c 2 additions, 2 deletionssrc/interfaces/ecpg/ecpglib/typename.c
- src/interfaces/ecpg/test/expected/sql-dyntest.c 17 additions, 20 deletionssrc/interfaces/ecpg/test/expected/sql-dyntest.c
- src/interfaces/ecpg/test/expected/sql-dyntest.stderr 19 additions, 19 deletionssrc/interfaces/ecpg/test/expected/sql-dyntest.stderr
- src/interfaces/ecpg/test/expected/sql-dyntest.stdout 2 additions, 2 deletionssrc/interfaces/ecpg/test/expected/sql-dyntest.stdout
- src/interfaces/ecpg/test/sql/dyntest.pgc 1 addition, 4 deletionssrc/interfaces/ecpg/test/sql/dyntest.pgc
Loading
Please register or sign in to comment