diff options
| author | Michael Meskes <meskes@postgresql.org> | 2000-02-17 19:48:58 +0000 |
|---|---|---|
| committer | Michael Meskes <meskes@postgresql.org> | 2000-02-17 19:48:58 +0000 |
| commit | b3b35e98b67d51d6e21dd06e5342c3c46074fa4f (patch) | |
| tree | 3b086b1da683037632c3a8fdfcc4acfa20237774 /src/interfaces/ecpg/lib | |
| parent | 3ca3bb7d8b00d4ac9f9b6e1edef28d0aa17e7206 (diff) | |
| download | postgresql-b3b35e98b67d51d6e21dd06e5342c3c46074fa4f.tar.gz | |
*** empty log message ***
Diffstat (limited to 'src/interfaces/ecpg/lib')
| -rw-r--r-- | src/interfaces/ecpg/lib/README.dynSQL | 20 | ||||
| -rw-r--r-- | src/interfaces/ecpg/lib/dynamic.c | 17 |
2 files changed, 21 insertions, 16 deletions
diff --git a/src/interfaces/ecpg/lib/README.dynSQL b/src/interfaces/ecpg/lib/README.dynSQL new file mode 100644 index 0000000000..fedcf80402 --- /dev/null +++ b/src/interfaces/ecpg/lib/README.dynSQL @@ -0,0 +1,20 @@ +descriptor statements have the following shortcomings + +- up to now the only reasonable statement is + FETCH ... INTO SQL DESCRIPTOR <name> + no input variables allowed! + + Reason: to fully support dynamic SQL the frontend/backend communication + should change to recognize input parameters. + Since this is not likely to happen in the near future and you + can cover the same functionality with the existing infrastructure + I'll leave the work to someone else. + +- string buffer overflow does not always generate warnings + (beware: terminating 0 may be missing because strncpy is used) + :var=data sets sqlwarn accordingly (but not indicator) + +- char variables pointing to NULL are not allocated on demand + +- string truncation does not show up in indicator + diff --git a/src/interfaces/ecpg/lib/dynamic.c b/src/interfaces/ecpg/lib/dynamic.c index ec8e927d64..752c02cfc0 100644 --- a/src/interfaces/ecpg/lib/dynamic.c +++ b/src/interfaces/ecpg/lib/dynamic.c @@ -2,26 +2,11 @@ * * Copyright (c) 2000, Christof Petig <christof.petig@wtal.de> * - * $Header: /cvsroot/pgsql/src/interfaces/ecpg/lib/Attic/dynamic.c,v 1.1 2000/02/16 16:18:12 meskes Exp $ + * $Header: /cvsroot/pgsql/src/interfaces/ecpg/lib/Attic/dynamic.c,v 1.2 2000/02/17 19:48:41 meskes Exp $ */ /* I borrowed the include files from ecpglib.c, maybe we don't need all of them */ -#if 0 -#include <stdio.h> -#include <stdlib.h> -#include <unistd.h> -#include <stdarg.h> -#include <string.h> -#include <ctype.h> -#include <locale.h> - -#include <libpq-fe.h> -#include <libpq/pqcomm.h> -#include <ecpgtype.h> -#include <ecpglib.h> -#include <sqlca.h> -#endif #include <sql3types.h> static struct descriptor |
