Wed Apr 14 17:59:06 CEST 1999
- Added simple calculations for array bounds.
+
+Fri Apr 16 18:25:18 CEST 1999
+
+ - Fixed small bug in ECPGfinish().
- Set library version to 3.0.0
- Set ecpg version to 2.6.0
PQfinish(act->connection);
/* remove act from the list */
if (act == all_connections)
- {
all_connections = act->next;
- free(act->name);
- free(act);
- }
else
{
struct connection *con;
for (con = all_connections; con->next && con->next != act; con = con->next);
if (con->next)
- {
con->next = act->next;
- free(act->name);
- free(act);
- }
}
if (actual_connection == act)
actual_connection = all_connections;
+
+ free(act->name);
+ free(act);
}
else
ECPGlog("ECPGfinish: called an extra time.\n");
";" { return(';'); }
"," { return(','); }
"*" { return('*'); }
+"%" { return('%'); }
+"/" { return('/'); }
+"+" { return('+'); }
+"-" { return('-'); }
+"(" { return('('); }
+")" { return(')'); }
{space} { ECHO; }
\{ { return('{'); }
\} { return('}'); }
Iresult: Iconst { $$ = atol($1); }
| '(' Iresult ')' { $$ = $2; }
- | Iresult '+' Iresult { $$ = $1 + $3};
- | Iresult '-' Iresult { $$ = $1 - $3};
- | Iresult '*' Iresult { $$ = $1 * $3};
- | Iresult '/' Iresult { $$ = $1 / $3};
- | Iresult '%' Iresult { $$ = $1 % $3};
-
+ | Iresult '+' Iresult { $$ = $1 + $3; }
+ | Iresult '-' Iresult { $$ = $1 - $3; }
+ | Iresult '*' Iresult { $$ = $1 * $3; }
+ | Iresult '/' Iresult { $$ = $1 / $3; }
+ | Iresult '%' Iresult { $$ = $1 % $3; }
+ ;
/*****************************************************************************
ECPGdebug(1, dbgs);
strcpy(msg, "connect");
- exec sql connect to unix:postgresql://localhost:5432/mm;
+ exec sql connect to unix:postgresql://localhost:5432/mm;
strcpy(msg, "create");
exec sql create table meskes(name char(8), born integer, age smallint, married date, children integer);