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
a7b1ff66
Commit
a7b1ff66
authored
Apr 05, 2000
by
Michael Meskes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
*** empty log message ***
parent
6995c5fb
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
9 deletions
+14
-9
src/interfaces/ecpg/ChangeLog
src/interfaces/ecpg/ChangeLog
+4
-0
src/interfaces/ecpg/lib/execute.c
src/interfaces/ecpg/lib/execute.c
+2
-2
src/interfaces/ecpg/test/test4.pgc
src/interfaces/ecpg/test/test4.pgc
+8
-7
No files found.
src/interfaces/ecpg/ChangeLog
View file @
a7b1ff66
...
...
@@ -902,5 +902,9 @@ Wed Apr 5 07:54:56 CEST 2000
- Removed duplicate ',' in execute.c.
- Changed error message for backend errors so it fits into sqlca.
- Fixed array handling.
Wed Apr 5 17:35:53 CEST 2000
- Fixed handling of bool variables.
- Set library version to 3.1.0.
- Set ecpg version to 2.7.0.
src/interfaces/ecpg/lib/execute.c
View file @
a7b1ff66
...
...
@@ -479,7 +479,7 @@ ECPGexecute(struct statement * stmt)
strncpy
(
mallocedval
+
strlen
(
mallocedval
)
-
1
,
"}'"
,
sizeof
(
"}'"
));
}
else
sprintf
(
mallocedval
,
"
%c
"
,
(
*
((
char
*
)
var
->
value
))
?
't'
:
'f'
);
sprintf
(
mallocedval
,
"
'%c'
"
,
(
*
((
char
*
)
var
->
value
))
?
't'
:
'f'
);
tobeinserted
=
mallocedval
;
break
;
...
...
@@ -859,7 +859,7 @@ ECPGdo(int lineno, const char *connection_name, char *query, ...)
*
* Copyright (c) 2000, Christof Petig <christof.petig@wtal.de>
*
* $Header: /cvsroot/pgsql/src/interfaces/ecpg/lib/Attic/execute.c,v 1.
4 2000/04/05 09:05:28
meskes Exp $
* $Header: /cvsroot/pgsql/src/interfaces/ecpg/lib/Attic/execute.c,v 1.
5 2000/04/05 15:51:25
meskes Exp $
*/
PGconn
*
ECPG_internal_get_connection
(
char
*
name
);
...
...
src/interfaces/ecpg/test/test4.pgc
View file @
a7b1ff66
...
...
@@ -14,6 +14,7 @@ EXEC SQL BEGIN DECLARE SECTION;
char text[10] = "klmnopqrst";
char *t = "uvwxyz1234";
double f;
bool b = true;
EXEC SQL END DECLARE SECTION;
FILE *dbgs;
...
...
@@ -28,24 +29,24 @@ EXEC SQL END DECLARE SECTION;
EXEC SQL BEGIN WORK;
EXEC SQL CREATE TABLE test (f float, i int, a int[10], text char(10));
EXEC SQL CREATE TABLE test (f float, i int, a int[10], text char(10)
, b bool
);
EXEC SQL INSERT INTO test(f,i,a,text
) VALUES(404.90,1,'{0,1,2,3,4,5,6,7,8,9}','abcdefghij
');
EXEC SQL INSERT INTO test(f,i,a,text
,b) VALUES(404.90,1,'{0,1,2,3,4,5,6,7,8,9}','abcdefghij', 'f
');
EXEC SQL INSERT INTO test(f,i,a,text
) VALUES(140787.0,2,:a,:text
);
EXEC SQL INSERT INTO test(f,i,a,text
,b) VALUES(140787.0,2,:a,:text,'t'
);
EXEC SQL INSERT INTO test(f,i,a,text
) VALUES(14.07,:did,:a,:t
);
EXEC SQL INSERT INTO test(f,i,a,text
,b) VALUES(14.07,:did,:a,:t,:b
);
EXEC SQL COMMIT;
EXEC SQL BEGIN WORK;
EXEC SQL SELECT f,text
INTO :f,:text
EXEC SQL SELECT f,text
,b
INTO :f,:text
,:b
FROM test
WHERE i = 1;
printf("Found f=%f text=%10.10s
\n", f, text
);
printf("Found f=%f text=%10.10s
b=%d\n", f, text, b
);
f=14.07;
EXEC SQL SELECT a,text
...
...
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