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

Commite30c2d6

Browse files
author
Michael Meskes
committed
*** empty log message ***
1 parent316c4c5 commite30c2d6

File tree

7 files changed

+347
-759
lines changed

7 files changed

+347
-759
lines changed

‎src/interfaces/ecpg/ChangeLog

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -705,3 +705,18 @@ Mon Nov 1 11:22:06 CET 1999
705705
- Print SQL error message to STDERR instead of STDOUT.
706706
- Added a fourth test source.
707707
- Set library version to 3.0.5.
708+
709+
Wed Nov 10 18:33:14 CET 1999
710+
711+
- Synced preproc.y with gram.y.
712+
713+
Thu Nov 11 07:49:44 CET 1999
714+
715+
- Fixed bug in SET AUTOCOMMIT.
716+
717+
Mon Nov 22 18:26:34 CET 1999
718+
719+
- Synced preproc.y with gram.y.
720+
- Clean up parser.
721+
- Set library version to 3.0.6.
722+
- Set ecpg version to 2.6.10.

‎src/interfaces/ecpg/TODO

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ has to be 100.
77
sqlwarn[6] should be 'W' if the PRECISION or SCALE value specified in a SET
88
DESCRIPTOR statement will be ignored.
99

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+
1013
it would be nice to be able to use :var[:index] as cvariable
1114

1215
support for dynamic SQL with unknown number of variables with DESCRIPTORS
@@ -18,6 +21,8 @@ indicator-error?
1821

1922
Add a semantic check level, e.g. check if a table really exists.
2023

24+
How can on insert arrays from c variables?
25+
2126
Missing statements:
2227
- exec sql ifdef
2328
- exec sql allocate

‎src/interfaces/ecpg/lib/Makefile.in

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@
66
# Copyright (c) 1994, Regents of the University of California
77
#
88
# IDENTIFICATION
9-
# $Header: /cvsroot/pgsql/src/interfaces/ecpg/lib/Attic/Makefile.in,v 1.50 1999/11/02 12:11:53 meskes Exp $
9+
# $Header: /cvsroot/pgsql/src/interfaces/ecpg/lib/Attic/Makefile.in,v 1.51 1999/11/22 12:48:46 meskes Exp $
1010
#
1111
#-------------------------------------------------------------------------
1212

1313
NAME= ecpg
1414
SO_MAJOR_VERSION= 3
15-
SO_MINOR_VERSION= 0.5
15+
SO_MINOR_VERSION= 0.6
1616

1717
SRCDIR= @top_srcdir@
1818
include$(SRCDIR)/Makefile.global

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

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -84,14 +84,14 @@ struct statement
8484
structvariable*outlist;
8585
};
8686

87-
structprepared_statement
87+
staticstructprepared_statement
8888
{
8989
char*name;
9090
structstatement*stmt;
9191
structprepared_statement*next;
9292
}*prep_stmts=NULL;
9393

94-
structauto_mem
94+
staticstructauto_mem
9595
{
9696
void*pointer;
9797
structauto_mem*next;
@@ -656,7 +656,7 @@ ECPGexecute(struct statement * stmt)
656656
}
657657
else
658658
{
659-
sqlca.sqlerrd[2]=0;
659+
/*sqlca.sqlerrd[2] = 0;*/
660660
var=stmt->outlist;
661661
switch (PQresultStatus(results))
662662
{
@@ -741,7 +741,7 @@ ECPGexecute(struct statement * stmt)
741741

742742
for (act_tuple=0;act_tuple<ntuples&&status;act_tuple++)
743743
{
744-
pval=PQgetvalue(results,act_tuple,act_field);
744+
pval=(char*)PQgetvalue(results,act_tuple,act_field);
745745

746746
ECPGlog("ECPGexecute line %d: RESULT: %s\n",stmt->lineno,pval ?pval :"");
747747

@@ -1112,6 +1112,7 @@ ECPGtrans(int lineno, const char *connection_name, const char *transaction)
11121112
}
11131113
PQclear(res);
11141114
}
1115+
11151116
if (strcmp(transaction,"commit")==0||strcmp(transaction,"rollback")==0)
11161117
{
11171118
structprepared_statement*this;
@@ -1140,7 +1141,9 @@ ECPGsetcommit(int lineno, const char *mode, const char *connection_name)
11401141
if (!ecpg_init(con,connection_name,lineno))
11411142
return(false);
11421143

1143-
if (con->autocommit== true&&strncmp(mode,"OFF",strlen("OFF"))==0)
1144+
ECPGlog("ECPGsetcommit line %d action = %s connection = %s\n",lineno,mode,con->name);
1145+
1146+
if (con->autocommit== true&&strncmp(mode,"off",strlen("off"))==0)
11441147
{
11451148
if (con->committed)
11461149
{
@@ -1154,7 +1157,7 @@ ECPGsetcommit(int lineno, const char *mode, const char *connection_name)
11541157
}
11551158
con->autocommit= false;
11561159
}
1157-
elseif (con->autocommit== false&&strncmp(mode,"ON",strlen("ON"))==0)
1160+
elseif (con->autocommit== false&&strncmp(mode,"on",strlen("on"))==0)
11581161
{
11591162
if (!con->committed)
11601163
{
@@ -1213,8 +1216,6 @@ ECPGconnect(int lineno, const char *dbname, const char *user, const char *passwd
12131216

12141217
ECPGlog("ECPGconnect: opening database %s %s%s\n",dbname ?dbname :"<DEFAULT>",user ?"for user " :"",user ?user :"");
12151218

1216-
sqlca.sqlcode=0;
1217-
12181219
this->connection=PQsetdbLogin(NULL,NULL,NULL,NULL,dbname,user,passwd);
12191220

12201221
if (PQstatus(this->connection)==CONNECTION_BAD)
@@ -1238,6 +1239,7 @@ ECPGdisconnect(int lineno, const char *connection_name)
12381239

12391240
if (strcmp(connection_name,"ALL")==0)
12401241
{
1242+
memcpy((char*)&sqlca, (char*)&sqlca_init,sizeof(sqlca));
12411243
for (con=all_connections;con;)
12421244
{
12431245
structconnection*f=con;

‎src/interfaces/ecpg/preproc/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ include $(SRCDIR)/Makefile.global
33

44
MAJOR_VERSION=2
55
MINOR_VERSION=6
6-
PATCHLEVEL=9
6+
PATCHLEVEL=10
77

88
CFLAGS+=-I../include -DMAJOR_VERSION=$(MAJOR_VERSION)\
99
-DMINOR_VERSION=$(MINOR_VERSION) -DPATCHLEVEL=$(PATCHLEVEL)\

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp