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
84a05d47
Commit
84a05d47
authored
Nov 03, 2013
by
Michael Meskes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changed test case slightly so it doesn't have an unused typedef.
parent
2a781d57
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
14 deletions
+19
-14
src/interfaces/ecpg/test/expected/preproc-define.c
src/interfaces/ecpg/test/expected/preproc-define.c
+13
-9
src/interfaces/ecpg/test/expected/preproc-define.stderr
src/interfaces/ecpg/test/expected/preproc-define.stderr
+4
-4
src/interfaces/ecpg/test/preproc/define.pgc
src/interfaces/ecpg/test/preproc/define.pgc
+2
-1
No files found.
src/interfaces/ecpg/test/expected/preproc-define.c
View file @
84a05d47
...
@@ -125,16 +125,20 @@ if (sqlca.sqlcode < 0) sqlprint();}
...
@@ -125,16 +125,20 @@ if (sqlca.sqlcode < 0) sqlprint();}
for
(
i
=
0
,
j
=
sqlca
.
sqlerrd
[
2
];
i
<
j
;
i
++
)
for
(
i
=
0
,
j
=
sqlca
.
sqlerrd
[
2
];
i
<
j
;
i
++
)
{
{
/* exec sql begin declare section */
/* exec sql begin declare section */
#line 48 "define.pgc"
#line 48 "define.pgc"
char
n
[
8
]
,
l
=
letter
[
i
]
[
0
]
;
string
n
;
#line 49 "define.pgc"
#line 49 "define.pgc"
char
l
=
letter
[
i
]
[
0
]
;
#line 50 "define.pgc"
int
a
=
amount
[
i
]
;
int
a
=
amount
[
i
]
;
/* exec sql end declare section */
/* exec sql end declare section */
#line 5
0
"define.pgc"
#line 5
1
"define.pgc"
strncpy
(
n
,
name
[
i
],
8
);
strncpy
(
n
,
name
[
i
],
8
);
...
@@ -142,22 +146,22 @@ if (sqlca.sqlcode < 0) sqlprint();}
...
@@ -142,22 +146,22 @@ if (sqlca.sqlcode < 0) sqlprint();}
}
}
{
ECPGdo
(
__LINE__
,
0
,
1
,
NULL
,
0
,
ECPGst_normal
,
"drop table test"
,
ECPGt_EOIT
,
ECPGt_EORT
);
{
ECPGdo
(
__LINE__
,
0
,
1
,
NULL
,
0
,
ECPGst_normal
,
"drop table test"
,
ECPGt_EOIT
,
ECPGt_EORT
);
#line 5
6
"define.pgc"
#line 5
7
"define.pgc"
if
(
sqlca
.
sqlcode
<
0
)
sqlprint
();}
if
(
sqlca
.
sqlcode
<
0
)
sqlprint
();}
#line 5
6
"define.pgc"
#line 5
7
"define.pgc"
{
ECPGtrans
(
__LINE__
,
NULL
,
"commit"
);
{
ECPGtrans
(
__LINE__
,
NULL
,
"commit"
);
#line 5
7
"define.pgc"
#line 5
8
"define.pgc"
if
(
sqlca
.
sqlcode
<
0
)
sqlprint
();}
if
(
sqlca
.
sqlcode
<
0
)
sqlprint
();}
#line 5
7
"define.pgc"
#line 5
8
"define.pgc"
{
ECPGdisconnect
(
__LINE__
,
"CURRENT"
);
{
ECPGdisconnect
(
__LINE__
,
"CURRENT"
);
#line 5
8
"define.pgc"
#line 5
9
"define.pgc"
if
(
sqlca
.
sqlcode
<
0
)
sqlprint
();}
if
(
sqlca
.
sqlcode
<
0
)
sqlprint
();}
#line 5
8
"define.pgc"
#line 5
9
"define.pgc"
return
(
0
);
return
(
0
);
...
...
src/interfaces/ecpg/test/expected/preproc-define.stderr
View file @
84a05d47
...
@@ -42,13 +42,13 @@
...
@@ -42,13 +42,13 @@
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_get_data on line 43: RESULT: t offset: -1; array: no
[NO_PID]: ecpg_get_data on line 43: RESULT: t offset: -1; array: no
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_execute on line 5
6
: query: drop table test; with 0 parameter(s) on connection regress1
[NO_PID]: ecpg_execute on line 5
7
: query: drop table test; with 0 parameter(s) on connection regress1
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_execute on line 5
6
: using PQexec
[NO_PID]: ecpg_execute on line 5
7
: using PQexec
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_execute on line 5
6
: OK: DROP TABLE
[NO_PID]: ecpg_execute on line 5
7
: OK: DROP TABLE
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ECPGtrans on line 5
7
: action "commit"; connection "regress1"
[NO_PID]: ECPGtrans on line 5
8
: action "commit"; connection "regress1"
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_finish: connection regress1 closed
[NO_PID]: ecpg_finish: connection regress1 closed
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: sqlca: code: 0, state: 00000
src/interfaces/ecpg/test/preproc/define.pgc
View file @
84a05d47
...
@@ -45,7 +45,8 @@ exec sql end declare section;
...
@@ -45,7 +45,8 @@ exec sql end declare section;
for (i=0, j=sqlca.sqlerrd[2]; i<j; i++)
for (i=0, j=sqlca.sqlerrd[2]; i<j; i++)
{
{
exec sql begin declare section;
exec sql begin declare section;
char n[8], l = letter[i][0];
string n;
char l = letter[i][0];
int a = amount[i];
int a = amount[i];
exec sql end declare section;
exec sql end declare section;
...
...
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