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
976a7d11
Commit
976a7d11
authored
Jan 13, 2014
by
Michael Meskes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Always use the same way to addres a descriptor in ecpg's regression tests.
parent
bb953ad1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
src/interfaces/ecpg/test/expected/sql-desc.c
src/interfaces/ecpg/test/expected/sql-desc.c
+3
-3
src/interfaces/ecpg/test/sql/desc.pgc
src/interfaces/ecpg/test/sql/desc.pgc
+3
-3
No files found.
src/interfaces/ecpg/test/expected/sql-desc.c
View file @
976a7d11
...
...
@@ -228,7 +228,7 @@ if (sqlca.sqlcode < 0) sqlprint();}
{
ECPGdo
(
__LINE__
,
0
,
1
,
NULL
,
0
,
ECPGst_execute
,
"foo2"
,
ECPGt_descriptor
,
"indesc"
,
1L
,
1L
,
1L
,
ECPGt_NO_INDICATOR
,
NULL
,
0L
,
0L
,
0L
,
ECPGt_EOIT
,
ECPGt_descriptor
,
"outdesc"
,
1L
,
1L
,
1L
,
ECPGt_descriptor
,
(
desc1
)
,
1L
,
1L
,
1L
,
ECPGt_NO_INDICATOR
,
NULL
,
0L
,
0L
,
0L
,
ECPGt_EORT
);
#line 53 "desc.pgc"
...
...
@@ -236,7 +236,7 @@ if (sqlca.sqlcode < 0) sqlprint();}
#line 53 "desc.pgc"
{
ECPGget_desc
(
__LINE__
,
"outdesc"
,
1
,
ECPGd_data
,
{
ECPGget_desc
(
__LINE__
,
(
desc1
)
,
1
,
ECPGd_data
,
ECPGt_char
,(
val2output
),(
long
)
sizeof
(
"AAA"
),(
long
)
1
,(
sizeof
(
"AAA"
))
*
sizeof
(
char
),
ECPGd_EODT
);
#line 55 "desc.pgc"
...
...
@@ -366,7 +366,7 @@ if (sqlca.sqlcode < 0) sqlprint();}
if
(
sqlca
.
sqlcode
<
0
)
sqlprint
();
#line 85 "desc.pgc"
ECPGdeallocate_desc
(
__LINE__
,
"outdesc"
);
ECPGdeallocate_desc
(
__LINE__
,
(
desc1
)
);
#line 86 "desc.pgc"
if
(
sqlca
.
sqlcode
<
0
)
sqlprint
();
...
...
src/interfaces/ecpg/test/sql/desc.pgc
View file @
976a7d11
...
...
@@ -50,9 +50,9 @@ main(void)
EXEC SQL SET DESCRIPTOR indesc VALUE 1 DATA = :val1;
EXEC SQL SET DESCRIPTOR indesc VALUE 2 INDICATOR = :val2i, DATA = :val2;
EXEC SQL EXECUTE foo2 USING SQL DESCRIPTOR indesc INTO SQL DESCRIPTOR
outdesc
;
EXEC SQL EXECUTE foo2 USING SQL DESCRIPTOR indesc INTO SQL DESCRIPTOR
:desc1
;
EXEC SQL GET DESCRIPTOR
outdesc
VALUE 1 :val2output = DATA;
EXEC SQL GET DESCRIPTOR
:desc1
VALUE 1 :val2output = DATA;
printf("output = %s\n", val2output);
EXEC SQL DECLARE c1 CURSOR FOR foo2;
...
...
@@ -83,7 +83,7 @@ main(void)
EXEC SQL DISCONNECT;
EXEC SQL DEALLOCATE DESCRIPTOR indesc;
EXEC SQL DEALLOCATE DESCRIPTOR
outdesc
;
EXEC SQL DEALLOCATE DESCRIPTOR
:desc1
;
return 0;
}
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