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
47a4e2ed
Commit
47a4e2ed
authored
Aug 26, 2003
by
Michael Meskes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed connect statement with username in variable.
parent
cd0f42e8
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
3 deletions
+8
-3
src/interfaces/ecpg/ChangeLog
src/interfaces/ecpg/ChangeLog
+4
-0
src/interfaces/ecpg/preproc/preproc.y
src/interfaces/ecpg/preproc/preproc.y
+2
-2
src/interfaces/ecpg/test/test1.pgc
src/interfaces/ecpg/test/test1.pgc
+2
-1
No files found.
src/interfaces/ecpg/ChangeLog
View file @
47a4e2ed
...
@@ -1604,6 +1604,10 @@ Fri Aug 1 08:54:02 CEST 2003
...
@@ -1604,6 +1604,10 @@ Fri Aug 1 08:54:02 CEST 2003
Mon Aug 25 13:24:27 CEST 2003
Mon Aug 25 13:24:27 CEST 2003
- Synced parser.
- Synced parser.
Tue Aug 26 18:06:45 CEST 2003
- Fixed processing of connect statement with username as variable.
- Set ecpg version to 3.0.0
- Set ecpg version to 3.0.0
- Set ecpg library to 4.0.0
- Set ecpg library to 4.0.0
- Set pgtypes library to 1.0.0
- Set pgtypes library to 1.0.0
...
...
src/interfaces/ecpg/preproc/preproc.y
View file @
47a4e2ed
/* $Header: /cvsroot/pgsql/src/interfaces/ecpg/preproc/Attic/preproc.y,v 1.25
2 2003/08/25 13:44:00
meskes Exp $ */
/* $Header: /cvsroot/pgsql/src/interfaces/ecpg/preproc/Attic/preproc.y,v 1.25
3 2003/08/26 16:09:01
meskes Exp $ */
/* Copyright comment */
/* Copyright comment */
%{
%{
...
@@ -4265,7 +4265,7 @@ user_name: UserId
...
@@ -4265,7 +4265,7 @@ user_name: UserId
{
{
if ($1[0] == '\"')
if ($1[0] == '\"')
$$ = $1;
$$ = $1;
else if (strcmp($1, "?") == 0) /* variable */
else if (strcmp($1, "
?") == 0) /* variable */
{
{
enum ECPGttype type = argsinsert->variable->type->type;
enum ECPGttype type = argsinsert->variable->type->type;
...
...
src/interfaces/ecpg/test/test1.pgc
View file @
47a4e2ed
...
@@ -52,6 +52,7 @@ exec sql endif;
...
@@ -52,6 +52,7 @@ exec sql endif;
char command[128];
char command[128];
char *connection="pm";
char *connection="pm";
int how_many;
int how_many;
char *user="postgres";
exec sql end declare section;
exec sql end declare section;
exec sql var name is string[AMOUNT];
exec sql var name is string[AMOUNT];
char msg[128];
char msg[128];
...
@@ -65,7 +66,7 @@ exec sql end declare section;
...
@@ -65,7 +66,7 @@ exec sql end declare section;
exec sql connect to mm as main;
exec sql connect to mm as main;
strcpy(msg, "connect");
strcpy(msg, "connect");
exec sql connect to pm;
exec sql connect to pm
user :user
;
strcpy(msg, "create");
strcpy(msg, "create");
exec sql at main create table "Test" (name char(NAMELEN), amount int, letter char(1));
exec sql at main create table "Test" (name char(NAMELEN), amount int, letter char(1));
...
...
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