Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
cf6420dd
Commit
cf6420dd
authored
Mar 19, 2000
by
Michael Meskes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
*** empty log message ***
parent
a73b7561
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
6 deletions
+11
-6
src/interfaces/ecpg/ChangeLog
src/interfaces/ecpg/ChangeLog
+4
-0
src/interfaces/ecpg/preproc/preproc.y
src/interfaces/ecpg/preproc/preproc.y
+5
-5
src/interfaces/ecpg/test/test1.pgc
src/interfaces/ecpg/test/test1.pgc
+2
-1
No files found.
src/interfaces/ecpg/ChangeLog
View file @
cf6420dd
...
@@ -867,5 +867,9 @@ Wed Mar 15 17:36:02 CET 2000
...
@@ -867,5 +867,9 @@ Wed Mar 15 17:36:02 CET 2000
- Synced preproc.y with gram.y.
- Synced preproc.y with gram.y.
- Synced pgc.l with scan.l.
- Synced pgc.l with scan.l.
- Synced keyword.c.
- Synced keyword.c.
Sun Mar 19 11:03:13 CET 2000
- Fixed quoting bug in disconnect statement.
- Set library version to 3.1.0.
- Set library version to 3.1.0.
- Set ecpg version to 2.7.0.
- Set ecpg version to 2.7.0.
src/interfaces/ecpg/preproc/preproc.y
View file @
cf6420dd
...
@@ -486,7 +486,7 @@ stmt: AlterTableStmt { output_statement($1, 0, NULL, connection); }
...
@@ -486,7 +486,7 @@ stmt: AlterTableStmt { output_statement($1, 0, NULL, connection); }
if (connection)
if (connection)
mmerror(ET_ERROR, "no at option for disconnect statement.\n");
mmerror(ET_ERROR, "no at option for disconnect statement.\n");
fprintf(yyout, "{ ECPGdisconnect(__LINE__,
\"%s\"
);", $1);
fprintf(yyout, "{ ECPGdisconnect(__LINE__,
%s
);", $1);
whenever_action(2);
whenever_action(2);
free($1);
free($1);
}
}
...
@@ -4372,12 +4372,12 @@ ECPGDeclare: DECLARE STATEMENT ident
...
@@ -4372,12 +4372,12 @@ ECPGDeclare: DECLARE STATEMENT ident
ECPGDisconnect: SQL_DISCONNECT dis_name { $$ = $2; }
ECPGDisconnect: SQL_DISCONNECT dis_name { $$ = $2; }
dis_name: connection_object { $$ = $1; }
dis_name: connection_object { $$ = $1; }
| CURRENT { $$ = make_str("
CURRENT
"); }
| CURRENT { $$ = make_str("
\"CURRENT\"
"); }
| ALL { $$ = make_str("
ALL
"); }
| ALL { $$ = make_str("
\"ALL\"
"); }
| /* empty */ { $$ = make_str("
CURRENT
"); }
| /* empty */ { $$ = make_str("
\"CURRENT\"
"); }
connection_object: connection_target { $$ = $1; }
connection_object: connection_target { $$ = $1; }
| DEFAULT { $$ = make_str("
DEFAULT
"); }
| DEFAULT { $$ = make_str("
\"DEFAULT\"
"); }
/*
/*
* execute a given string as sql command
* execute a given string as sql command
...
...
src/interfaces/ecpg/test/test1.pgc
View file @
cf6420dd
...
@@ -126,7 +126,8 @@ exec sql end declare section;
...
@@ -126,7 +126,8 @@ exec sql end declare section;
exec sql at pm commit;
exec sql at pm commit;
strcpy(msg, "disconnect");
strcpy(msg, "disconnect");
exec sql disconnect all;
exec sql disconnect main;
exec sql disconnect pm;
if (dbgs != NULL)
if (dbgs != NULL)
fclose(dbgs);
fclose(dbgs);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment