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

Commit76f286b

Browse files
author
Michael Meskes
committed
- Synced preproc.y with gram.y.
- Synced keyword.c.- Added patch by Christof Petig <christof.petig@wtal.de> to fix NOT FOUND problem on update/insert/delete.
1 parente9da3dc commit76f286b

File tree

8 files changed

+155
-156
lines changed

8 files changed

+155
-156
lines changed

‎src/interfaces/ecpg/ChangeLog

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -934,15 +934,22 @@ Mon Sep 18 13:55:11 PDT 2000
934934

935935
- Added int8 support based on a patch by Martijn Schoemaker <martijn@osp.nl>
936936

937-
Mit Sep 20 12:40:27 PDT 2000
937+
Wed Sep 20 12:40:27 PDT 2000
938938

939939
- Added patch by Christof Petig <christof.petig@wtal.de> to process
940940
backend NOTICEs.
941941
- Added patch by Christof Petig <christof.petig@wtal.de> to cache
942942
type information.
943943

944-
Don Sep 21 13:54:13 PDT 2000
944+
Thu Sep 21 13:54:13 PDT 2000
945945

946946
- Enabled parser to accept ip addresses instead of host names.
947+
948+
Tue Sep 26 13:00:16 PDT 2000
949+
950+
- Synced preproc.y with gram.y.
951+
- Synced keyword.c.
952+
- Added patch by Christof Petig <christof.petig@wtal.de> to fix NOT
953+
FOUND problem on update/insert/delete.
947954
- Set ecpg version to 2.8.0.
948955
- Set library version to 3.2.0.

‎src/interfaces/ecpg/TODO

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,9 @@
11
The complete structure definition has to be listed inside the declare
22
section of the structure variable for ecpg to be able to understand it.
33

4-
The error message for "no data" in an exec sql insert select from statement
5-
has to be 100.
6-
74
sqlwarn[6] should be 'W' if the PRECISION or SCALE value specified in a SET
85
DESCRIPTOR statement will be ignored.
96

10-
If a NOTICE message is given by the backend it should not be printed to
11-
stderr. Instead it should be listed as a warning.
12-
137
The error handling has to be improved by adding additional error-rules to
148
the parser.
159

@@ -28,4 +22,3 @@ remove space_or_nl and line_end from pgc.l
2822

2923
Missing features:
3024
- SQLSTATE
31-
- LONG LONG datatype

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -901,6 +901,10 @@ ECPGexecute(struct statement * stmt)
901901
sqlca.sqlerrd[1]=atol(PQoidStatus(results));
902902
sqlca.sqlerrd[2]=atol(PQcmdTuples(results));
903903
ECPGlog("ECPGexecute line %d Ok: %s\n",stmt->lineno,PQcmdStatus(results));
904+
if (!sqlca.sqlerrd[2]&& (!strncmp(PQcmdStatus(results),"UPDATE",6)
905+
|| !strncmp(PQcmdStatus(results),"INSERT",6)
906+
|| !strncmp(PQcmdStatus(results),"DELETE",6)))
907+
ECPGraise(stmt->lineno,ECPG_NOT_FOUND,NULL);
904908
break;
905909
casePGRES_NONFATAL_ERROR:
906910
casePGRES_FATAL_ERROR:
@@ -989,7 +993,7 @@ ECPGdo(int lineno, const char *connection_name, char *query,...)
989993
*
990994
* Copyright (c) 2000, Christof Petig <christof.petig@wtal.de>
991995
*
992-
* $Header: /cvsroot/pgsql/src/interfaces/ecpg/lib/Attic/execute.c,v 1.10 2000/09/21 11:56:07 meskes Exp $
996+
* $Header: /cvsroot/pgsql/src/interfaces/ecpg/lib/Attic/execute.c,v 1.11 2000/09/26 11:41:43 meskes Exp $
993997
*/
994998

995999
PGconn*ECPG_internal_get_connection(char*name);

‎src/interfaces/ecpg/preproc/keywords.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $Header: /cvsroot/pgsql/src/interfaces/ecpg/preproc/keywords.c,v 1.29 2000/09/19 11:47:14 meskes Exp $
11+
* $Header: /cvsroot/pgsql/src/interfaces/ecpg/preproc/keywords.c,v 1.30 2000/09/26 11:41:44 meskes Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -192,6 +192,7 @@ static ScanKeyword ScanKeywords[] = {
192192
{"operator",OPERATOR},
193193
{"option",OPTION},
194194
{"overlaps",OVERLAPS},
195+
{"owner",OWNER},
195196
{"or",OR},
196197
{"order",ORDER},
197198
{"out",OUT},

‎src/interfaces/ecpg/preproc/pgc.l

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
*
1313
*
1414
* IDENTIFICATION
15-
* $Header: /cvsroot/pgsql/src/interfaces/ecpg/preproc/pgc.l,v 1.63 2000/09/2605:42:15 ishii Exp $
15+
* $Header: /cvsroot/pgsql/src/interfaces/ecpg/preproc/pgc.l,v 1.64 2000/09/2611:41:44 meskes Exp $
1616
*
1717
*-------------------------------------------------------------------------
1818
*/

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp