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
e400840b
Commit
e400840b
authored
Mar 17, 2018
by
Michael Meskes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix closing of incorrectly named cursor.
Patch by "Shinoda, Noriyoshi" <noriyoshi.shinoda@hpe.com>
parent
e3bdb2d9
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
12 deletions
+6
-12
src/interfaces/ecpg/test/compat_oracle/char_array.pgc
src/interfaces/ecpg/test/compat_oracle/char_array.pgc
+1
-1
src/interfaces/ecpg/test/expected/compat_oracle-char_array.c
src/interfaces/ecpg/test/expected/compat_oracle-char_array.c
+2
-2
src/interfaces/ecpg/test/expected/compat_oracle-char_array.stderr
...rfaces/ecpg/test/expected/compat_oracle-char_array.stderr
+3
-9
No files found.
src/interfaces/ecpg/test/compat_oracle/char_array.pgc
View file @
e400840b
...
@@ -51,7 +51,7 @@ int main() {
...
@@ -51,7 +51,7 @@ int main() {
printf("\"%s\": \"%s\" %d\n", bigstr, shortstr, shstr_ind);
printf("\"%s\": \"%s\" %d\n", bigstr, shortstr, shstr_ind);
}
}
EXEC SQL
close cstr;
EXEC SQL
CLOSE C;
EXEC SQL DROP TABLE strdbase;
EXEC SQL DROP TABLE strdbase;
printf("\nGOOD-BYE!!\n\n");
printf("\nGOOD-BYE!!\n\n");
...
...
src/interfaces/ecpg/test/expected/compat_oracle-char_array.c
View file @
e400840b
...
@@ -178,7 +178,7 @@ if (sqlca.sqlcode < 0) sqlprint();}
...
@@ -178,7 +178,7 @@ if (sqlca.sqlcode < 0) sqlprint();}
printf
(
"
\"
%s
\"
:
\"
%s
\"
%d
\n
"
,
bigstr
,
shortstr
,
shstr_ind
);
printf
(
"
\"
%s
\"
:
\"
%s
\"
%d
\n
"
,
bigstr
,
shortstr
,
shstr_ind
);
}
}
{
ECPGdo
(
__LINE__
,
3
,
1
,
NULL
,
0
,
ECPGst_normal
,
"close
cstr
"
,
ECPGt_EOIT
,
ECPGt_EORT
);
{
ECPGdo
(
__LINE__
,
3
,
1
,
NULL
,
0
,
ECPGst_normal
,
"close
C
"
,
ECPGt_EOIT
,
ECPGt_EORT
);
#line 54 "char_array.pgc"
#line 54 "char_array.pgc"
if
(
sqlca
.
sqlwarn
[
0
]
==
'W'
)
warn
(
);
if
(
sqlca
.
sqlwarn
[
0
]
==
'W'
)
warn
(
);
...
...
src/interfaces/ecpg/test/expected/compat_oracle-char_array.stderr
View file @
e400840b
...
@@ -121,24 +121,18 @@ Warning: At least one column was truncated
...
@@ -121,24 +121,18 @@ Warning: At least one column was truncated
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: raising sqlcode 100 on line 50: no data found on line 50
[NO_PID]: raising sqlcode 100 on line 50: no data found on line 50
[NO_PID]: sqlca: code: 100, state: 02000
[NO_PID]: sqlca: code: 100, state: 02000
[NO_PID]: ecpg_execute on line 54: query: close
cstr
; with 0 parameter(s) on connection ecpg1_regression
[NO_PID]: ecpg_execute on line 54: query: close
C
; with 0 parameter(s) on connection ecpg1_regression
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_execute on line 54: using PQexec
[NO_PID]: ecpg_execute on line 54: using PQexec
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_
check_PQresult on line 54: bad response - ERROR: cursor "cstr" does not exist
[NO_PID]: ecpg_
process_output on line 54: OK: CLOSE CURSOR
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: raising sqlstate 34000 (sqlcode -400): cursor "cstr" does not exist on line 54
[NO_PID]: sqlca: code: -400, state: 34000
SQL error: cursor "cstr" does not exist on line 54
[NO_PID]: ecpg_execute on line 55: query: drop table strdbase; with 0 parameter(s) on connection ecpg1_regression
[NO_PID]: ecpg_execute on line 55: query: drop table strdbase; with 0 parameter(s) on connection ecpg1_regression
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_execute on line 55: using PQexec
[NO_PID]: ecpg_execute on line 55: using PQexec
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_
check_PQresult on line 55: bad response - ERROR: current transaction is aborted, commands ignored until end of transaction block
[NO_PID]: ecpg_
process_output on line 55: OK: DROP TABLE
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: raising sqlstate 25P02 (sqlcode -400): current transaction is aborted, commands ignored until end of transaction block on line 55
[NO_PID]: sqlca: code: -400, state: 25P02
SQL error: current transaction is aborted, commands ignored until end of transaction block on line 55
[NO_PID]: ECPGtrans on line 59: action "commit work"; connection "ecpg1_regression"
[NO_PID]: ECPGtrans on line 59: action "commit work"; connection "ecpg1_regression"
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_finish: connection ecpg1_regression closed
[NO_PID]: ecpg_finish: connection ecpg1_regression closed
...
...
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