1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-05 07:21:24 +03:00

- Finished major rewrite to use new protocol version

- Really prepare statements
- Added more regression tests
- Added auto-prepare mode
- Use '$n' for positional variables, '?' is still possible via ecpg option
- Cleaned up the sources a little bit
This commit is contained in:
Michael Meskes
2007-08-14 10:01:54 +00:00
parent b83bd31bd9
commit 635a0b9a86
123 changed files with 4163 additions and 1537 deletions

View File

@ -1,4 +1,4 @@
/* $PostgreSQL: pgsql/src/interfaces/ecpg/compatlib/informix.c,v 1.48 2006/10/04 00:30:11 momjian Exp $ */
/* $PostgreSQL: pgsql/src/interfaces/ecpg/compatlib/informix.c,v 1.49 2007/08/14 10:01:52 meskes Exp $ */
#include <stdlib.h>
#include <string.h>
@ -202,10 +202,11 @@ deccvasc(char *cp, int len, decimal *np)
}
else
{
if (PGTYPESnumeric_to_decimal(result, np) != 0)
ret = ECPG_INFORMIX_NUM_OVERFLOW;
int i = PGTYPESnumeric_to_decimal(result, np);
free(result);
if (i != 0)
ret = ECPG_INFORMIX_NUM_OVERFLOW;
}
}