Make ecpg SQLSTATE-aware. Map existing SQLCODE assignments to SQLSTATEs,
Peter Eisentraut <peter_e@gmx.net>
Make ecpg SQLSTATE-aware. Map existing SQLCODE assignments to SQLSTATEs, rather than parsing the message. Add some documentation about embedded SQL.
Files
| Path | Change | +/− |
|---|---|---|
| doc/src/sgml/ecpg.sgml | modified | +953 −198 |
| src/backend/commands/portalcmds.c | modified | +2 −3 |
| src/interfaces/ecpg/compatlib/Makefile | modified | +2 −2 |
| src/interfaces/ecpg/ecpglib/connect.c | modified | +35 −139 |
| src/interfaces/ecpg/ecpglib/data.c | modified | +17 −17 |
| src/interfaces/ecpg/ecpglib/descriptor.c | modified | +11 −11 |
| src/interfaces/ecpg/ecpglib/error.c | modified | +36 −19 |
| src/interfaces/ecpg/ecpglib/execute.c | modified | +27 −29 |
| src/interfaces/ecpg/ecpglib/extern.h | modified | +26 −0 |
| src/interfaces/ecpg/ecpglib/memory.c | modified | +4 −4 |
| src/interfaces/ecpg/ecpglib/misc.c | modified | +7 −6 |
| src/interfaces/ecpg/ecpglib/prepare.c | modified | +2 −2 |
| src/interfaces/ecpg/include/ecpglib.h | modified | +4 −2 |
| src/interfaces/ecpg/include/sqlca.h | modified | +1 −1 |
| src/interfaces/ecpg/test/Makefile | modified | +2 −2 |