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
58fb345d
Commit
58fb345d
authored
Feb 04, 2010
by
Michael Meskes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Usage of isnan() in ECPG regression tests probably needs '#include <float.h>' as well.
parent
a96ad2fc
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
221 additions
and
219 deletions
+221
-219
src/interfaces/ecpg/test/expected/pgtypeslib-nan_test.c
src/interfaces/ecpg/test/expected/pgtypeslib-nan_test.c
+52
-51
src/interfaces/ecpg/test/expected/pgtypeslib-nan_test.stderr
src/interfaces/ecpg/test/expected/pgtypeslib-nan_test.stderr
+168
-168
src/interfaces/ecpg/test/pgtypeslib/nan_test.pgc
src/interfaces/ecpg/test/pgtypeslib/nan_test.pgc
+1
-0
No files found.
src/interfaces/ecpg/test/expected/pgtypeslib-nan_test.c
View file @
58fb345d
...
...
@@ -10,6 +10,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <float.h>
#include <pgtypes_numeric.h>
#include <decimal.h>
...
...
@@ -21,7 +22,7 @@
#line
7
"nan_test.pgc"
#line
8
"nan_test.pgc"
int
...
...
@@ -33,54 +34,54 @@ main(void)
#line 1
3
"nan_test.pgc"
#line 1
4
"nan_test.pgc"
int
id
;
#line 1
4
"nan_test.pgc"
#line 1
5
"nan_test.pgc"
double
d
;
#line 1
5
"nan_test.pgc"
#line 1
6
"nan_test.pgc"
numeric
*
num
;
#line 1
6
"nan_test.pgc"
#line 1
7
"nan_test.pgc"
char
val
[
16
]
;
/* exec sql end declare section */
#line 1
7
"nan_test.pgc"
#line 1
8
"nan_test.pgc"
ECPGdebug
(
1
,
stderr
);
/* exec sql whenever sqlerror do sqlprint ( ) ; */
#line 2
0
"nan_test.pgc"
#line 2
1
"nan_test.pgc"
{
ECPGconnect
(
__LINE__
,
0
,
"regress1"
,
NULL
,
NULL
,
NULL
,
0
);
#line 2
2
"nan_test.pgc"
#line 2
3
"nan_test.pgc"
if
(
sqlca
.
sqlcode
<
0
)
sqlprint
(
);}
#line 2
2
"nan_test.pgc"
#line 2
3
"nan_test.pgc"
{
ECPGdo
(
__LINE__
,
0
,
1
,
NULL
,
0
,
ECPGst_normal
,
"create table nantest1 ( id int4 , d float8 )"
,
ECPGt_EOIT
,
ECPGt_EORT
);
#line 2
4
"nan_test.pgc"
#line 2
5
"nan_test.pgc"
if
(
sqlca
.
sqlcode
<
0
)
sqlprint
(
);}
#line 2
4
"nan_test.pgc"
#line 2
5
"nan_test.pgc"
{
ECPGdo
(
__LINE__
,
0
,
1
,
NULL
,
0
,
ECPGst_normal
,
"insert into nantest1 ( id , d ) values ( 1 , 'nan' :: float8 ) , ( 2 , 'infinity' :: float8 ) , ( 3 , '-infinity' :: float8 )"
,
ECPGt_EOIT
,
ECPGt_EORT
);
#line 2
5
"nan_test.pgc"
#line 2
6
"nan_test.pgc"
if
(
sqlca
.
sqlcode
<
0
)
sqlprint
(
);}
#line 2
5
"nan_test.pgc"
#line 2
6
"nan_test.pgc"
/* declare cur cursor for select id , d , d from nantest1 */
#line 2
7
"nan_test.pgc"
#line 2
8
"nan_test.pgc"
{
ECPGdo
(
__LINE__
,
0
,
1
,
NULL
,
0
,
ECPGst_normal
,
"declare cur cursor for select id , d , d from nantest1"
,
ECPGt_EOIT
,
ECPGt_EORT
);
#line 2
8
"nan_test.pgc"
#line 2
9
"nan_test.pgc"
if
(
sqlca
.
sqlcode
<
0
)
sqlprint
(
);}
#line 2
8
"nan_test.pgc"
#line 2
9
"nan_test.pgc"
while
(
1
)
{
...
...
@@ -91,10 +92,10 @@ if (sqlca.sqlcode < 0) sqlprint ( );}
ECPGt_NO_INDICATOR
,
NULL
,
0L
,
0L
,
0L
,
ECPGt_char
,(
val
),(
long
)
16
,(
long
)
1
,(
16
)
*
sizeof
(
char
),
ECPGt_NO_INDICATOR
,
NULL
,
0L
,
0L
,
0L
,
ECPGt_EORT
);
#line 3
1
"nan_test.pgc"
#line 3
2
"nan_test.pgc"
if
(
sqlca
.
sqlcode
<
0
)
sqlprint
(
);}
#line 3
1
"nan_test.pgc"
#line 3
2
"nan_test.pgc"
if
(
sqlca
.
sqlcode
)
break
;
...
...
@@ -108,34 +109,34 @@ if (sqlca.sqlcode < 0) sqlprint ( );}
ECPGt_NO_INDICATOR
,
NULL
,
0L
,
0L
,
0L
,
ECPGt_double
,
&
(
d
),(
long
)
1
,(
long
)
1
,
sizeof
(
double
),
ECPGt_NO_INDICATOR
,
NULL
,
0L
,
0L
,
0L
,
ECPGt_EOIT
,
ECPGt_EORT
);
#line
39
"nan_test.pgc"
#line
40
"nan_test.pgc"
if
(
sqlca
.
sqlcode
<
0
)
sqlprint
(
);}
#line
39
"nan_test.pgc"
#line
40
"nan_test.pgc"
{
ECPGdo
(
__LINE__
,
0
,
1
,
NULL
,
0
,
ECPGst_normal
,
"insert into nantest1 ( id , d ) values ( $1 + 6 , $2 )"
,
ECPGt_int
,
&
(
id
),(
long
)
1
,(
long
)
1
,
sizeof
(
int
),
ECPGt_NO_INDICATOR
,
NULL
,
0L
,
0L
,
0L
,
ECPGt_char
,(
val
),(
long
)
16
,(
long
)
1
,(
16
)
*
sizeof
(
char
),
ECPGt_NO_INDICATOR
,
NULL
,
0L
,
0L
,
0L
,
ECPGt_EOIT
,
ECPGt_EORT
);
#line 4
0
"nan_test.pgc"
#line 4
1
"nan_test.pgc"
if
(
sqlca
.
sqlcode
<
0
)
sqlprint
(
);}
#line 4
0
"nan_test.pgc"
#line 4
1
"nan_test.pgc"
}
{
ECPGdo
(
__LINE__
,
0
,
1
,
NULL
,
0
,
ECPGst_normal
,
"close cur"
,
ECPGt_EOIT
,
ECPGt_EORT
);
#line 4
2
"nan_test.pgc"
#line 4
3
"nan_test.pgc"
if
(
sqlca
.
sqlcode
<
0
)
sqlprint
(
);}
#line 4
2
"nan_test.pgc"
#line 4
3
"nan_test.pgc"
{
ECPGdo
(
__LINE__
,
0
,
1
,
NULL
,
0
,
ECPGst_normal
,
"declare cur cursor for select id , d , d from nantest1"
,
ECPGt_EOIT
,
ECPGt_EORT
);
#line 4
4
"nan_test.pgc"
#line 4
5
"nan_test.pgc"
if
(
sqlca
.
sqlcode
<
0
)
sqlprint
(
);}
#line 4
4
"nan_test.pgc"
#line 4
5
"nan_test.pgc"
while
(
1
)
{
...
...
@@ -146,10 +147,10 @@ if (sqlca.sqlcode < 0) sqlprint ( );}
ECPGt_NO_INDICATOR
,
NULL
,
0L
,
0L
,
0L
,
ECPGt_char
,(
val
),(
long
)
16
,(
long
)
1
,(
16
)
*
sizeof
(
char
),
ECPGt_NO_INDICATOR
,
NULL
,
0L
,
0L
,
0L
,
ECPGt_EORT
);
#line 4
7
"nan_test.pgc"
#line 4
8
"nan_test.pgc"
if
(
sqlca
.
sqlcode
<
0
)
sqlprint
(
);}
#line 4
7
"nan_test.pgc"
#line 4
8
"nan_test.pgc"
if
(
sqlca
.
sqlcode
)
break
;
...
...
@@ -159,25 +160,25 @@ if (sqlca.sqlcode < 0) sqlprint ( );}
printf
(
"%d NaN '%s'
\n
"
,
id
,
val
);
}
{
ECPGdo
(
__LINE__
,
0
,
1
,
NULL
,
0
,
ECPGst_normal
,
"close cur"
,
ECPGt_EOIT
,
ECPGt_EORT
);
#line 5
5
"nan_test.pgc"
#line 5
6
"nan_test.pgc"
if
(
sqlca
.
sqlcode
<
0
)
sqlprint
(
);}
#line 5
5
"nan_test.pgc"
#line 5
6
"nan_test.pgc"
num
=
PGTYPESnumeric_new
();
{
ECPGdo
(
__LINE__
,
0
,
1
,
NULL
,
0
,
ECPGst_normal
,
"create table nantest2 ( id int4 , d numeric )"
,
ECPGt_EOIT
,
ECPGt_EORT
);
#line
59
"nan_test.pgc"
#line
60
"nan_test.pgc"
if
(
sqlca
.
sqlcode
<
0
)
sqlprint
(
);}
#line
59
"nan_test.pgc"
#line
60
"nan_test.pgc"
{
ECPGdo
(
__LINE__
,
0
,
1
,
NULL
,
0
,
ECPGst_normal
,
"insert into nantest2 ( id , d ) values ( 4 , 'nan' :: numeric )"
,
ECPGt_EOIT
,
ECPGt_EORT
);
#line 6
0
"nan_test.pgc"
#line 6
1
"nan_test.pgc"
if
(
sqlca
.
sqlcode
<
0
)
sqlprint
(
);}
#line 6
0
"nan_test.pgc"
#line 6
1
"nan_test.pgc"
{
ECPGdo
(
__LINE__
,
0
,
1
,
NULL
,
0
,
ECPGst_normal
,
"select id , d , d from nantest2 where id = 4"
,
ECPGt_EOIT
,
...
...
@@ -187,10 +188,10 @@ if (sqlca.sqlcode < 0) sqlprint ( );}
ECPGt_NO_INDICATOR
,
NULL
,
0L
,
0L
,
0L
,
ECPGt_char
,(
val
),(
long
)
16
,(
long
)
1
,(
16
)
*
sizeof
(
char
),
ECPGt_NO_INDICATOR
,
NULL
,
0L
,
0L
,
0L
,
ECPGt_EORT
);
#line 6
2
"nan_test.pgc"
#line 6
3
"nan_test.pgc"
if
(
sqlca
.
sqlcode
<
0
)
sqlprint
(
);}
#line 6
2
"nan_test.pgc"
#line 6
3
"nan_test.pgc"
printf
(
"%d %s '%s'
\n
"
,
id
,
(
num
->
sign
==
NUMERIC_NAN
?
"NaN"
:
"not NaN"
),
val
);
...
...
@@ -198,28 +199,28 @@ if (sqlca.sqlcode < 0) sqlprint ( );}
{
ECPGdo
(
__LINE__
,
0
,
1
,
NULL
,
0
,
ECPGst_normal
,
"insert into nantest2 ( id , d ) values ( 5 , $1 )"
,
ECPGt_numeric
,
&
(
num
),(
long
)
1
,(
long
)
0
,
sizeof
(
numeric
),
ECPGt_NO_INDICATOR
,
NULL
,
0L
,
0L
,
0L
,
ECPGt_EOIT
,
ECPGt_EORT
);
#line 6
6
"nan_test.pgc"
#line 6
7
"nan_test.pgc"
if
(
sqlca
.
sqlcode
<
0
)
sqlprint
(
);}
#line 6
6
"nan_test.pgc"
#line 6
7
"nan_test.pgc"
{
ECPGdo
(
__LINE__
,
0
,
1
,
NULL
,
0
,
ECPGst_normal
,
"insert into nantest2 ( id , d ) values ( 6 , $1 )"
,
ECPGt_char
,(
val
),(
long
)
16
,(
long
)
1
,(
16
)
*
sizeof
(
char
),
ECPGt_NO_INDICATOR
,
NULL
,
0L
,
0L
,
0L
,
ECPGt_EOIT
,
ECPGt_EORT
);
#line 6
7
"nan_test.pgc"
#line 6
8
"nan_test.pgc"
if
(
sqlca
.
sqlcode
<
0
)
sqlprint
(
);}
#line 6
7
"nan_test.pgc"
#line 6
8
"nan_test.pgc"
/* declare cur1 cursor for select id , d , d from nantest2 */
#line
69
"nan_test.pgc"
#line
70
"nan_test.pgc"
{
ECPGdo
(
__LINE__
,
0
,
1
,
NULL
,
0
,
ECPGst_normal
,
"declare cur1 cursor for select id , d , d from nantest2"
,
ECPGt_EOIT
,
ECPGt_EORT
);
#line 7
0
"nan_test.pgc"
#line 7
1
"nan_test.pgc"
if
(
sqlca
.
sqlcode
<
0
)
sqlprint
(
);}
#line 7
0
"nan_test.pgc"
#line 7
1
"nan_test.pgc"
while
(
1
)
{
...
...
@@ -230,33 +231,33 @@ if (sqlca.sqlcode < 0) sqlprint ( );}
ECPGt_NO_INDICATOR
,
NULL
,
0L
,
0L
,
0L
,
ECPGt_char
,(
val
),(
long
)
16
,(
long
)
1
,(
16
)
*
sizeof
(
char
),
ECPGt_NO_INDICATOR
,
NULL
,
0L
,
0L
,
0L
,
ECPGt_EORT
);
#line 7
3
"nan_test.pgc"
#line 7
4
"nan_test.pgc"
if
(
sqlca
.
sqlcode
<
0
)
sqlprint
(
);}
#line 7
3
"nan_test.pgc"
#line 7
4
"nan_test.pgc"
if
(
sqlca
.
sqlcode
)
break
;
printf
(
"%d %s '%s'
\n
"
,
id
,
(
num
->
sign
==
NUMERIC_NAN
?
"NaN"
:
"not NaN"
),
val
);
}
{
ECPGdo
(
__LINE__
,
0
,
1
,
NULL
,
0
,
ECPGst_normal
,
"close cur1"
,
ECPGt_EOIT
,
ECPGt_EORT
);
#line 7
8
"nan_test.pgc"
#line 7
9
"nan_test.pgc"
if
(
sqlca
.
sqlcode
<
0
)
sqlprint
(
);}
#line 7
8
"nan_test.pgc"
#line 7
9
"nan_test.pgc"
{
ECPGtrans
(
__LINE__
,
NULL
,
"rollback"
);
#line 8
0
"nan_test.pgc"
#line 8
1
"nan_test.pgc"
if
(
sqlca
.
sqlcode
<
0
)
sqlprint
(
);}
#line 8
0
"nan_test.pgc"
#line 8
1
"nan_test.pgc"
{
ECPGdisconnect
(
__LINE__
,
"CURRENT"
);
#line 8
1
"nan_test.pgc"
#line 8
2
"nan_test.pgc"
if
(
sqlca
.
sqlcode
<
0
)
sqlprint
(
);}
#line 8
1
"nan_test.pgc"
#line 8
2
"nan_test.pgc"
return
(
0
);
...
...
src/interfaces/ecpg/test/expected/pgtypeslib-nan_test.stderr
View file @
58fb345d
...
...
@@ -2,47 +2,37 @@
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ECPGconnect: opening database regress1 on <DEFAULT> port <DEFAULT>
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_execute on line 24: query: create table nantest1 ( id int4 , d float8 ); with 0 parameter(s) on connection regress1
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_execute on line 24: using PQexec
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_execute on line 24: OK: CREATE TABLE
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_execute on line 25: query: insert into nantest1 ( id , d ) values ( 1 , 'nan' :: float8 ) , ( 2 , 'infinity' :: float8 ) , ( 3 , '-infinity' :: float8 ); with 0 parameter(s) on connection regress1
[NO_PID]: ecpg_execute on line 25: query: create table nantest1 ( id int4 , d float8 ); with 0 parameter(s) on connection regress1
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_execute on line 25: using PQexec
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_execute on line 25: OK: INSERT 0 3
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_execute on line 28: query: declare cur cursor for select id , d , d from nantest1; with 0 parameter(s) on connection regress1
[NO_PID]: ecpg_execute on line 25: OK: CREATE TABLE
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_execute on line 2
8: using PQexec
[NO_PID]: ecpg_execute on line 2
6: query: insert into nantest1 ( id , d ) values ( 1 , 'nan' :: float8 ) , ( 2 , 'infinity' :: float8 ) , ( 3 , '-infinity' :: float8 ); with 0 parameter(s) on connection regress1
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_execute on line 2
8: OK: DECLARE CURSOR
[NO_PID]: ecpg_execute on line 2
6: using PQexec
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_execute on line
31: query: fetch from cur; with 0 parameter(s) on connection regress1
[NO_PID]: ecpg_execute on line
26: OK: INSERT 0 3
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_execute on line
31: using PQexec
[NO_PID]: ecpg_execute on line
29: query: declare cur cursor for select id , d , d from nantest1; with 0 parameter(s) on connection regress1
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_execute on line
31: correctly got 1 tuples with 3 fields
[NO_PID]: ecpg_execute on line
29: using PQexec
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_
get_data on line 31: RESULT: 1 offset: -1; array: no
[NO_PID]: ecpg_
execute on line 29: OK: DECLARE CURSOR
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_
get_data on line 31: RESULT: NaN offset: -1; array: no
[NO_PID]: ecpg_
execute on line 32: query: fetch from cur; with 0 parameter(s) on connection regress1
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_
get_data on line 31: RESULT: NaN offset: -1; array: no
[NO_PID]: ecpg_
execute on line 32: using PQexec
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_execute on line 3
9: query: insert into nantest1 ( id , d ) values ( $1 + 3 , $2 ); with 2 parameter(s) on connection regress1
[NO_PID]: ecpg_execute on line 3
2: correctly got 1 tuples with 3 fields
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_
execute on line 39: using PQexecParams
[NO_PID]: ecpg_
get_data on line 32: RESULT: 1 offset: -1; array: no
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]:
free_params on line 39: parameter 1 = 1
[NO_PID]:
ecpg_get_data on line 32: RESULT: NaN offset: -1; array: no
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]:
free_params on line 39: parameter 2 = NaN
[NO_PID]:
ecpg_get_data on line 32: RESULT: NaN offset: -1; array: no
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_execute on line 39: OK: INSERT 0 1
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_execute on line 40: query: insert into nantest1 ( id , d ) values ( $1 + 6 , $2 ); with 2 parameter(s) on connection regress1
[NO_PID]: ecpg_execute on line 40: query: insert into nantest1 ( id , d ) values ( $1 + 3 , $2 ); with 2 parameter(s) on connection regress1
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_execute on line 40: using PQexecParams
[NO_PID]: sqlca: code: 0, state: 00000
...
...
@@ -52,29 +42,29 @@
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_execute on line 40: OK: INSERT 0 1
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_execute on line
31: query: fetch from cur; with 0
parameter(s) on connection regress1
[NO_PID]: ecpg_execute on line
41: query: insert into nantest1 ( id , d ) values ( $1 + 6 , $2 ); with 2
parameter(s) on connection regress1
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_execute on line
31: using PQexec
[NO_PID]: ecpg_execute on line
41: using PQexecParams
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]:
ecpg_execute on line 31: correctly got 1 tuples with 3 fields
[NO_PID]:
free_params on line 41: parameter 1 = 1
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]:
ecpg_get_data on line 31: RESULT: 2 offset: -1; array: no
[NO_PID]:
free_params on line 41: parameter 2 = NaN
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_
get_data on line 31: RESULT: Infinity offset: -1; array: no
[NO_PID]: ecpg_
execute on line 41: OK: INSERT 0 1
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_
get_data on line 31: RESULT: Infinity offset: -1; array: no
[NO_PID]: ecpg_
execute on line 32: query: fetch from cur; with 0 parameter(s) on connection regress1
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_execute on line 3
9: query: insert into nantest1 ( id , d ) values ( $1 + 3 , $2 ); with 2 parameter(s) on connection regress1
[NO_PID]: ecpg_execute on line 3
2: using PQexec
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_execute on line 3
9: using PQexecParam
s
[NO_PID]: ecpg_execute on line 3
2: correctly got 1 tuples with 3 field
s
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]:
free_params on line 39: parameter 1 = 2
[NO_PID]:
ecpg_get_data on line 32: RESULT: 2 offset: -1; array: no
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]:
free_params on line 39: parameter 2 = Infinity
[NO_PID]:
ecpg_get_data on line 32: RESULT: Infinity offset: -1; array: no
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_
execute on line 39: OK: INSERT 0 1
[NO_PID]: ecpg_
get_data on line 32: RESULT: Infinity offset: -1; array: no
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_execute on line 40: query: insert into nantest1 ( id , d ) values ( $1 +
6
, $2 ); with 2 parameter(s) on connection regress1
[NO_PID]: ecpg_execute on line 40: query: insert into nantest1 ( id , d ) values ( $1 +
3
, $2 ); with 2 parameter(s) on connection regress1
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_execute on line 40: using PQexecParams
[NO_PID]: sqlca: code: 0, state: 00000
...
...
@@ -84,29 +74,29 @@
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_execute on line 40: OK: INSERT 0 1
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_execute on line
31: query: fetch from cur; with 0
parameter(s) on connection regress1
[NO_PID]: ecpg_execute on line
41: query: insert into nantest1 ( id , d ) values ( $1 + 6 , $2 ); with 2
parameter(s) on connection regress1
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_execute on line
31: using PQexec
[NO_PID]: ecpg_execute on line
41: using PQexecParams
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]:
ecpg_execute on line 31: correctly got 1 tuples with 3 fields
[NO_PID]:
free_params on line 41: parameter 1 = 2
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]:
ecpg_get_data on line 31: RESULT: 3 offset: -1; array: no
[NO_PID]:
free_params on line 41: parameter 2 = Infinity
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_
get_data on line 31: RESULT: -Infinity offset: -1; array: no
[NO_PID]: ecpg_
execute on line 41: OK: INSERT 0 1
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_
get_data on line 31: RESULT: -Infinity offset: -1; array: no
[NO_PID]: ecpg_
execute on line 32: query: fetch from cur; with 0 parameter(s) on connection regress1
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_execute on line 3
9: query: insert into nantest1 ( id , d ) values ( $1 + 3 , $2 ); with 2 parameter(s) on connection regress1
[NO_PID]: ecpg_execute on line 3
2: using PQexec
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_execute on line 3
9: using PQexecParam
s
[NO_PID]: ecpg_execute on line 3
2: correctly got 1 tuples with 3 field
s
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]:
free_params on line 39: parameter 1 = 3
[NO_PID]:
ecpg_get_data on line 32: RESULT: 3 offset: -1; array: no
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]:
free_params on line 39: parameter 2 = -Infinity
[NO_PID]:
ecpg_get_data on line 32: RESULT: -Infinity offset: -1; array: no
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_
execute on line 39: OK: INSERT 0 1
[NO_PID]: ecpg_
get_data on line 32: RESULT: -Infinity offset: -1; array: no
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_execute on line 40: query: insert into nantest1 ( id , d ) values ( $1 +
6
, $2 ); with 2 parameter(s) on connection regress1
[NO_PID]: ecpg_execute on line 40: query: insert into nantest1 ( id , d ) values ( $1 +
3
, $2 ); with 2 parameter(s) on connection regress1
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_execute on line 40: using PQexecParams
[NO_PID]: sqlca: code: 0, state: 00000
...
...
@@ -116,181 +106,183 @@
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_execute on line 40: OK: INSERT 0 1
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_execute on line
31: query: fetch from cur; with 0
parameter(s) on connection regress1
[NO_PID]: ecpg_execute on line
41: query: insert into nantest1 ( id , d ) values ( $1 + 6 , $2 ); with 2
parameter(s) on connection regress1
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_execute on line
31: using PQexec
[NO_PID]: ecpg_execute on line
41: using PQexecParams
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]:
ecpg_execute on line 31: correctly got 0 tuples with 3 fields
[NO_PID]:
free_params on line 41: parameter 1 = 3
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: raising sqlcode 100 on line 31: no data found on line 31
[NO_PID]: sqlca: code: 100, state: 02000
[NO_PID]: ecpg_execute on line 42: query: close cur; with 0 parameter(s) on connection regress1
[NO_PID]: free_params on line 41: parameter 2 = -Infinity
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_execute on line 4
2: using PQexec
[NO_PID]: ecpg_execute on line 4
1: OK: INSERT 0 1
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_execute on line
42: OK: CLOSE CURSOR
[NO_PID]: ecpg_execute on line
32: query: fetch from cur; with 0 parameter(s) on connection regress1
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_execute on line
44: query: declare cur cursor for select id , d , d from nantest1; with 0 parameter(s) on connection regress1
[NO_PID]: ecpg_execute on line
32: using PQexec
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_execute on line
44: using PQexec
[NO_PID]: ecpg_execute on line
32: correctly got 0 tuples with 3 fields
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_execute on line 44: OK: DECLARE CURSOR
[NO_PID]: raising sqlcode 100 on line 32: no data found on line 32
[NO_PID]: sqlca: code: 100, state: 02000
[NO_PID]: ecpg_execute on line 43: query: close cur; with 0 parameter(s) on connection regress1
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_execute on line 4
7: query: fetch from cur; with 0 parameter(s) on connection regress1
[NO_PID]: ecpg_execute on line 4
3: using PQexec
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_execute on line 4
7: using PQexec
[NO_PID]: ecpg_execute on line 4
3: OK: CLOSE CURSOR
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_execute on line 4
7: correctly got 1 tuples with 3 fields
[NO_PID]: ecpg_execute on line 4
5: query: declare cur cursor for select id , d , d from nantest1; with 0 parameter(s) on connection regress1
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_
get_data on line 47: RESULT: 1 offset: -1; array: no
[NO_PID]: ecpg_
execute on line 45: using PQexec
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_
get_data on line 47: RESULT: NaN offset: -1; array: no
[NO_PID]: ecpg_
execute on line 45: OK: DECLARE CURSOR
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_
get_data on line 47: RESULT: NaN offset: -1; array: no
[NO_PID]: ecpg_
execute on line 48: query: fetch from cur; with 0 parameter(s) on connection regress1
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_execute on line 4
7: query: fetch from cur; with 0 parameter(s) on connection regress1
[NO_PID]: ecpg_execute on line 4
8: using PQexec
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_execute on line 4
7: using PQexec
[NO_PID]: ecpg_execute on line 4
8: correctly got 1 tuples with 3 fields
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_
execute on line 47: correctly got 1 tuples with 3 fields
[NO_PID]: ecpg_
get_data on line 48: RESULT: 1 offset: -1; array: no
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_get_data on line 4
7: RESULT: 2
offset: -1; array: no
[NO_PID]: ecpg_get_data on line 4
8: RESULT: NaN
offset: -1; array: no
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_get_data on line 4
7: RESULT: Infinity
offset: -1; array: no
[NO_PID]: ecpg_get_data on line 4
8: RESULT: NaN
offset: -1; array: no
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_
get_data on line 47: RESULT: Infinity offset: -1; array: no
[NO_PID]: ecpg_
execute on line 48: query: fetch from cur; with 0 parameter(s) on connection regress1
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_execute on line 4
7: query: fetch from cur; with 0 parameter(s) on connection regress1
[NO_PID]: ecpg_execute on line 4
8: using PQexec
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_execute on line 4
7: using PQexec
[NO_PID]: ecpg_execute on line 4
8: correctly got 1 tuples with 3 fields
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_
execute on line 47: correctly got 1 tuples with 3 fields
[NO_PID]: ecpg_
get_data on line 48: RESULT: 2 offset: -1; array: no
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_get_data on line 4
7: RESULT: 3
offset: -1; array: no
[NO_PID]: ecpg_get_data on line 4
8: RESULT: Infinity
offset: -1; array: no
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_get_data on line 4
7: RESULT: -
Infinity offset: -1; array: no
[NO_PID]: ecpg_get_data on line 4
8: RESULT:
Infinity offset: -1; array: no
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_
get_data on line 47: RESULT: -Infinity offset: -1; array: no
[NO_PID]: ecpg_
execute on line 48: query: fetch from cur; with 0 parameter(s) on connection regress1
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_execute on line 4
7: query: fetch from cur; with 0 parameter(s) on connection regress1
[NO_PID]: ecpg_execute on line 4
8: using PQexec
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_execute on line 4
7: using PQexec
[NO_PID]: ecpg_execute on line 4
8: correctly got 1 tuples with 3 fields
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_
execute on line 47: correctly got 1 tuples with 3 fields
[NO_PID]: ecpg_
get_data on line 48: RESULT: 3 offset: -1; array: no
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_get_data on line 4
7: RESULT: 4
offset: -1; array: no
[NO_PID]: ecpg_get_data on line 4
8: RESULT: -Infinity
offset: -1; array: no
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_get_data on line 4
7: RESULT: NaN
offset: -1; array: no
[NO_PID]: ecpg_get_data on line 4
8: RESULT: -Infinity
offset: -1; array: no
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_
get_data on line 47: RESULT: NaN offset: -1; array: no
[NO_PID]: ecpg_
execute on line 48: query: fetch from cur; with 0 parameter(s) on connection regress1
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_execute on line 4
7: query: fetch from cur; with 0 parameter(s) on connection regress1
[NO_PID]: ecpg_execute on line 4
8: using PQexec
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_execute on line 4
7: using PQexec
[NO_PID]: ecpg_execute on line 4
8: correctly got 1 tuples with 3 fields
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_
execute on line 47: correctly got 1 tuples with 3 fields
[NO_PID]: ecpg_
get_data on line 48: RESULT: 4 offset: -1; array: no
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_get_data on line 4
7: RESULT: 7
offset: -1; array: no
[NO_PID]: ecpg_get_data on line 4
8: RESULT: NaN
offset: -1; array: no
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_get_data on line 4
7
: RESULT: NaN offset: -1; array: no
[NO_PID]: ecpg_get_data on line 4
8
: RESULT: NaN offset: -1; array: no
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_
get_data on line 47: RESULT: NaN offset: -1; array: no
[NO_PID]: ecpg_
execute on line 48: query: fetch from cur; with 0 parameter(s) on connection regress1
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_execute on line 4
7: query: fetch from cur; with 0 parameter(s) on connection regress1
[NO_PID]: ecpg_execute on line 4
8: using PQexec
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_execute on line 4
7: using PQexec
[NO_PID]: ecpg_execute on line 4
8: correctly got 1 tuples with 3 fields
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_
execute on line 47: correctly got 1 tuples with 3 fields
[NO_PID]: ecpg_
get_data on line 48: RESULT: 7 offset: -1; array: no
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_get_data on line 4
7: RESULT: 5
offset: -1; array: no
[NO_PID]: ecpg_get_data on line 4
8: RESULT: NaN
offset: -1; array: no
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_get_data on line 4
7: RESULT: Infinity
offset: -1; array: no
[NO_PID]: ecpg_get_data on line 4
8: RESULT: NaN
offset: -1; array: no
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_
get_data on line 47: RESULT: Infinity offset: -1; array: no
[NO_PID]: ecpg_
execute on line 48: query: fetch from cur; with 0 parameter(s) on connection regress1
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_execute on line 4
7: query: fetch from cur; with 0 parameter(s) on connection regress1
[NO_PID]: ecpg_execute on line 4
8: using PQexec
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_execute on line 4
7: using PQexec
[NO_PID]: ecpg_execute on line 4
8: correctly got 1 tuples with 3 fields
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_
execute on line 47: correctly got 1 tuples with 3 fields
[NO_PID]: ecpg_
get_data on line 48: RESULT: 5 offset: -1; array: no
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_get_data on line 4
7: RESULT: 8
offset: -1; array: no
[NO_PID]: ecpg_get_data on line 4
8: RESULT: Infinity
offset: -1; array: no
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_get_data on line 4
7
: RESULT: Infinity offset: -1; array: no
[NO_PID]: ecpg_get_data on line 4
8
: RESULT: Infinity offset: -1; array: no
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_
get_data on line 47: RESULT: Infinity offset: -1; array: no
[NO_PID]: ecpg_
execute on line 48: query: fetch from cur; with 0 parameter(s) on connection regress1
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_execute on line 4
7: query: fetch from cur; with 0 parameter(s) on connection regress1
[NO_PID]: ecpg_execute on line 4
8: using PQexec
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_execute on line 4
7: using PQexec
[NO_PID]: ecpg_execute on line 4
8: correctly got 1 tuples with 3 fields
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_
execute on line 47: correctly got 1 tuples with 3 fields
[NO_PID]: ecpg_
get_data on line 48: RESULT: 8 offset: -1; array: no
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_get_data on line 4
7: RESULT: 6
offset: -1; array: no
[NO_PID]: ecpg_get_data on line 4
8: RESULT: Infinity
offset: -1; array: no
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_get_data on line 4
7: RESULT: -
Infinity offset: -1; array: no
[NO_PID]: ecpg_get_data on line 4
8: RESULT:
Infinity offset: -1; array: no
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_
get_data on line 47: RESULT: -Infinity offset: -1; array: no
[NO_PID]: ecpg_
execute on line 48: query: fetch from cur; with 0 parameter(s) on connection regress1
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_execute on line 4
7: query: fetch from cur; with 0 parameter(s) on connection regress1
[NO_PID]: ecpg_execute on line 4
8: using PQexec
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_execute on line 4
7: using PQexec
[NO_PID]: ecpg_execute on line 4
8: correctly got 1 tuples with 3 fields
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_
execute on line 47: correctly got 1 tuples with 3 fields
[NO_PID]: ecpg_
get_data on line 48: RESULT: 6 offset: -1; array: no
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_get_data on line 4
7: RESULT: 9
offset: -1; array: no
[NO_PID]: ecpg_get_data on line 4
8: RESULT: -Infinity
offset: -1; array: no
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_get_data on line 4
7
: RESULT: -Infinity offset: -1; array: no
[NO_PID]: ecpg_get_data on line 4
8
: RESULT: -Infinity offset: -1; array: no
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_
get_data on line 47: RESULT: -Infinity offset: -1; array: no
[NO_PID]: ecpg_
execute on line 48: query: fetch from cur; with 0 parameter(s) on connection regress1
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_execute on line 4
7: query: fetch from cur; with 0 parameter(s) on connection regress1
[NO_PID]: ecpg_execute on line 4
8: using PQexec
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_execute on line 4
7: using PQexec
[NO_PID]: ecpg_execute on line 4
8: correctly got 1 tuples with 3 fields
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_
execute on line 47: correctly got 0 tuples with 3 fields
[NO_PID]: ecpg_
get_data on line 48: RESULT: 9 offset: -1; array: no
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: raising sqlcode 100 on line 47: no data found on line 47
[NO_PID]: sqlca: code: 100, state: 02000
[NO_PID]: ecpg_execute on line 55: query: close cur; with 0 parameter(s) on connection regress1
[NO_PID]: ecpg_get_data on line 48: RESULT: -Infinity offset: -1; array: no
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_
execute on line 55: using PQexec
[NO_PID]: ecpg_
get_data on line 48: RESULT: -Infinity offset: -1; array: no
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_execute on line
55: OK: CLOSE CURSOR
[NO_PID]: ecpg_execute on line
48: query: fetch from cur; with 0 parameter(s) on connection regress1
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_execute on line
59: query: create table nantest2 ( id int4 , d numeric ); with 0 parameter(s) on connection regress1
[NO_PID]: ecpg_execute on line
48: using PQexec
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_execute on line
59: using PQexec
[NO_PID]: ecpg_execute on line
48: correctly got 0 tuples with 3 fields
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_execute on line 59: OK: CREATE TABLE
[NO_PID]: raising sqlcode 100 on line 48: no data found on line 48
[NO_PID]: sqlca: code: 100, state: 02000
[NO_PID]: ecpg_execute on line 56: query: close cur; with 0 parameter(s) on connection regress1
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_execute on line
60: query: insert into nantest2 ( id , d ) values ( 4 , 'nan' :: numeric ); with 0 parameter(s) on connection regress1
[NO_PID]: ecpg_execute on line
56: using PQexec
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_execute on line
60: using PQexec
[NO_PID]: ecpg_execute on line
56: OK: CLOSE CURSOR
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_execute on line 60: OK: INSERT 0 1
[NO_PID]: ecpg_execute on line 60: query: create table nantest2 ( id int4 , d numeric ); with 0 parameter(s) on connection regress1
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_execute on line 60: using PQexec
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_execute on line 6
2: query: select id , d , d from nantest2 where id = 4; with 0 parameter(s) on connection regress1
[NO_PID]: ecpg_execute on line 6
0: OK: CREATE TABLE
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_execute on line 6
2: using PQexec
[NO_PID]: ecpg_execute on line 6
1: query: insert into nantest2 ( id , d ) values ( 4 , 'nan' :: numeric ); with 0 parameter(s) on connection regress1
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_execute on line 6
2: correctly got 1 tuples with 3 fields
[NO_PID]: ecpg_execute on line 6
1: using PQexec
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_
get_data on line 62: RESULT: 4 offset: -1; array: no
[NO_PID]: ecpg_
execute on line 61: OK: INSERT 0 1
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_
get_data on line 62: RESULT: NaN offset: -1; array: no
[NO_PID]: ecpg_
execute on line 63: query: select id , d , d from nantest2 where id = 4; with 0 parameter(s) on connection regress1
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_
get_data on line 62: RESULT: NaN offset: -1; array: no
[NO_PID]: ecpg_
execute on line 63: using PQexec
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_execute on line 6
6: query: insert into nantest2 ( id , d ) values ( 5 , $1 ); with 1 parameter(s) on connection regress1
[NO_PID]: ecpg_execute on line 6
3: correctly got 1 tuples with 3 fields
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_
execute on line 66: using PQexecParams
[NO_PID]: ecpg_
get_data on line 63: RESULT: 4 offset: -1; array: no
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]:
free_params on line 66: parameter 1 = NaN
[NO_PID]:
ecpg_get_data on line 63: RESULT: NaN offset: -1; array: no
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_
execute on line 66: OK: INSERT 0 1
[NO_PID]: ecpg_
get_data on line 63: RESULT: NaN offset: -1; array: no
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_execute on line 67: query: insert into nantest2 ( id , d ) values (
6
, $1 ); with 1 parameter(s) on connection regress1
[NO_PID]: ecpg_execute on line 67: query: insert into nantest2 ( id , d ) values (
5
, $1 ); with 1 parameter(s) on connection regress1
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_execute on line 67: using PQexecParams
[NO_PID]: sqlca: code: 0, state: 00000
...
...
@@ -298,63 +290,71 @@
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_execute on line 67: OK: INSERT 0 1
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_execute on line 70: query: declare cur1 cursor for select id , d , d from nantest2; with 0 parameter(s) on connection regress1
[NO_PID]: ecpg_execute on line 68: query: insert into nantest2 ( id , d ) values ( 6 , $1 ); with 1 parameter(s) on connection regress1
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_execute on line 68: using PQexecParams
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: free_params on line 68: parameter 1 = NaN
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_execute on line 68: OK: INSERT 0 1
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_execute on line 71: query: declare cur1 cursor for select id , d , d from nantest2; with 0 parameter(s) on connection regress1
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_execute on line 7
0
: using PQexec
[NO_PID]: ecpg_execute on line 7
1
: using PQexec
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_execute on line 7
0
: OK: DECLARE CURSOR
[NO_PID]: ecpg_execute on line 7
1
: OK: DECLARE CURSOR
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_execute on line 7
3
: query: fetch from cur1; with 0 parameter(s) on connection regress1
[NO_PID]: ecpg_execute on line 7
4
: query: fetch from cur1; with 0 parameter(s) on connection regress1
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_execute on line 7
3
: using PQexec
[NO_PID]: ecpg_execute on line 7
4
: using PQexec
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_execute on line 7
3
: correctly got 1 tuples with 3 fields
[NO_PID]: ecpg_execute on line 7
4
: correctly got 1 tuples with 3 fields
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_get_data on line 7
3
: RESULT: 4 offset: -1; array: no
[NO_PID]: ecpg_get_data on line 7
4
: RESULT: 4 offset: -1; array: no
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_get_data on line 7
3
: RESULT: NaN offset: -1; array: no
[NO_PID]: ecpg_get_data on line 7
4
: RESULT: NaN offset: -1; array: no
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_get_data on line 7
3
: RESULT: NaN offset: -1; array: no
[NO_PID]: ecpg_get_data on line 7
4
: RESULT: NaN offset: -1; array: no
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_execute on line 7
3
: query: fetch from cur1; with 0 parameter(s) on connection regress1
[NO_PID]: ecpg_execute on line 7
4
: query: fetch from cur1; with 0 parameter(s) on connection regress1
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_execute on line 7
3
: using PQexec
[NO_PID]: ecpg_execute on line 7
4
: using PQexec
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_execute on line 7
3
: correctly got 1 tuples with 3 fields
[NO_PID]: ecpg_execute on line 7
4
: correctly got 1 tuples with 3 fields
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_get_data on line 7
3
: RESULT: 5 offset: -1; array: no
[NO_PID]: ecpg_get_data on line 7
4
: RESULT: 5 offset: -1; array: no
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_get_data on line 7
3
: RESULT: NaN offset: -1; array: no
[NO_PID]: ecpg_get_data on line 7
4
: RESULT: NaN offset: -1; array: no
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_get_data on line 7
3
: RESULT: NaN offset: -1; array: no
[NO_PID]: ecpg_get_data on line 7
4
: RESULT: NaN offset: -1; array: no
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_execute on line 7
3
: query: fetch from cur1; with 0 parameter(s) on connection regress1
[NO_PID]: ecpg_execute on line 7
4
: query: fetch from cur1; with 0 parameter(s) on connection regress1
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_execute on line 7
3
: using PQexec
[NO_PID]: ecpg_execute on line 7
4
: using PQexec
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_execute on line 7
3
: correctly got 1 tuples with 3 fields
[NO_PID]: ecpg_execute on line 7
4
: correctly got 1 tuples with 3 fields
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_get_data on line 7
3
: RESULT: 6 offset: -1; array: no
[NO_PID]: ecpg_get_data on line 7
4
: RESULT: 6 offset: -1; array: no
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_get_data on line 7
3
: RESULT: NaN offset: -1; array: no
[NO_PID]: ecpg_get_data on line 7
4
: RESULT: NaN offset: -1; array: no
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_get_data on line 7
3
: RESULT: NaN offset: -1; array: no
[NO_PID]: ecpg_get_data on line 7
4
: RESULT: NaN offset: -1; array: no
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_execute on line 7
3
: query: fetch from cur1; with 0 parameter(s) on connection regress1
[NO_PID]: ecpg_execute on line 7
4
: query: fetch from cur1; with 0 parameter(s) on connection regress1
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_execute on line 7
3
: using PQexec
[NO_PID]: ecpg_execute on line 7
4
: using PQexec
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_execute on line 7
3
: correctly got 0 tuples with 3 fields
[NO_PID]: ecpg_execute on line 7
4
: correctly got 0 tuples with 3 fields
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: raising sqlcode 100 on line 7
3: no data found on line 73
[NO_PID]: raising sqlcode 100 on line 7
4: no data found on line 74
[NO_PID]: sqlca: code: 100, state: 02000
[NO_PID]: ecpg_execute on line 7
8
: query: close cur1; with 0 parameter(s) on connection regress1
[NO_PID]: ecpg_execute on line 7
9
: query: close cur1; with 0 parameter(s) on connection regress1
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_execute on line 7
8
: using PQexec
[NO_PID]: ecpg_execute on line 7
9
: using PQexec
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_execute on line 7
8
: OK: CLOSE CURSOR
[NO_PID]: ecpg_execute on line 7
9
: OK: CLOSE CURSOR
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ECPGtrans on line 8
0
: action "rollback"; connection "regress1"
[NO_PID]: ECPGtrans on line 8
1
: action "rollback"; connection "regress1"
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_finish: connection regress1 closed
[NO_PID]: sqlca: code: 0, state: 00000
src/interfaces/ecpg/test/pgtypeslib/nan_test.pgc
View file @
58fb345d
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <float.h>
#include <pgtypes_numeric.h>
#include <decimal.h>
...
...
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