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
54847b25
Commit
54847b25
authored
Dec 07, 1999
by
Michael Meskes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
*** empty log message ***
parent
04fa5ca5
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
24 additions
and
11 deletions
+24
-11
src/interfaces/ecpg/ChangeLog
src/interfaces/ecpg/ChangeLog
+4
-0
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
+4
-0
src/interfaces/ecpg/test/test4.pgc
src/interfaces/ecpg/test/test4.pgc
+14
-9
No files found.
src/interfaces/ecpg/ChangeLog
View file @
54847b25
...
@@ -726,3 +726,7 @@ Tue Nov 23 07:59:01 CET 1999
...
@@ -726,3 +726,7 @@ Tue Nov 23 07:59:01 CET 1999
- Ignore locale setting in ECPGdo.
- Ignore locale setting in ECPGdo.
- Set library version to 3.0.7.
- Set library version to 3.0.7.
Fri Dec 3 16:35:07 CET 1999
- Fixed memory leak in ecpglib.
- Set library version to 3.0.8.
src/interfaces/ecpg/lib/Makefile.in
View file @
54847b25
...
@@ -6,13 +6,13 @@
...
@@ -6,13 +6,13 @@
# Copyright (c) 1994, Regents of the University of California
# Copyright (c) 1994, Regents of the University of California
#
#
# IDENTIFICATION
# IDENTIFICATION
# $Header: /cvsroot/pgsql/src/interfaces/ecpg/lib/Attic/Makefile.in,v 1.5
2 1999/11/23 10:32
:16 meskes Exp $
# $Header: /cvsroot/pgsql/src/interfaces/ecpg/lib/Attic/Makefile.in,v 1.5
3 1999/12/07 10:29
:16 meskes Exp $
#
#
#-------------------------------------------------------------------------
#-------------------------------------------------------------------------
NAME
=
ecpg
NAME
=
ecpg
SO_MAJOR_VERSION
=
3
SO_MAJOR_VERSION
=
3
SO_MINOR_VERSION
=
0.
7
SO_MINOR_VERSION
=
0.
8
SRCDIR
=
@top_srcdir@
SRCDIR
=
@top_srcdir@
include
$(SRCDIR)/Makefile.global
include
$(SRCDIR)/Makefile.global
...
...
src/interfaces/ecpg/lib/ecpglib.c
View file @
54847b25
...
@@ -515,6 +515,8 @@ ECPGexecute(struct statement * stmt)
...
@@ -515,6 +515,8 @@ ECPGexecute(struct statement * stmt)
return
false
;
return
false
;
strcat
(
mallocedval
,
tmp
);
strcat
(
mallocedval
,
tmp
);
free
(
tmp
);
strcat
(
mallocedval
,
"'"
);
strcat
(
mallocedval
,
"'"
);
free
(
newcopy
);
free
(
newcopy
);
...
@@ -556,6 +558,8 @@ ECPGexecute(struct statement * stmt)
...
@@ -556,6 +558,8 @@ ECPGexecute(struct statement * stmt)
return
false
;
return
false
;
strcat
(
mallocedval
,
tmp
);
strcat
(
mallocedval
,
tmp
);
free
(
tmp
);
strcat
(
mallocedval
,
"'"
);
strcat
(
mallocedval
,
"'"
);
free
(
newcopy
);
free
(
newcopy
);
...
...
src/interfaces/ecpg/test/test4.pgc
View file @
54847b25
#include <locale.h>
exec sql whenever sqlerror sqlprint;
exec sql whenever sqlerror sqlprint;
exec sql include sqlca;
exec sql include sqlca;
...
@@ -12,6 +14,8 @@ EXEC SQL BEGIN DECLARE SECTION;
...
@@ -12,6 +14,8 @@ EXEC SQL BEGIN DECLARE SECTION;
EXEC SQL END DECLARE SECTION;
EXEC SQL END DECLARE SECTION;
FILE *dbgs;
FILE *dbgs;
setlocale(LC_ALL, "de_DE");
if ((dbgs = fopen("log", "w")) != NULL)
if ((dbgs = fopen("log", "w")) != NULL)
ECPGdebug(1, dbgs);
ECPGdebug(1, dbgs);
...
@@ -21,9 +25,10 @@ EXEC SQL END DECLARE SECTION;
...
@@ -21,9 +25,10 @@ EXEC SQL END DECLARE SECTION;
EXEC SQL BEGIN WORK;
EXEC SQL BEGIN WORK;
EXEC SQL CREATE TABLE test (f decimal(8,2), i int, a int[10]);
/* EXEC SQL CREATE TABLE test (f decimal(8,2), i int, a int[10]);*/
EXEC SQL CREATE TABLE test (f float, i int, a int[10]);
EXEC SQL INSERT INTO test(f,i,a) VALUES(
17000.0
0,1,'{0,1,2,3,4,5,6,7,8,9}');
EXEC SQL INSERT INTO test(f,i,a) VALUES(
404.9
0,1,'{0,1,2,3,4,5,6,7,8,9}');
/* EXEC SQL INSERT INTO test(f,i,a) VALUES(140787.0,2,:a);*/
/* EXEC SQL INSERT INTO test(f,i,a) VALUES(140787.0,2,:a);*/
...
@@ -31,19 +36,19 @@ EXEC SQL END DECLARE SECTION;
...
@@ -31,19 +36,19 @@ EXEC SQL END DECLARE SECTION;
EXEC SQL BEGIN WORK;
EXEC SQL BEGIN WORK;
EXEC SQL SELECT f
::float
EXEC SQL SELECT f
INTO :f
INTO :f
FROM test
FROM test
WHERE i = :i;
WHERE i = :i;
printf("Found f
::float
=%f\n", f);
printf("Found f=%f\n", f);
EXEC SQL SELECT
f
EXEC SQL SELECT
i
INTO :f
INTO :i
FROM test
FROM test
WHERE i = :i
;
WHERE f = :f
;
printf("Found
f=%f\n", f
);
printf("Found
i=%d\n", i
);
EXEC SQL DROP TABLE test;
EXEC SQL DROP TABLE test;
...
...
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