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
faddd3f0
Commit
faddd3f0
authored
Jan 06, 2010
by
Michael Meskes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Applied Zoltan's patch to remove hardware dependant offset logging and
superfluous include files.
parent
946cf229
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
0 additions
and
477 deletions
+0
-477
src/interfaces/ecpg/ecpglib/sqlda.c
src/interfaces/ecpg/ecpglib/sqlda.c
+0
-45
src/interfaces/ecpg/test/expected/compat_informix-sqlda.stderr
...nterfaces/ecpg/test/expected/compat_informix-sqlda.stderr
+0
-200
src/interfaces/ecpg/test/expected/sql-sqlda.stderr
src/interfaces/ecpg/test/expected/sql-sqlda.stderr
+0
-232
No files found.
src/interfaces/ecpg/ecpglib/sqlda.c
View file @
faddd3f0
...
...
@@ -10,9 +10,6 @@
#include "postgres_fe.h"
#include "pg_type.h"
#include <inttypes.h>
#include <dlfcn.h>
#include "ecpg-pthread-win32.h"
#include "decimal.h"
#include "ecpgtype.h"
...
...
@@ -80,38 +77,30 @@ sqlda_common_total_size(const PGresult *res, int row, enum COMPAT_MODE compat, l
case
ECPGt_short
:
case
ECPGt_unsigned_short
:
ecpg_sqlda_align_add_size
(
offset
,
sizeof
(
short
),
sizeof
(
short
),
&
offset
,
&
next_offset
);
ecpg_log
(
"%s type %s offset %d
\n
"
,
__FUNCTION__
,
ecpg_type_name
(
type
),
offset
);
break
;
case
ECPGt_int
:
case
ECPGt_unsigned_int
:
ecpg_sqlda_align_add_size
(
offset
,
sizeof
(
int
),
sizeof
(
int
),
&
offset
,
&
next_offset
);
ecpg_log
(
"%s type %s offset %d
\n
"
,
__FUNCTION__
,
ecpg_type_name
(
type
),
offset
);
break
;
case
ECPGt_long
:
case
ECPGt_unsigned_long
:
ecpg_sqlda_align_add_size
(
offset
,
sizeof
(
long
),
sizeof
(
long
),
&
offset
,
&
next_offset
);
ecpg_log
(
"%s type %s offset %d
\n
"
,
__FUNCTION__
,
ecpg_type_name
(
type
),
offset
);
break
;
case
ECPGt_long_long
:
case
ECPGt_unsigned_long_long
:
ecpg_sqlda_align_add_size
(
offset
,
sizeof
(
long
long
),
sizeof
(
long
long
),
&
offset
,
&
next_offset
);
ecpg_log
(
"%s type %s offset %d
\n
"
,
__FUNCTION__
,
ecpg_type_name
(
type
),
offset
);
break
;
case
ECPGt_bool
:
ecpg_sqlda_align_add_size
(
offset
,
sizeof
(
bool
),
sizeof
(
bool
),
&
offset
,
&
next_offset
);
ecpg_log
(
"%s type %s offset %d
\n
"
,
__FUNCTION__
,
ecpg_type_name
(
type
),
offset
);
break
;
case
ECPGt_float
:
ecpg_sqlda_align_add_size
(
offset
,
sizeof
(
float
),
sizeof
(
float
),
&
offset
,
&
next_offset
);
ecpg_log
(
"%s type %s offset %d
\n
"
,
__FUNCTION__
,
ecpg_type_name
(
type
),
offset
);
break
;
case
ECPGt_double
:
ecpg_sqlda_align_add_size
(
offset
,
sizeof
(
double
),
sizeof
(
double
),
&
offset
,
&
next_offset
);
ecpg_log
(
"%s type %s offset %d
\n
"
,
__FUNCTION__
,
ecpg_type_name
(
type
),
offset
);
break
;
case
ECPGt_decimal
:
ecpg_sqlda_align_add_size
(
offset
,
sizeof
(
int
),
sizeof
(
decimal
),
&
offset
,
&
next_offset
);
ecpg_log
(
"%s type %s offset %d
\n
"
,
__FUNCTION__
,
ecpg_type_name
(
type
),
offset
);
break
;
case
ECPGt_numeric
:
/*
...
...
@@ -120,7 +109,6 @@ sqlda_common_total_size(const PGresult *res, int row, enum COMPAT_MODE compat, l
* of the space needed for the numeric structure.
*/
ecpg_sqlda_align_add_size
(
offset
,
sizeof
(
int
),
sizeof
(
numeric
),
&
offset
,
&
next_offset
);
ecpg_log
(
"%s type %s offset1 %d
\n
"
,
__FUNCTION__
,
ecpg_type_name
(
type
),
offset
);
if
(
!
PQgetisnull
(
res
,
row
,
i
))
{
char
*
val
=
PQgetvalue
(
res
,
row
,
i
);
...
...
@@ -130,21 +118,17 @@ sqlda_common_total_size(const PGresult *res, int row, enum COMPAT_MODE compat, l
if
(
!
num
)
break
;
ecpg_sqlda_align_add_size
(
next_offset
,
sizeof
(
int
),
num
->
ndigits
+
1
,
&
offset
,
&
next_offset
);
ecpg_log
(
"%s type %s offset2 %d
\n
"
,
__FUNCTION__
,
ecpg_type_name
(
type
),
offset
);
PGTYPESnumeric_free
(
num
);
}
break
;
case
ECPGt_date
:
ecpg_sqlda_align_add_size
(
offset
,
sizeof
(
int
),
sizeof
(
date
),
&
offset
,
&
next_offset
);
ecpg_log
(
"%s type %s offset %d
\n
"
,
__FUNCTION__
,
ecpg_type_name
(
type
),
offset
);
break
;
case
ECPGt_timestamp
:
ecpg_sqlda_align_add_size
(
offset
,
sizeof
(
int
),
sizeof
(
timestamp
),
&
offset
,
&
next_offset
);
ecpg_log
(
"%s type %s offset %d
\n
"
,
__FUNCTION__
,
ecpg_type_name
(
type
),
offset
);
break
;
case
ECPGt_interval
:
ecpg_sqlda_align_add_size
(
offset
,
sizeof
(
int
),
sizeof
(
interval
),
&
offset
,
&
next_offset
);
ecpg_log
(
"%s type %s offset %d
\n
"
,
__FUNCTION__
,
ecpg_type_name
(
type
),
offset
);
break
;
case
ECPGt_char
:
case
ECPGt_unsigned_char
:
...
...
@@ -153,7 +137,6 @@ sqlda_common_total_size(const PGresult *res, int row, enum COMPAT_MODE compat, l
{
long
datalen
=
strlen
(
PQgetvalue
(
res
,
row
,
i
))
+
1
;
ecpg_sqlda_align_add_size
(
offset
,
sizeof
(
int
),
datalen
,
&
offset
,
&
next_offset
);
ecpg_log
(
"%s type %s offset %d
\n
"
,
__FUNCTION__
,
ecpg_type_name
(
type
),
offset
);
break
;
}
}
...
...
@@ -285,52 +268,44 @@ ecpg_set_compat_sqlda(int lineno, struct sqlda_compat **_sqlda, const PGresult *
ecpg_sqlda_align_add_size
(
offset
,
sizeof
(
short
),
sizeof
(
short
),
&
offset
,
&
next_offset
);
sqlda
->
sqlvar
[
i
].
sqldata
=
(
char
*
)
sqlda
+
offset
;
sqlda
->
sqlvar
[
i
].
sqllen
=
sizeof
(
short
);
ecpg_log
(
"%s type %s offset %d
\n
"
,
__FUNCTION__
,
ecpg_type_name
(
sqlda
->
sqlvar
[
i
].
sqltype
),
offset
);
break
;
case
ECPGt_int
:
case
ECPGt_unsigned_int
:
ecpg_sqlda_align_add_size
(
offset
,
sizeof
(
int
),
sizeof
(
int
),
&
offset
,
&
next_offset
);
sqlda
->
sqlvar
[
i
].
sqldata
=
(
char
*
)
sqlda
+
offset
;
sqlda
->
sqlvar
[
i
].
sqllen
=
sizeof
(
int
);
ecpg_log
(
"%s type %s offset %d
\n
"
,
__FUNCTION__
,
ecpg_type_name
(
sqlda
->
sqlvar
[
i
].
sqltype
),
offset
);
break
;
case
ECPGt_long
:
case
ECPGt_unsigned_long
:
ecpg_sqlda_align_add_size
(
offset
,
sizeof
(
long
),
sizeof
(
long
),
&
offset
,
&
next_offset
);
sqlda
->
sqlvar
[
i
].
sqldata
=
(
char
*
)
sqlda
+
offset
;
sqlda
->
sqlvar
[
i
].
sqllen
=
sizeof
(
long
);
ecpg_log
(
"%s type %s offset %d
\n
"
,
__FUNCTION__
,
ecpg_type_name
(
sqlda
->
sqlvar
[
i
].
sqltype
),
offset
);
break
;
case
ECPGt_long_long
:
case
ECPGt_unsigned_long_long
:
ecpg_sqlda_align_add_size
(
offset
,
sizeof
(
long
long
),
sizeof
(
long
long
),
&
offset
,
&
next_offset
);
sqlda
->
sqlvar
[
i
].
sqldata
=
(
char
*
)
sqlda
+
offset
;
sqlda
->
sqlvar
[
i
].
sqllen
=
sizeof
(
long
long
);
ecpg_log
(
"%s type %s offset %d
\n
"
,
__FUNCTION__
,
ecpg_type_name
(
sqlda
->
sqlvar
[
i
].
sqltype
),
offset
);
break
;
case
ECPGt_bool
:
ecpg_sqlda_align_add_size
(
offset
,
sizeof
(
bool
),
sizeof
(
bool
),
&
offset
,
&
next_offset
);
sqlda
->
sqlvar
[
i
].
sqldata
=
(
char
*
)
sqlda
+
offset
;
sqlda
->
sqlvar
[
i
].
sqllen
=
sizeof
(
bool
);
ecpg_log
(
"%s type %s offset %d
\n
"
,
__FUNCTION__
,
ecpg_type_name
(
sqlda
->
sqlvar
[
i
].
sqltype
),
offset
);
break
;
case
ECPGt_float
:
ecpg_sqlda_align_add_size
(
offset
,
sizeof
(
float
),
sizeof
(
float
),
&
offset
,
&
next_offset
);
sqlda
->
sqlvar
[
i
].
sqldata
=
(
char
*
)
sqlda
+
offset
;
sqlda
->
sqlvar
[
i
].
sqllen
=
sizeof
(
float
);
ecpg_log
(
"%s type %s offset %d
\n
"
,
__FUNCTION__
,
ecpg_type_name
(
sqlda
->
sqlvar
[
i
].
sqltype
),
offset
);
break
;
case
ECPGt_double
:
ecpg_sqlda_align_add_size
(
offset
,
sizeof
(
double
),
sizeof
(
double
),
&
offset
,
&
next_offset
);
sqlda
->
sqlvar
[
i
].
sqldata
=
(
char
*
)
sqlda
+
offset
;
sqlda
->
sqlvar
[
i
].
sqllen
=
sizeof
(
double
);
ecpg_log
(
"%s type %s offset %d
\n
"
,
__FUNCTION__
,
ecpg_type_name
(
sqlda
->
sqlvar
[
i
].
sqltype
),
offset
);
break
;
case
ECPGt_decimal
:
ecpg_sqlda_align_add_size
(
offset
,
sizeof
(
int
),
sizeof
(
decimal
),
&
offset
,
&
next_offset
);
sqlda
->
sqlvar
[
i
].
sqldata
=
(
char
*
)
sqlda
+
offset
;
sqlda
->
sqlvar
[
i
].
sqllen
=
sizeof
(
decimal
);
ecpg_log
(
"%s type %s offset %d
\n
"
,
__FUNCTION__
,
ecpg_type_name
(
sqlda
->
sqlvar
[
i
].
sqltype
),
offset
);
break
;
case
ECPGt_numeric
:
{
...
...
@@ -342,7 +317,6 @@ ecpg_set_compat_sqlda(int lineno, struct sqlda_compat **_sqlda, const PGresult *
ecpg_sqlda_align_add_size
(
offset
,
sizeof
(
int
),
sizeof
(
numeric
),
&
offset
,
&
next_offset
);
sqlda
->
sqlvar
[
i
].
sqldata
=
(
char
*
)
sqlda
+
offset
;
sqlda
->
sqlvar
[
i
].
sqllen
=
sizeof
(
numeric
);
ecpg_log
(
"%s type %s offset1 %d
\n
"
,
__FUNCTION__
,
ecpg_type_name
(
sqlda
->
sqlvar
[
i
].
sqltype
),
offset
);
if
(
PQgetisnull
(
res
,
row
,
i
))
{
...
...
@@ -362,7 +336,6 @@ ecpg_set_compat_sqlda(int lineno, struct sqlda_compat **_sqlda, const PGresult *
ecpg_sqlda_align_add_size
(
next_offset
,
sizeof
(
int
),
num
->
ndigits
+
1
,
&
offset
,
&
next_offset
);
memcpy
((
char
*
)
sqlda
+
offset
,
num
->
buf
,
num
->
ndigits
+
1
);
ecpg_log
(
"%s type %s offset2 %d
\n
"
,
__FUNCTION__
,
ecpg_type_name
(
sqlda
->
sqlvar
[
i
].
sqltype
),
offset
);
((
numeric
*
)
sqlda
->
sqlvar
[
i
].
sqldata
)
->
buf
=
(
NumericDigit
*
)
sqlda
+
offset
;
((
numeric
*
)
sqlda
->
sqlvar
[
i
].
sqldata
)
->
digits
=
(
NumericDigit
*
)
sqlda
+
offset
+
(
num
->
digits
-
num
->
buf
);
...
...
@@ -375,19 +348,16 @@ ecpg_set_compat_sqlda(int lineno, struct sqlda_compat **_sqlda, const PGresult *
ecpg_sqlda_align_add_size
(
offset
,
sizeof
(
date
),
sizeof
(
date
),
&
offset
,
&
next_offset
);
sqlda
->
sqlvar
[
i
].
sqldata
=
(
char
*
)
sqlda
+
offset
;
sqlda
->
sqlvar
[
i
].
sqllen
=
sizeof
(
date
);
ecpg_log
(
"%s type %s offset %d
\n
"
,
__FUNCTION__
,
ecpg_type_name
(
sqlda
->
sqlvar
[
i
].
sqltype
),
offset
);
break
;
case
ECPGt_timestamp
:
ecpg_sqlda_align_add_size
(
offset
,
sizeof
(
timestamp
),
sizeof
(
timestamp
),
&
offset
,
&
next_offset
);
sqlda
->
sqlvar
[
i
].
sqldata
=
(
char
*
)
sqlda
+
offset
;
sqlda
->
sqlvar
[
i
].
sqllen
=
sizeof
(
timestamp
);
ecpg_log
(
"%s type %s offset %d
\n
"
,
__FUNCTION__
,
ecpg_type_name
(
sqlda
->
sqlvar
[
i
].
sqltype
),
offset
);
break
;
case
ECPGt_interval
:
ecpg_sqlda_align_add_size
(
offset
,
sizeof
(
int64_t
),
sizeof
(
interval
),
&
offset
,
&
next_offset
);
sqlda
->
sqlvar
[
i
].
sqldata
=
(
char
*
)
sqlda
+
offset
;
sqlda
->
sqlvar
[
i
].
sqllen
=
sizeof
(
interval
);
ecpg_log
(
"%s type %s offset %d
\n
"
,
__FUNCTION__
,
ecpg_type_name
(
sqlda
->
sqlvar
[
i
].
sqltype
),
offset
);
break
;
case
ECPGt_char
:
case
ECPGt_unsigned_char
:
...
...
@@ -399,7 +369,6 @@ ecpg_set_compat_sqlda(int lineno, struct sqlda_compat **_sqlda, const PGresult *
sqlda
->
sqlvar
[
i
].
sqllen
=
datalen
;
if
(
datalen
>
32768
)
sqlda
->
sqlvar
[
i
].
sqlilongdata
=
sqlda
->
sqlvar
[
i
].
sqldata
;
ecpg_log
(
"%s type %s offset %d
\n
"
,
__FUNCTION__
,
ecpg_type_name
(
sqlda
->
sqlvar
[
i
].
sqltype
),
offset
);
break
;
}
...
...
@@ -484,52 +453,44 @@ ecpg_set_native_sqlda(int lineno, struct sqlda_struct **_sqlda, const PGresult *
ecpg_sqlda_align_add_size
(
offset
,
sizeof
(
short
),
sizeof
(
short
),
&
offset
,
&
next_offset
);
sqlda
->
sqlvar
[
i
].
sqldata
=
(
char
*
)
sqlda
+
offset
;
sqlda
->
sqlvar
[
i
].
sqllen
=
sizeof
(
short
);
ecpg_log
(
"%s type %s offset %d
\n
"
,
__FUNCTION__
,
ecpg_type_name
(
sqlda
->
sqlvar
[
i
].
sqltype
),
offset
);
break
;
case
ECPGt_int
:
case
ECPGt_unsigned_int
:
ecpg_sqlda_align_add_size
(
offset
,
sizeof
(
int
),
sizeof
(
int
),
&
offset
,
&
next_offset
);
sqlda
->
sqlvar
[
i
].
sqldata
=
(
char
*
)
sqlda
+
offset
;
sqlda
->
sqlvar
[
i
].
sqllen
=
sizeof
(
int
);
ecpg_log
(
"%s type %s offset %d
\n
"
,
__FUNCTION__
,
ecpg_type_name
(
sqlda
->
sqlvar
[
i
].
sqltype
),
offset
);
break
;
case
ECPGt_long
:
case
ECPGt_unsigned_long
:
ecpg_sqlda_align_add_size
(
offset
,
sizeof
(
long
),
sizeof
(
long
),
&
offset
,
&
next_offset
);
sqlda
->
sqlvar
[
i
].
sqldata
=
(
char
*
)
sqlda
+
offset
;
sqlda
->
sqlvar
[
i
].
sqllen
=
sizeof
(
long
);
ecpg_log
(
"%s type %s offset %d
\n
"
,
__FUNCTION__
,
ecpg_type_name
(
sqlda
->
sqlvar
[
i
].
sqltype
),
offset
);
break
;
case
ECPGt_long_long
:
case
ECPGt_unsigned_long_long
:
ecpg_sqlda_align_add_size
(
offset
,
sizeof
(
long
long
),
sizeof
(
long
long
),
&
offset
,
&
next_offset
);
sqlda
->
sqlvar
[
i
].
sqldata
=
(
char
*
)
sqlda
+
offset
;
sqlda
->
sqlvar
[
i
].
sqllen
=
sizeof
(
long
long
);
ecpg_log
(
"%s type %s offset %d
\n
"
,
__FUNCTION__
,
ecpg_type_name
(
sqlda
->
sqlvar
[
i
].
sqltype
),
offset
);
break
;
case
ECPGt_bool
:
ecpg_sqlda_align_add_size
(
offset
,
sizeof
(
bool
),
sizeof
(
bool
),
&
offset
,
&
next_offset
);
sqlda
->
sqlvar
[
i
].
sqldata
=
(
char
*
)
sqlda
+
offset
;
sqlda
->
sqlvar
[
i
].
sqllen
=
sizeof
(
bool
);
ecpg_log
(
"%s type %s offset %d
\n
"
,
__FUNCTION__
,
ecpg_type_name
(
sqlda
->
sqlvar
[
i
].
sqltype
),
offset
);
break
;
case
ECPGt_float
:
ecpg_sqlda_align_add_size
(
offset
,
sizeof
(
float
),
sizeof
(
float
),
&
offset
,
&
next_offset
);
sqlda
->
sqlvar
[
i
].
sqldata
=
(
char
*
)
sqlda
+
offset
;
sqlda
->
sqlvar
[
i
].
sqllen
=
sizeof
(
float
);
ecpg_log
(
"%s type %s offset %d
\n
"
,
__FUNCTION__
,
ecpg_type_name
(
sqlda
->
sqlvar
[
i
].
sqltype
),
offset
);
break
;
case
ECPGt_double
:
ecpg_sqlda_align_add_size
(
offset
,
sizeof
(
double
),
sizeof
(
double
),
&
offset
,
&
next_offset
);
sqlda
->
sqlvar
[
i
].
sqldata
=
(
char
*
)
sqlda
+
offset
;
sqlda
->
sqlvar
[
i
].
sqllen
=
sizeof
(
double
);
ecpg_log
(
"%s type %s offset %d
\n
"
,
__FUNCTION__
,
ecpg_type_name
(
sqlda
->
sqlvar
[
i
].
sqltype
),
offset
);
break
;
case
ECPGt_decimal
:
ecpg_sqlda_align_add_size
(
offset
,
sizeof
(
int
),
sizeof
(
decimal
),
&
offset
,
&
next_offset
);
sqlda
->
sqlvar
[
i
].
sqldata
=
(
char
*
)
sqlda
+
offset
;
sqlda
->
sqlvar
[
i
].
sqllen
=
sizeof
(
decimal
);
ecpg_log
(
"%s type %s offset %d
\n
"
,
__FUNCTION__
,
ecpg_type_name
(
sqlda
->
sqlvar
[
i
].
sqltype
),
offset
);
break
;
case
ECPGt_numeric
:
{
...
...
@@ -541,7 +502,6 @@ ecpg_set_native_sqlda(int lineno, struct sqlda_struct **_sqlda, const PGresult *
ecpg_sqlda_align_add_size
(
offset
,
sizeof
(
int
),
sizeof
(
numeric
),
&
offset
,
&
next_offset
);
sqlda
->
sqlvar
[
i
].
sqldata
=
(
char
*
)
sqlda
+
offset
;
sqlda
->
sqlvar
[
i
].
sqllen
=
sizeof
(
numeric
);
ecpg_log
(
"%s type %s offset1 %d
\n
"
,
__FUNCTION__
,
ecpg_type_name
(
sqlda
->
sqlvar
[
i
].
sqltype
),
offset
);
if
(
PQgetisnull
(
res
,
row
,
i
))
{
...
...
@@ -561,7 +521,6 @@ ecpg_set_native_sqlda(int lineno, struct sqlda_struct **_sqlda, const PGresult *
ecpg_sqlda_align_add_size
(
next_offset
,
sizeof
(
int
),
num
->
ndigits
+
1
,
&
offset
,
&
next_offset
);
memcpy
((
char
*
)
sqlda
+
offset
,
num
->
buf
,
num
->
ndigits
+
1
);
ecpg_log
(
"%s type %s offset2 %d
\n
"
,
__FUNCTION__
,
ecpg_type_name
(
sqlda
->
sqlvar
[
i
].
sqltype
),
offset
);
((
numeric
*
)
sqlda
->
sqlvar
[
i
].
sqldata
)
->
buf
=
(
NumericDigit
*
)
sqlda
+
offset
;
((
numeric
*
)
sqlda
->
sqlvar
[
i
].
sqldata
)
->
digits
=
(
NumericDigit
*
)
sqlda
+
offset
+
(
num
->
digits
-
num
->
buf
);
...
...
@@ -574,19 +533,16 @@ ecpg_set_native_sqlda(int lineno, struct sqlda_struct **_sqlda, const PGresult *
ecpg_sqlda_align_add_size
(
offset
,
sizeof
(
date
),
sizeof
(
date
),
&
offset
,
&
next_offset
);
sqlda
->
sqlvar
[
i
].
sqldata
=
(
char
*
)
sqlda
+
offset
;
sqlda
->
sqlvar
[
i
].
sqllen
=
sizeof
(
date
);
ecpg_log
(
"%s type %s offset %d
\n
"
,
__FUNCTION__
,
ecpg_type_name
(
sqlda
->
sqlvar
[
i
].
sqltype
),
offset
);
break
;
case
ECPGt_timestamp
:
ecpg_sqlda_align_add_size
(
offset
,
sizeof
(
timestamp
),
sizeof
(
timestamp
),
&
offset
,
&
next_offset
);
sqlda
->
sqlvar
[
i
].
sqldata
=
(
char
*
)
sqlda
+
offset
;
sqlda
->
sqlvar
[
i
].
sqllen
=
sizeof
(
timestamp
);
ecpg_log
(
"%s type %s offset %d
\n
"
,
__FUNCTION__
,
ecpg_type_name
(
sqlda
->
sqlvar
[
i
].
sqltype
),
offset
);
break
;
case
ECPGt_interval
:
ecpg_sqlda_align_add_size
(
offset
,
sizeof
(
int64_t
),
sizeof
(
interval
),
&
offset
,
&
next_offset
);
sqlda
->
sqlvar
[
i
].
sqldata
=
(
char
*
)
sqlda
+
offset
;
sqlda
->
sqlvar
[
i
].
sqllen
=
sizeof
(
interval
);
ecpg_log
(
"%s type %s offset %d
\n
"
,
__FUNCTION__
,
ecpg_type_name
(
sqlda
->
sqlvar
[
i
].
sqltype
),
offset
);
break
;
case
ECPGt_char
:
case
ECPGt_unsigned_char
:
...
...
@@ -596,7 +552,6 @@ ecpg_set_native_sqlda(int lineno, struct sqlda_struct **_sqlda, const PGresult *
ecpg_sqlda_align_add_size
(
offset
,
sizeof
(
int
),
datalen
,
&
offset
,
&
next_offset
);
sqlda
->
sqlvar
[
i
].
sqldata
=
(
char
*
)
sqlda
+
offset
;
sqlda
->
sqlvar
[
i
].
sqllen
=
datalen
;
ecpg_log
(
"%s type %s offset %d
\n
"
,
__FUNCTION__
,
ecpg_type_name
(
sqlda
->
sqlvar
[
i
].
sqltype
),
offset
);
break
;
}
...
...
src/interfaces/ecpg/test/expected/compat_informix-sqlda.stderr
View file @
faddd3f0
...
...
@@ -36,46 +36,26 @@
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_execute on line 113: correctly got 1 tuples with 5 fields
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: sqlda_common_total_size type int offset 672
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: sqlda_common_total_size type char offset 676
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: sqlda_common_total_size type decimal offset 680
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: sqlda_common_total_size type double offset 736
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: sqlda_common_total_size type char offset 744
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_build_compat_sqlda sqld = 5
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_execute on line 113: new sqlda was built
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_set_compat_sqlda type int offset 672
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_set_compat_sqlda row 0 col 0 IS NOT NULL
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_get_data on line 113: RESULT: 1 offset: -1; array: yes
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_set_compat_sqlda type char offset 676
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_set_compat_sqlda row 0 col 1 IS NOT NULL
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_get_data on line 113: RESULT: a offset: -1; array: yes
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_set_compat_sqlda type decimal offset 680
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_set_compat_sqlda row 0 col 2 IS NOT NULL
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_get_data on line 113: RESULT: 1.0 offset: -1; array: yes
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_set_compat_sqlda type double offset 736
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_set_compat_sqlda row 0 col 3 IS NOT NULL
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_get_data on line 113: RESULT: 1 offset: -1; array: yes
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_set_compat_sqlda type char offset 744
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_set_compat_sqlda row 0 col 4 IS NOT NULL
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_get_data on line 113: RESULT: a offset: -1; array: yes
...
...
@@ -88,40 +68,20 @@
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_execute on line 113: correctly got 1 tuples with 5 fields
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: sqlda_common_total_size type int offset 672
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: sqlda_common_total_size type char offset 676
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: sqlda_common_total_size type decimal offset 680
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: sqlda_common_total_size type double offset 736
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: sqlda_common_total_size type char offset 744
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_build_compat_sqlda sqld = 5
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_execute on line 113: new sqlda was built
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_set_compat_sqlda type int offset 672
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_set_compat_sqlda row 0 col 0 IS NOT NULL
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_get_data on line 113: RESULT: 2 offset: -1; array: yes
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_set_compat_sqlda type char offset 676
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_set_compat_sqlda row 0 col 1 IS NULL
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_set_compat_sqlda type decimal offset 680
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_set_compat_sqlda row 0 col 2 IS NULL
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_set_compat_sqlda type double offset 736
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_set_compat_sqlda row 0 col 3 IS NULL
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_set_compat_sqlda type char offset 744
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_set_compat_sqlda row 0 col 4 IS NULL
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_execute on line 113: putting result (1 tuple 5 fields) into sqlda descriptor
...
...
@@ -132,46 +92,26 @@
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_execute on line 113: correctly got 1 tuples with 5 fields
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: sqlda_common_total_size type int offset 672
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: sqlda_common_total_size type char offset 676
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: sqlda_common_total_size type decimal offset 680
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: sqlda_common_total_size type double offset 736
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: sqlda_common_total_size type char offset 744
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_build_compat_sqlda sqld = 5
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_execute on line 113: new sqlda was built
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_set_compat_sqlda type int offset 672
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_set_compat_sqlda row 0 col 0 IS NOT NULL
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_get_data on line 113: RESULT: 3 offset: -1; array: yes
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_set_compat_sqlda type char offset 676
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_set_compat_sqlda row 0 col 1 IS NOT NULL
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_get_data on line 113: RESULT: "c" offset: -1; array: yes
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_set_compat_sqlda type decimal offset 680
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_set_compat_sqlda row 0 col 2 IS NOT NULL
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_get_data on line 113: RESULT: -3 offset: -1; array: yes
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_set_compat_sqlda type double offset 736
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_set_compat_sqlda row 0 col 3 IS NOT NULL
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_get_data on line 113: RESULT: NaN offset: -1; array: yes
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_set_compat_sqlda type char offset 744
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_set_compat_sqlda row 0 col 4 IS NOT NULL
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_get_data on line 113: RESULT: c offset: -1; array: yes
...
...
@@ -184,46 +124,26 @@
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_execute on line 113: correctly got 1 tuples with 5 fields
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: sqlda_common_total_size type int offset 672
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: sqlda_common_total_size type char offset 676
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: sqlda_common_total_size type decimal offset 680
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: sqlda_common_total_size type double offset 736
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: sqlda_common_total_size type char offset 744
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_build_compat_sqlda sqld = 5
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_execute on line 113: new sqlda was built
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_set_compat_sqlda type int offset 672
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_set_compat_sqlda row 0 col 0 IS NOT NULL
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_get_data on line 113: RESULT: 4 offset: -1; array: yes
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_set_compat_sqlda type char offset 676
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_set_compat_sqlda row 0 col 1 IS NOT NULL
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_get_data on line 113: RESULT: d offset: -1; array: yes
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_set_compat_sqlda type decimal offset 680
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_set_compat_sqlda row 0 col 2 IS NOT NULL
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_get_data on line 113: RESULT: 4.0 offset: -1; array: yes
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_set_compat_sqlda type double offset 736
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_set_compat_sqlda row 0 col 3 IS NOT NULL
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_get_data on line 113: RESULT: 4 offset: -1; array: yes
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_set_compat_sqlda type char offset 744
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_set_compat_sqlda row 0 col 4 IS NOT NULL
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_get_data on line 113: RESULT: d offset: -1; array: yes
...
...
@@ -260,46 +180,26 @@
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_execute on line 150: correctly got 1 tuples with 5 fields
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: sqlda_common_total_size type int offset 672
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: sqlda_common_total_size type char offset 676
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: sqlda_common_total_size type decimal offset 680
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: sqlda_common_total_size type double offset 736
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: sqlda_common_total_size type char offset 744
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_build_compat_sqlda sqld = 5
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_execute on line 150: new sqlda was built
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_set_compat_sqlda type int offset 672
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_set_compat_sqlda row 0 col 0 IS NOT NULL
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_get_data on line 150: RESULT: 1 offset: -1; array: yes
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_set_compat_sqlda type char offset 676
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_set_compat_sqlda row 0 col 1 IS NOT NULL
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_get_data on line 150: RESULT: a offset: -1; array: yes
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_set_compat_sqlda type decimal offset 680
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_set_compat_sqlda row 0 col 2 IS NOT NULL
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_get_data on line 150: RESULT: 1.0 offset: -1; array: yes
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_set_compat_sqlda type double offset 736
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_set_compat_sqlda row 0 col 3 IS NOT NULL
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_get_data on line 150: RESULT: 1 offset: -1; array: yes
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_set_compat_sqlda type char offset 744
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_set_compat_sqlda row 0 col 4 IS NOT NULL
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_get_data on line 150: RESULT: a offset: -1; array: yes
...
...
@@ -312,40 +212,20 @@
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_execute on line 150: correctly got 1 tuples with 5 fields
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: sqlda_common_total_size type int offset 672
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: sqlda_common_total_size type char offset 676
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: sqlda_common_total_size type decimal offset 680
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: sqlda_common_total_size type double offset 736
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: sqlda_common_total_size type char offset 744
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_build_compat_sqlda sqld = 5
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_execute on line 150: new sqlda was built
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_set_compat_sqlda type int offset 672
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_set_compat_sqlda row 0 col 0 IS NOT NULL
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_get_data on line 150: RESULT: 2 offset: -1; array: yes
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_set_compat_sqlda type char offset 676
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_set_compat_sqlda row 0 col 1 IS NULL
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_set_compat_sqlda type decimal offset 680
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_set_compat_sqlda row 0 col 2 IS NULL
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_set_compat_sqlda type double offset 736
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_set_compat_sqlda row 0 col 3 IS NULL
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_set_compat_sqlda type char offset 744
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_set_compat_sqlda row 0 col 4 IS NULL
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_execute on line 150: putting result (1 tuple 5 fields) into sqlda descriptor
...
...
@@ -356,46 +236,26 @@
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_execute on line 150: correctly got 1 tuples with 5 fields
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: sqlda_common_total_size type int offset 672
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: sqlda_common_total_size type char offset 676
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: sqlda_common_total_size type decimal offset 680
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: sqlda_common_total_size type double offset 736
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: sqlda_common_total_size type char offset 744
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_build_compat_sqlda sqld = 5
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_execute on line 150: new sqlda was built
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_set_compat_sqlda type int offset 672
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_set_compat_sqlda row 0 col 0 IS NOT NULL
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_get_data on line 150: RESULT: 3 offset: -1; array: yes
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_set_compat_sqlda type char offset 676
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_set_compat_sqlda row 0 col 1 IS NOT NULL
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_get_data on line 150: RESULT: "c" offset: -1; array: yes
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_set_compat_sqlda type decimal offset 680
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_set_compat_sqlda row 0 col 2 IS NOT NULL
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_get_data on line 150: RESULT: -3 offset: -1; array: yes
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_set_compat_sqlda type double offset 736
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_set_compat_sqlda row 0 col 3 IS NOT NULL
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_get_data on line 150: RESULT: NaN offset: -1; array: yes
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_set_compat_sqlda type char offset 744
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_set_compat_sqlda row 0 col 4 IS NOT NULL
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_get_data on line 150: RESULT: c offset: -1; array: yes
...
...
@@ -408,46 +268,26 @@
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_execute on line 150: correctly got 1 tuples with 5 fields
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: sqlda_common_total_size type int offset 672
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: sqlda_common_total_size type char offset 676
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: sqlda_common_total_size type decimal offset 680
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: sqlda_common_total_size type double offset 736
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: sqlda_common_total_size type char offset 744
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_build_compat_sqlda sqld = 5
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_execute on line 150: new sqlda was built
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_set_compat_sqlda type int offset 672
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_set_compat_sqlda row 0 col 0 IS NOT NULL
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_get_data on line 150: RESULT: 4 offset: -1; array: yes
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_set_compat_sqlda type char offset 676
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_set_compat_sqlda row 0 col 1 IS NOT NULL
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_get_data on line 150: RESULT: d offset: -1; array: yes
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_set_compat_sqlda type decimal offset 680
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_set_compat_sqlda row 0 col 2 IS NOT NULL
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_get_data on line 150: RESULT: 4.0 offset: -1; array: yes
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_set_compat_sqlda type double offset 736
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_set_compat_sqlda row 0 col 3 IS NOT NULL
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_get_data on line 150: RESULT: 4 offset: -1; array: yes
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_set_compat_sqlda type char offset 744
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_set_compat_sqlda row 0 col 4 IS NOT NULL
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_get_data on line 150: RESULT: d offset: -1; array: yes
...
...
@@ -480,46 +320,26 @@
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_execute on line 188: correctly got 1 tuples with 5 fields
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: sqlda_common_total_size type int offset 672
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: sqlda_common_total_size type char offset 676
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: sqlda_common_total_size type decimal offset 680
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: sqlda_common_total_size type double offset 736
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: sqlda_common_total_size type char offset 744
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_build_compat_sqlda sqld = 5
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_execute on line 188: new sqlda was built
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_set_compat_sqlda type int offset 672
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_set_compat_sqlda row 0 col 0 IS NOT NULL
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_get_data on line 188: RESULT: 4 offset: -1; array: yes
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_set_compat_sqlda type char offset 676
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_set_compat_sqlda row 0 col 1 IS NOT NULL
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_get_data on line 188: RESULT: d offset: -1; array: yes
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_set_compat_sqlda type decimal offset 680
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_set_compat_sqlda row 0 col 2 IS NOT NULL
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_get_data on line 188: RESULT: 4.0 offset: -1; array: yes
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_set_compat_sqlda type double offset 736
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_set_compat_sqlda row 0 col 3 IS NOT NULL
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_get_data on line 188: RESULT: 4 offset: -1; array: yes
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_set_compat_sqlda type char offset 744
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_set_compat_sqlda row 0 col 4 IS NOT NULL
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_get_data on line 188: RESULT: d offset: -1; array: yes
...
...
@@ -540,46 +360,26 @@
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_execute on line 225: correctly got 1 tuples with 5 fields
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: sqlda_common_total_size type int offset 672
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: sqlda_common_total_size type char offset 676
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: sqlda_common_total_size type decimal offset 680
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: sqlda_common_total_size type double offset 736
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: sqlda_common_total_size type char offset 744
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_build_compat_sqlda sqld = 5
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_execute on line 225: new sqlda was built
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_set_compat_sqlda type int offset 672
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_set_compat_sqlda row 0 col 0 IS NOT NULL
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_get_data on line 225: RESULT: 4 offset: -1; array: yes
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_set_compat_sqlda type char offset 676
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_set_compat_sqlda row 0 col 1 IS NOT NULL
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_get_data on line 225: RESULT: d offset: -1; array: yes
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_set_compat_sqlda type decimal offset 680
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_set_compat_sqlda row 0 col 2 IS NOT NULL
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_get_data on line 225: RESULT: 4.0 offset: -1; array: yes
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_set_compat_sqlda type double offset 736
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_set_compat_sqlda row 0 col 3 IS NOT NULL
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_get_data on line 225: RESULT: 4 offset: -1; array: yes
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_set_compat_sqlda type char offset 744
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_set_compat_sqlda row 0 col 4 IS NOT NULL
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_get_data on line 225: RESULT: d offset: -1; array: yes
...
...
src/interfaces/ecpg/test/expected/sql-sqlda.stderr
View file @
faddd3f0
...
...
@@ -36,48 +36,24 @@
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_execute on line 120: correctly got 1 tuples with 5 fields
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: sqlda_common_total_size type int offset 512
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: sqlda_common_total_size type char offset 516
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: sqlda_common_total_size type numeric offset1 520
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: sqlda_common_total_size type numeric offset2 560
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: sqlda_common_total_size type double offset 568
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: sqlda_common_total_size type char offset 576
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_build_native_sqlda sqld = 5
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_execute on line 120: new sqlda was built
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_set_native_sqlda type int offset 512
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_set_native_sqlda row 0 col 0 IS NOT NULL
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_get_data on line 120: RESULT: 1 offset: -1; array: yes
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_set_native_sqlda type char offset 516
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_set_native_sqlda row 0 col 1 IS NOT NULL
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_get_data on line 120: RESULT: a offset: -1; array: yes
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_set_native_sqlda type numeric offset1 520
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_set_native_sqlda type numeric offset2 560
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_set_native_sqlda row 0 col 2 IS NOT NULL
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_set_native_sqlda type double offset 568
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_set_native_sqlda row 0 col 3 IS NOT NULL
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_get_data on line 120: RESULT: 1 offset: -1; array: yes
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_set_native_sqlda type char offset 576
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_set_native_sqlda row 0 col 4 IS NOT NULL
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_get_data on line 120: RESULT: a offset: -1; array: yes
...
...
@@ -90,40 +66,20 @@
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_execute on line 120: correctly got 1 tuples with 5 fields
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: sqlda_common_total_size type int offset 512
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: sqlda_common_total_size type char offset 516
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: sqlda_common_total_size type numeric offset1 520
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: sqlda_common_total_size type double offset 560
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: sqlda_common_total_size type char offset 568
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_build_native_sqlda sqld = 5
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_execute on line 120: new sqlda was built
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_set_native_sqlda type int offset 512
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_set_native_sqlda row 0 col 0 IS NOT NULL
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_get_data on line 120: RESULT: 2 offset: -1; array: yes
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_set_native_sqlda type char offset 516
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_set_native_sqlda row 0 col 1 IS NULL
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_set_native_sqlda type numeric offset1 520
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_set_native_sqlda row 0 col 2 IS NULL
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_set_native_sqlda type double offset 560
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_set_native_sqlda row 0 col 3 IS NULL
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_set_native_sqlda type char offset 568
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_set_native_sqlda row 0 col 4 IS NULL
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_execute on line 120: putting result (1 tuple 5 fields) into sqlda descriptor
...
...
@@ -134,48 +90,24 @@
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_execute on line 120: correctly got 1 tuples with 5 fields
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: sqlda_common_total_size type int offset 512
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: sqlda_common_total_size type char offset 516
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: sqlda_common_total_size type numeric offset1 520
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: sqlda_common_total_size type numeric offset2 560
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: sqlda_common_total_size type double offset 568
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: sqlda_common_total_size type char offset 576
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_build_native_sqlda sqld = 5
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_execute on line 120: new sqlda was built
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_set_native_sqlda type int offset 512
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_set_native_sqlda row 0 col 0 IS NOT NULL
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_get_data on line 120: RESULT: 3 offset: -1; array: yes
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_set_native_sqlda type char offset 516
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_set_native_sqlda row 0 col 1 IS NOT NULL
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_get_data on line 120: RESULT: "c" offset: -1; array: yes
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_set_native_sqlda type numeric offset1 520
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_set_native_sqlda type numeric offset2 560
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_set_native_sqlda row 0 col 2 IS NOT NULL
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_set_native_sqlda type double offset 568
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_set_native_sqlda row 0 col 3 IS NOT NULL
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_get_data on line 120: RESULT: NaN offset: -1; array: yes
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_set_native_sqlda type char offset 576
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_set_native_sqlda row 0 col 4 IS NOT NULL
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_get_data on line 120: RESULT: c offset: -1; array: yes
...
...
@@ -188,48 +120,24 @@
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_execute on line 120: correctly got 1 tuples with 5 fields
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: sqlda_common_total_size type int offset 512
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: sqlda_common_total_size type char offset 516
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: sqlda_common_total_size type numeric offset1 520
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: sqlda_common_total_size type numeric offset2 560
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: sqlda_common_total_size type double offset 568
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: sqlda_common_total_size type char offset 576
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_build_native_sqlda sqld = 5
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_execute on line 120: new sqlda was built
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_set_native_sqlda type int offset 512
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_set_native_sqlda row 0 col 0 IS NOT NULL
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_get_data on line 120: RESULT: 4 offset: -1; array: yes
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_set_native_sqlda type char offset 516
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_set_native_sqlda row 0 col 1 IS NOT NULL
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_get_data on line 120: RESULT: d offset: -1; array: yes
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_set_native_sqlda type numeric offset1 520
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_set_native_sqlda type numeric offset2 560
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_set_native_sqlda row 0 col 2 IS NOT NULL
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_set_native_sqlda type double offset 568
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_set_native_sqlda row 0 col 3 IS NOT NULL
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_get_data on line 120: RESULT: 4 offset: -1; array: yes
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_set_native_sqlda type char offset 576
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_set_native_sqlda row 0 col 4 IS NOT NULL
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_get_data on line 120: RESULT: d offset: -1; array: yes
...
...
@@ -266,182 +174,90 @@
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_execute on line 150: correctly got 4 tuples with 5 fields
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: sqlda_common_total_size type int offset 512
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: sqlda_common_total_size type char offset 516
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: sqlda_common_total_size type numeric offset1 520
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: sqlda_common_total_size type numeric offset2 560
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: sqlda_common_total_size type double offset 568
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: sqlda_common_total_size type char offset 576
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_build_native_sqlda sqld = 5
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_execute on line 150: new sqlda was built
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_set_native_sqlda type int offset 512
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_set_native_sqlda row 3 col 0 IS NOT NULL
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_get_data on line 150: RESULT: 4 offset: -1; array: yes
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_set_native_sqlda type char offset 516
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_set_native_sqlda row 3 col 1 IS NOT NULL
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_get_data on line 150: RESULT: d offset: -1; array: yes
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_set_native_sqlda type numeric offset1 520
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_set_native_sqlda type numeric offset2 560
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_set_native_sqlda row 3 col 2 IS NOT NULL
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_set_native_sqlda type double offset 568
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_set_native_sqlda row 3 col 3 IS NOT NULL
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_get_data on line 150: RESULT: 4 offset: -1; array: yes
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_set_native_sqlda type char offset 576
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_set_native_sqlda row 3 col 4 IS NOT NULL
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_get_data on line 150: RESULT: d offset: -1; array: yes
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_execute on line 150: putting result (1 tuple 5 fields) into sqlda descriptor
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: sqlda_common_total_size type int offset 512
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: sqlda_common_total_size type char offset 516
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: sqlda_common_total_size type numeric offset1 520
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: sqlda_common_total_size type numeric offset2 560
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: sqlda_common_total_size type double offset 568
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: sqlda_common_total_size type char offset 576
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_build_native_sqlda sqld = 5
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_execute on line 150: new sqlda was built
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_set_native_sqlda type int offset 512
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_set_native_sqlda row 2 col 0 IS NOT NULL
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_get_data on line 150: RESULT: 3 offset: -1; array: yes
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_set_native_sqlda type char offset 516
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_set_native_sqlda row 2 col 1 IS NOT NULL
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_get_data on line 150: RESULT: "c" offset: -1; array: yes
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_set_native_sqlda type numeric offset1 520
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_set_native_sqlda type numeric offset2 560
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_set_native_sqlda row 2 col 2 IS NOT NULL
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_set_native_sqlda type double offset 568
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_set_native_sqlda row 2 col 3 IS NOT NULL
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_get_data on line 150: RESULT: NaN offset: -1; array: yes
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_set_native_sqlda type char offset 576
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_set_native_sqlda row 2 col 4 IS NOT NULL
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_get_data on line 150: RESULT: c offset: -1; array: yes
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_execute on line 150: putting result (1 tuple 5 fields) into sqlda descriptor
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: sqlda_common_total_size type int offset 512
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: sqlda_common_total_size type char offset 516
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: sqlda_common_total_size type numeric offset1 520
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: sqlda_common_total_size type double offset 560
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: sqlda_common_total_size type char offset 568
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_build_native_sqlda sqld = 5
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_execute on line 150: new sqlda was built
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_set_native_sqlda type int offset 512
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_set_native_sqlda row 1 col 0 IS NOT NULL
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_get_data on line 150: RESULT: 2 offset: -1; array: yes
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_set_native_sqlda type char offset 516
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_set_native_sqlda row 1 col 1 IS NULL
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_set_native_sqlda type numeric offset1 520
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_set_native_sqlda row 1 col 2 IS NULL
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_set_native_sqlda type double offset 560
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_set_native_sqlda row 1 col 3 IS NULL
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_set_native_sqlda type char offset 568
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_set_native_sqlda row 1 col 4 IS NULL
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_execute on line 150: putting result (1 tuple 5 fields) into sqlda descriptor
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: sqlda_common_total_size type int offset 512
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: sqlda_common_total_size type char offset 516
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: sqlda_common_total_size type numeric offset1 520
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: sqlda_common_total_size type numeric offset2 560
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: sqlda_common_total_size type double offset 568
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: sqlda_common_total_size type char offset 576
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_build_native_sqlda sqld = 5
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_execute on line 150: new sqlda was built
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_set_native_sqlda type int offset 512
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_set_native_sqlda row 0 col 0 IS NOT NULL
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_get_data on line 150: RESULT: 1 offset: -1; array: yes
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_set_native_sqlda type char offset 516
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_set_native_sqlda row 0 col 1 IS NOT NULL
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_get_data on line 150: RESULT: a offset: -1; array: yes
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_set_native_sqlda type numeric offset1 520
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_set_native_sqlda type numeric offset2 560
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_set_native_sqlda row 0 col 2 IS NOT NULL
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_set_native_sqlda type double offset 568
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_set_native_sqlda row 0 col 3 IS NOT NULL
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_get_data on line 150: RESULT: 1 offset: -1; array: yes
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_set_native_sqlda type char offset 576
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_set_native_sqlda row 0 col 4 IS NOT NULL
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_get_data on line 150: RESULT: a offset: -1; array: yes
...
...
@@ -466,48 +282,24 @@
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_execute on line 194: correctly got 1 tuples with 5 fields
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: sqlda_common_total_size type int offset 512
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: sqlda_common_total_size type char offset 516
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: sqlda_common_total_size type numeric offset1 520
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: sqlda_common_total_size type numeric offset2 560
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: sqlda_common_total_size type double offset 568
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: sqlda_common_total_size type char offset 576
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_build_native_sqlda sqld = 5
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_execute on line 194: new sqlda was built
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_set_native_sqlda type int offset 512
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_set_native_sqlda row 0 col 0 IS NOT NULL
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_get_data on line 194: RESULT: 4 offset: -1; array: yes
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_set_native_sqlda type char offset 516
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_set_native_sqlda row 0 col 1 IS NOT NULL
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_get_data on line 194: RESULT: d offset: -1; array: yes
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_set_native_sqlda type numeric offset1 520
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_set_native_sqlda type numeric offset2 560
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_set_native_sqlda row 0 col 2 IS NOT NULL
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_set_native_sqlda type double offset 568
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_set_native_sqlda row 0 col 3 IS NOT NULL
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_get_data on line 194: RESULT: 4 offset: -1; array: yes
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_set_native_sqlda type char offset 576
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_set_native_sqlda row 0 col 4 IS NOT NULL
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_get_data on line 194: RESULT: d offset: -1; array: yes
...
...
@@ -528,48 +320,24 @@
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_execute on line 231: correctly got 1 tuples with 5 fields
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: sqlda_common_total_size type int offset 512
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: sqlda_common_total_size type char offset 516
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: sqlda_common_total_size type numeric offset1 520
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: sqlda_common_total_size type numeric offset2 560
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: sqlda_common_total_size type double offset 568
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: sqlda_common_total_size type char offset 576
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_build_native_sqlda sqld = 5
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_execute on line 231: new sqlda was built
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_set_native_sqlda type int offset 512
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_set_native_sqlda row 0 col 0 IS NOT NULL
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_get_data on line 231: RESULT: 4 offset: -1; array: yes
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_set_native_sqlda type char offset 516
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_set_native_sqlda row 0 col 1 IS NOT NULL
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_get_data on line 231: RESULT: d offset: -1; array: yes
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_set_native_sqlda type numeric offset1 520
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_set_native_sqlda type numeric offset2 560
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_set_native_sqlda row 0 col 2 IS NOT NULL
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_set_native_sqlda type double offset 568
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_set_native_sqlda row 0 col 3 IS NOT NULL
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_get_data on line 231: RESULT: 4 offset: -1; array: yes
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_set_native_sqlda type char offset 576
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_set_native_sqlda row 0 col 4 IS NOT NULL
[NO_PID]: sqlca: code: 0, state: 00000
[NO_PID]: ecpg_get_data on line 231: RESULT: d offset: -1; array: yes
...
...
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