Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitb3b35e9

Browse files
author
Michael Meskes
committed
*** empty log message ***
1 parent3ca3bb7 commitb3b35e9

File tree

13 files changed

+855
-753
lines changed

13 files changed

+855
-753
lines changed

‎src/interfaces/ecpg/TODO

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,9 @@ indicator-error?
2323

2424
Add a semantic check level, e.g. check if a table really exists.
2525

26+
It would be nice if there was a alternative library using SPI functions
27+
instead of libpq so we can write backend functions using ecpg.
28+
2629
Missing statements:
2730
- exec sql ifdef
28-
- exec sql allocate
29-
- exec sql deallocate
3031
- SQLSTATE

‎src/interfaces/ecpg/lib/README.dynSQL

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
descriptor statements have the following shortcomings
2+
3+
- up to now the only reasonable statement is
4+
FETCH ... INTO SQL DESCRIPTOR <name>
5+
no input variables allowed!
6+
7+
Reason: to fully support dynamic SQL the frontend/backend communication
8+
should change to recognize input parameters.
9+
Since this is not likely to happen in the near future and you
10+
can cover the same functionality with the existing infrastructure
11+
I'll leave the work to someone else.
12+
13+
- string buffer overflow does not always generate warnings
14+
(beware: terminating 0 may be missing because strncpy is used)
15+
:var=data sets sqlwarn accordingly (but not indicator)
16+
17+
- char variables pointing to NULL are not allocated on demand
18+
19+
- string truncation does not show up in indicator
20+

‎src/interfaces/ecpg/lib/dynamic.c

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -2,26 +2,11 @@
22
*
33
* Copyright (c) 2000, Christof Petig <christof.petig@wtal.de>
44
*
5-
* $Header: /cvsroot/pgsql/src/interfaces/ecpg/lib/Attic/dynamic.c,v 1.1 2000/02/16 16:18:12 meskes Exp $
5+
* $Header: /cvsroot/pgsql/src/interfaces/ecpg/lib/Attic/dynamic.c,v 1.2 2000/02/17 19:48:41 meskes Exp $
66
*/
77

88
/* I borrowed the include files from ecpglib.c, maybe we don't need all of them */
99

10-
#if0
11-
#include<stdio.h>
12-
#include<stdlib.h>
13-
#include<unistd.h>
14-
#include<stdarg.h>
15-
#include<string.h>
16-
#include<ctype.h>
17-
#include<locale.h>
18-
19-
#include<libpq-fe.h>
20-
#include<libpq/pqcomm.h>
21-
#include<ecpgtype.h>
22-
#include<ecpglib.h>
23-
#include<sqlca.h>
24-
#endif
2510
#include<sql3types.h>
2611

2712
staticstructdescriptor

‎src/interfaces/ecpg/preproc/Makefile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@ CFLAGS+=-I../include -DMAJOR_VERSION=$(MAJOR_VERSION) \
1010
-DINCLUDE_PATH=\"$(HEADERDIR)\" -g
1111

1212
OBJ=preproc.o pgc.o type.o ecpg.o ecpg_keywords.o\
13-
keywords.o c_keywords.o ../lib/typename.o
14-
#../../../backend/parser/scansup.o
13+
keywords.o c_keywords.o ../lib/typename.o descriptor.o variable.o
1514

1615
all:: ecpg
1716

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp