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

Commitad5a54d

Browse files
author
Michael Meskes
committed
*** empty log message ***
1 parent075dc25 commitad5a54d

File tree

5 files changed

+20
-15
lines changed

5 files changed

+20
-15
lines changed

‎src/interfaces/ecpg/ChangeLog

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -559,6 +559,10 @@ Mon Apr 12 17:56:14 CEST 1999
559559
Wed Apr 14 17:59:06 CEST 1999
560560

561561
- Added simple calculations for array bounds.
562+
563+
Fri Apr 16 18:25:18 CEST 1999
564+
565+
- Fixed small bug in ECPGfinish().
562566
- Set library version to 3.0.0
563567
- Set ecpg version to 2.6.0
564568

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

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -149,26 +149,21 @@ ECPGfinish(struct connection * act)
149149
PQfinish(act->connection);
150150
/* remove act from the list */
151151
if (act==all_connections)
152-
{
153152
all_connections=act->next;
154-
free(act->name);
155-
free(act);
156-
}
157153
else
158154
{
159155
structconnection*con;
160156

161157
for (con=all_connections;con->next&&con->next!=act;con=con->next);
162158
if (con->next)
163-
{
164159
con->next=act->next;
165-
free(act->name);
166-
free(act);
167-
}
168160
}
169161

170162
if (actual_connection==act)
171163
actual_connection=all_connections;
164+
165+
free(act->name);
166+
free(act);
172167
}
173168
else
174169
ECPGlog("ECPGfinish: called an extra time.\n");

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -533,6 +533,12 @@ cppline{space}*#.*(\\{space}*\n)*\n*
533533
<C>";" {return(';'); }
534534
<C>"," {return(','); }
535535
<C>"*" {return('*'); }
536+
<C>"%" {return('%'); }
537+
<C>"/" {return('/'); }
538+
<C>"+" {return('+'); }
539+
<C>"-" {return('-'); }
540+
<C>"(" {return('('); }
541+
<C>")" {return(')'); }
536542
<C>{space}{ ECHO; }
537543
<C>\{{return('{'); }
538544
<C>\}{return('}'); }

‎src/interfaces/ecpg/preproc/preproc.y

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3218,12 +3218,12 @@ nest_array_bounds:'[' ']' nest_array_bounds
32183218

32193219
Iresult:Iconst{$$ = atol($1); }
32203220
|'('Iresult')'{$$ =$2; }
3221-
|Iresult'+'Iresult{$$ =$1 +$3};
3222-
|Iresult '-' Iresult{ $$ = $1 - $3};
3223-
|Iresult '*' Iresult{ $$ = $1 * $3};
3224-
|Iresult '/' Iresult{ $$ = $1 / $3};
3225-
|Iresult '%' Iresult{ $$ = $1 % $3};
3226-
3221+
|Iresult'+'Iresult{$$ =$1 +$3; }
3222+
|Iresult'-'Iresult{$$ =$1 -$3; }
3223+
|Iresult'*'Iresult{$$ =$1 *$3; }
3224+
|Iresult'/'Iresult{$$ =$1 /$3; }
3225+
|Iresult'%'Iresult{$$ =$1 %$3; }
3226+
;
32273227

32283228

32293229
/*****************************************************************************

‎src/interfaces/ecpg/test/test2.pgc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ exec sql end declare section;
4040
ECPGdebug(1, dbgs);
4141

4242
strcpy(msg, "connect");
43-
exec sql connect to unix:postgresql://localhost:5432/mm;
43+
exec sql connect to unix:postgresql://localhost:5432/mm;
4444

4545
strcpy(msg, "create");
4646
exec sql create table meskes(name char(8), born integer, age smallint, married date, children integer);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp