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
864e1e9d
Commit
864e1e9d
authored
Sep 15, 1999
by
Michael Meskes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
*** empty log message ***
parent
3f681393
Changes
9
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
23 additions
and
10 deletions
+23
-10
src/interfaces/ecpg/ChangeLog
src/interfaces/ecpg/ChangeLog
+9
-0
src/interfaces/ecpg/TODO
src/interfaces/ecpg/TODO
+1
-0
src/interfaces/ecpg/include/sqlca.h
src/interfaces/ecpg/include/sqlca.h
+1
-1
src/interfaces/ecpg/lib/Makefile.in
src/interfaces/ecpg/lib/Makefile.in
+2
-2
src/interfaces/ecpg/lib/ecpglib.c
src/interfaces/ecpg/lib/ecpglib.c
+2
-1
src/interfaces/ecpg/preproc/Makefile
src/interfaces/ecpg/preproc/Makefile
+1
-1
src/interfaces/ecpg/preproc/pgc.l
src/interfaces/ecpg/preproc/pgc.l
+3
-3
src/interfaces/ecpg/preproc/preproc.y
src/interfaces/ecpg/preproc/preproc.y
+1
-1
src/interfaces/ecpg/test/test1.pgc
src/interfaces/ecpg/test/test1.pgc
+3
-1
No files found.
src/interfaces/ecpg/ChangeLog
View file @
864e1e9d
...
...
@@ -622,3 +622,12 @@ Sun Aug 1 13:31:19 CEST 1999
- Synced preproc.y with gram.y.
- Set ecpg version to 2.6.2
Tue Sep 14 22:26:40 CEST 1999
- Added patch by Andreas Theofilu <theofilu@eunet.at> to fix yet
another quoting bug.
- Minor bugfixes to ecpg
- Return OID in sqlca.sqlerrd[1] if possible.
- Set ecpg version to 2.6.3
- Set library version to 3.0.2
src/interfaces/ecpg/TODO
View file @
864e1e9d
...
...
@@ -14,6 +14,7 @@ support for dynamic SQL with unknown number of variables with DESCRIPTORS
The line numbering is not exact.
Missing statements:
- exec slq ifdef
- exec sql allocate
- exec sql deallocate
- SQLSTATE
src/interfaces/ecpg/include/sqlca.h
View file @
864e1e9d
...
...
@@ -19,7 +19,7 @@ extern "C"
char
sqlerrp
[
8
];
long
sqlerrd
[
6
];
/* Element 0: empty */
/* 1:
empty
*/
/* 1:
OID of processed tuple if applicable
*/
/* 2: number of rows processed */
/* after an INSERT, UPDATE or */
/* DELETE statement */
...
...
src/interfaces/ecpg/lib/Makefile.in
View file @
864e1e9d
...
...
@@ -6,13 +6,13 @@
# Copyright (c) 1994, Regents of the University of California
#
# IDENTIFICATION
# $Header: /cvsroot/pgsql/src/interfaces/ecpg/lib/Attic/Makefile.in,v 1.4
5 1999/07/19 12:37:46
meskes Exp $
# $Header: /cvsroot/pgsql/src/interfaces/ecpg/lib/Attic/Makefile.in,v 1.4
6 1999/09/15 08:29:14
meskes Exp $
#
#-------------------------------------------------------------------------
NAME
=
ecpg
SO_MAJOR_VERSION
=
3
SO_MINOR_VERSION
=
0.
1
SO_MINOR_VERSION
=
0.
2
SRCDIR
=
@top_srcdir@
include
$(SRCDIR)/Makefile.global
...
...
src/interfaces/ecpg/lib/ecpglib.c
View file @
864e1e9d
...
...
@@ -368,7 +368,7 @@ next_insert(char *text)
bool
string
=
false
;
for
(;
*
ptr
!=
'\0'
&&
(
*
ptr
!=
'?'
||
string
);
ptr
++
)
if
(
*
ptr
==
'\''
)
if
(
*
ptr
==
'\''
&&
*
(
ptr
-
1
)
!=
'\\'
)
string
=
string
?
false
:
true
;
return
(
*
ptr
==
'\0'
)
?
NULL
:
ptr
;
...
...
@@ -977,6 +977,7 @@ ECPGexecute(struct statement * stmt)
break
;
case
PGRES_COMMAND_OK
:
status
=
true
;
sqlca
.
sqlerrd
[
1
]
=
atol
(
PQoidStatus
(
results
));
sqlca
.
sqlerrd
[
2
]
=
atol
(
PQcmdTuples
(
results
));
ECPGlog
(
"ECPGexecute line %d Ok: %s
\n
"
,
stmt
->
lineno
,
PQcmdStatus
(
results
));
break
;
...
...
src/interfaces/ecpg/preproc/Makefile
View file @
864e1e9d
...
...
@@ -3,7 +3,7 @@ include $(SRCDIR)/Makefile.global
MAJOR_VERSION
=
2
MINOR_VERSION
=
6
PATCHLEVEL
=
2
PATCHLEVEL
=
3
CFLAGS
+=
-I
../include
-DMAJOR_VERSION
=
$(MAJOR_VERSION)
\
-DMINOR_VERSION
=
$(MINOR_VERSION)
-DPATCHLEVEL
=
$(PATCHLEVEL)
\
...
...
src/interfaces/ecpg/preproc/pgc.l
View file @
864e1e9d
...
...
@@ -239,7 +239,7 @@ cppline {space}*#.*(\\{space}*\n)*\n*
}
<xq>{xqstop} {
BEGIN(SQL);
/* yylval.str =
scanstr(literal);
*/
/* yylval.str =
mm_strdup(scanstr(literal));
*/
yylval.str = mm_strdup(literal);
return SCONST;
}
...
...
@@ -601,7 +601,7 @@ cppline {space}*#.*(\\{space}*\n)*\n*
if (strcmp(old, ptr->old) == 0)
{
free(ptr->new);
/* ptr->new =
scanstr(literal);
*/
/* ptr->new =
mm_strdup(scanstr(literal));
*/
ptr->new = mm_strdup(literal);
}
}
...
...
@@ -611,7 +611,7 @@ cppline {space}*#.*(\\{space}*\n)*\n*
/* initial definition */
this->old = old;
/* this->new =
scanstr(literal);
*/
/* this->new =
mm_strdup(scanstr(literal));
*/
this->new = mm_strdup(literal);
this->next = defines;
defines = this;
...
...
src/interfaces/ecpg/preproc/preproc.y
View file @
864e1e9d
...
...
@@ -1142,7 +1142,7 @@ VariableSetStmt: SET ColId TO var_value
}
| SET NAMES encoding
{
#ifdef M
B
#ifdef M
ULTIBYTE
$$ = cat2_str(make1_str("set names"), $3);
#else
yyerror("SET NAMES is not supported");
...
...
src/interfaces/ecpg/test/test1.pgc
View file @
864e1e9d
...
...
@@ -48,7 +48,9 @@ exec sql end declare section;
strcpy(msg, "execute insert 1");
sprintf(command, "insert into test(name, amount, letter) values ('db: ''mm''', 1, 'f')");
exec sql execute immediate :command;
sprintf(command, "insert into test(name, amount, letter) values ('db: ''mm''', 2, 't')");
printf("New tuple got OID = %d\n", sqlca.sqlerrd[1]);
sprintf(command, "insert into test(name, amount, letter) values ('db: \\\'mm\\\'', 2, 't')");
exec sql execute immediate :command;
strcpy(msg, "execute insert 2");
...
...
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