Remove HAVE_LONG_LONG_INT
authorPeter Eisentraut <[email protected]>
Thu, 7 Nov 2019 12:30:04 +0000 (13:30 +0100)
committerPeter Eisentraut <[email protected]>
Thu, 7 Nov 2019 12:30:04 +0000 (13:30 +0100)
The presence of long long int is now implied in the requirement for
C99 and the configure check for the same.

We keep the define hard-coded in ecpg_config.h for backward
compatibility with ecpg-using user code.

Discussion: https://www.postgresql.org/message-id/flat/5cdd6a2b-b2c7-c6f6-344c-a406d5c1a254%402ndquadrant.com

14 files changed:
configure
configure.in
src/include/c.h
src/include/pg_config.h.in
src/include/pg_config.h.win32
src/interfaces/ecpg/ecpglib/data.c
src/interfaces/ecpg/ecpglib/descriptor.c
src/interfaces/ecpg/ecpglib/execute.c
src/interfaces/ecpg/ecpglib/misc.c
src/interfaces/ecpg/include/ecpg_config.h.in
src/interfaces/ecpg/preproc/ecpg.trailer
src/interfaces/ecpg/test/expected/sql-sqlda.c
src/interfaces/ecpg/test/expected/sql-sqlda.stderr
src/interfaces/ecpg/test/sql/sqlda.pgc

index 6b1c779ee3efdaff94755e067995bd3ae2987239..7312bd7a7a04ba3fffd30f8baac34717ebbee1ce 100755 (executable)
--- a/configure
+++ b/configure
 
 
 
-  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
-$as_echo_n "checking for unsigned long long int... " >&6; }
-if ${ac_cv_type_unsigned_long_long_int+:} false; then :
-  $as_echo_n "(cached) " >&6
-else
-  ac_cv_type_unsigned_long_long_int=yes
-     if test "x${ac_cv_prog_cc_c99-no}" = xno; then
-       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h.  */
-
-  /* For now, do not test the preprocessor; as of 2007 there are too many
-        implementations with broken preprocessors.  Perhaps this can
-        be revisited in 2012.  In the meantime, code should not expect
-        #if to work with literals wider than 32 bits.  */
-      /* Test literals.  */
-      long long int ll = 9223372036854775807ll;
-      long long int nll = -9223372036854775807LL;
-      unsigned long long int ull = 18446744073709551615ULL;
-      /* Test constant expressions.   */
-      typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
-                    ? 1 : -1)];
-      typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
-                    ? 1 : -1)];
-      int i = 63;
-int
-main ()
-{
-/* Test availability of runtime routines for shift and division.  */
-      long long int llmax = 9223372036854775807ll;
-      unsigned long long int ullmax = 18446744073709551615ull;
-      return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
-             | (llmax / ll) | (llmax % ll)
-             | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
-             | (ullmax / ull) | (ullmax % ull));
-  ;
-  return 0;
-}
-
-_ACEOF
-if ac_fn_c_try_link "$LINENO"; then :
-
-else
-  ac_cv_type_unsigned_long_long_int=no
-fi
-rm -f core conftest.err conftest.$ac_objext \
-    conftest$ac_exeext conftest.$ac_ext
-     fi
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
-$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
-  if test $ac_cv_type_unsigned_long_long_int = yes; then
-
-$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
-
-  fi
-
-
-
-  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
-$as_echo_n "checking for long long int... " >&6; }
-if ${ac_cv_type_long_long_int+:} false; then :
-  $as_echo_n "(cached) " >&6
-else
-  ac_cv_type_long_long_int=yes
-      if test "x${ac_cv_prog_cc_c99-no}" = xno; then
-       ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
-       if test $ac_cv_type_long_long_int = yes; then
-                                 if test "$cross_compiling" = yes; then :
-  :
-else
-  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h.  */
-#include <limits.h>
-                #ifndef LLONG_MAX
-                # define HALF \
-                         (1LL << (sizeof (long long int) * CHAR_BIT - 2))
-                # define LLONG_MAX (HALF - 1 + HALF)
-                #endif
-int
-main ()
-{
-long long int n = 1;
-                int i;
-                for (i = 0; ; i++)
-                  {
-                    long long int m = n << i;
-                    if (m >> i != n)
-                      return 1;
-                    if (LLONG_MAX / 2 < m)
-                      break;
-                  }
-                return 0;
-  ;
-  return 0;
-}
-_ACEOF
-if ac_fn_c_try_run "$LINENO"; then :
-
-else
-  ac_cv_type_long_long_int=no
-fi
-rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
-  conftest.$ac_objext conftest.beam conftest.$ac_ext
-fi
-
-       fi
-      fi
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
-$as_echo "$ac_cv_type_long_long_int" >&6; }
-  if test $ac_cv_type_long_long_int = yes; then
-
-$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
-
-  fi
-
-
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for locale_t" >&5
 $as_echo_n "checking for locale_t... " >&6; }
 if ${pgac_cv_type_locale_t+:} false; then :
index 2b9025cac3641275ea508be1449e36711ad9a783..ea83d921cb61f5212670d8d1dbbca6384d343350 100644 (file)
@@ -1473,7 +1473,6 @@ PGAC_STRUCT_SOCKADDR_STORAGE_MEMBERS
 PGAC_STRUCT_ADDRINFO
 AC_TYPE_INTPTR_T
 AC_TYPE_UINTPTR_T
-AC_TYPE_LONG_LONG_INT
 
 PGAC_TYPE_LOCALE_T
 
index d752cc07dcc96c64ab6f8313297a8b80cee5135a..16b428daa143052c01780c1e55a373efc1234cdd 100644 (file)
@@ -1203,7 +1203,6 @@ typedef union PGAlignedXLogBlock
 extern int     fdatasync(int fildes);
 #endif
 
-#ifdef HAVE_LONG_LONG_INT
 /* Older platforms may provide strto[u]ll functionality under other names */
 #if !defined(HAVE_STRTOLL) && defined(HAVE___STRTOLL)
 #define strtoll __strtoll
@@ -1232,7 +1231,6 @@ extern long long strtoll(const char *str, char **endptr, int base);
 #if defined(HAVE_STRTOULL) && !HAVE_DECL_STRTOULL
 extern unsigned long long strtoull(const char *str, char **endptr, int base);
 #endif
-#endif                                                 /* HAVE_LONG_LONG_INT */
 
 #if !defined(HAVE_MEMMOVE) && !defined(memmove)
 #define memmove(d, s, c)               bcopy(s, d, c)
index 939245db396304ae392b8758e8237dd418977eb6..2bf506033dfed39b8a57ad23b411c4744ff53a18 100644 (file)
 /* Define to 1 if `long int' works and is 64 bits. */
 #undef HAVE_LONG_INT_64
 
-/* Define to 1 if the system has the type `long long int'. */
-#undef HAVE_LONG_LONG_INT
-
 /* Define to 1 if `long long int' works and is 64 bits. */
 #undef HAVE_LONG_LONG_INT_64
 
 /* Define to 1 if you have the `unsetenv' function. */
 #undef HAVE_UNSETENV
 
-/* Define to 1 if the system has the type `unsigned long long int'. */
-#undef HAVE_UNSIGNED_LONG_LONG_INT
-
 /* Define to 1 if you have the `uselocale' function. */
 #undef HAVE_USELOCALE
 
index 36e6bdc30312e63baa1ed72f2800a4b66b87f4e5..6b67fb06308f47d0b7cd0fa95e6150e6a6dfeaf9 100644 (file)
 /* Define to 1 if `long int' works and is 64 bits. */
 /* #undef HAVE_LONG_INT_64 */
 
-/* Define to 1 if the system has the type `long long int'. */
-#define HAVE_LONG_LONG_INT 1
-
 /* Define to 1 if `long long int' works and is 64 bits. */
 #define HAVE_LONG_LONG_INT_64 1
 
index 7d2a78a60d826923999ef0a4bc568b7f3c13b28a..d3db5094cfa651483ab6c1c4bab4a178e3c2ed7e 100644 (file)
@@ -267,12 +267,10 @@ ecpg_get_data(const PGresult *results, int act_tuple, int act_field, int lineno,
                case ECPGt_unsigned_long:
                        *((long *) (ind + ind_offset * act_tuple)) = value_for_indicator;
                        break;
-#ifdef HAVE_LONG_LONG_INT
                case ECPGt_long_long:
                case ECPGt_unsigned_long_long:
                        *((long long int *) (ind + ind_offset * act_tuple)) = value_for_indicator;
                        break;
-#endif                                                 /* HAVE_LONG_LONG_INT */
                case ECPGt_NO_INDICATOR:
                        if (value_for_indicator == -1)
                        {
@@ -355,12 +353,10 @@ ecpg_get_data(const PGresult *results, int act_tuple, int act_field, int lineno,
                                                case ECPGt_unsigned_long:
                                                        *((long *) (ind + ind_offset * act_tuple)) = size;
                                                        break;
-#ifdef HAVE_LONG_LONG_INT
                                                case ECPGt_long_long:
                                                case ECPGt_unsigned_long_long:
                                                        *((long long int *) (ind + ind_offset * act_tuple)) = size;
                                                        break;
-#endif                                                 /* HAVE_LONG_LONG_INT */
                                                default:
                                                        break;
                                        }
@@ -442,7 +438,6 @@ ecpg_get_data(const PGresult *results, int act_tuple, int act_field, int lineno,
                                        }
                                        break;
 
-#ifdef HAVE_LONG_LONG_INT
 #ifdef HAVE_STRTOLL
                                case ECPGt_long_long:
                                        *((long long int *) (var + offset * act_tuple)) = strtoll(pval, &scan_length, 10);
@@ -467,7 +462,6 @@ ecpg_get_data(const PGresult *results, int act_tuple, int act_field, int lineno,
 
                                        break;
 #endif                                                 /* HAVE_STRTOULL */
-#endif                                                 /* HAVE_LONG_LONG_INT */
 
                                case ECPGt_float:
                                case ECPGt_double:
@@ -559,12 +553,10 @@ ecpg_get_data(const PGresult *results, int act_tuple, int act_field, int lineno,
                                                                case ECPGt_unsigned_long:
                                                                        *((long *) (ind + ind_offset * act_tuple)) = rcv_size;
                                                                        break;
-#ifdef HAVE_LONG_LONG_INT
                                                                case ECPGt_long_long:
                                                                case ECPGt_unsigned_long_long:
                                                                        *((long long int *) (ind + ind_offset * act_tuple)) = rcv_size;
                                                                        break;
-#endif                                                 /* HAVE_LONG_LONG_INT */
                                                                default:
                                                                        break;
                                                        }
@@ -623,12 +615,10 @@ ecpg_get_data(const PGresult *results, int act_tuple, int act_field, int lineno,
                                                                                case ECPGt_unsigned_long:
                                                                                        *((long *) (ind + ind_offset * act_tuple)) = -1;
                                                                                        break;
-#ifdef HAVE_LONG_LONG_INT
                                                                                case ECPGt_long_long:
                                                                                case ECPGt_unsigned_long_long:
                                                                                        *((long long int *) (ind + ind_offset * act_tuple)) = -1;
                                                                                        break;
-#endif                                                 /* HAVE_LONG_LONG_INT */
                                                                                default:
                                                                                        break;
                                                                        }
@@ -678,12 +668,10 @@ ecpg_get_data(const PGresult *results, int act_tuple, int act_field, int lineno,
                                                                        case ECPGt_unsigned_long:
                                                                                *((long *) (ind + ind_offset * act_tuple)) = size;
                                                                                break;
-#ifdef HAVE_LONG_LONG_INT
                                                                        case ECPGt_long_long:
                                                                        case ECPGt_unsigned_long_long:
                                                                                *((long long int *) (ind + ind_offset * act_tuple)) = size;
                                                                                break;
-#endif                                                 /* HAVE_LONG_LONG_INT */
                                                                        default:
                                                                                break;
                                                                }
@@ -723,12 +711,10 @@ ecpg_get_data(const PGresult *results, int act_tuple, int act_field, int lineno,
                                                                        case ECPGt_unsigned_long:
                                                                                *((long *) (ind + ind_offset * act_tuple)) = variable->len;
                                                                                break;
-#ifdef HAVE_LONG_LONG_INT
                                                                        case ECPGt_long_long:
                                                                        case ECPGt_unsigned_long_long:
                                                                                *((long long int *) (ind + ind_offset * act_tuple)) = variable->len;
                                                                                break;
-#endif                                                 /* HAVE_LONG_LONG_INT */
                                                                        default:
                                                                                break;
                                                                }
index ead8778ca83e821eb3c3a3d1933647e40b0fbf5c..7bd0534ef7078edea2fe433588dc1e1c2fbc3523 100644 (file)
@@ -134,14 +134,12 @@ get_int_item(int lineno, void *var, enum ECPGttype vartype, int value)
                case ECPGt_unsigned_long:
                        *(unsigned long *) var = (unsigned long) value;
                        break;
-#ifdef HAVE_LONG_LONG_INT
                case ECPGt_long_long:
                        *(long long int *) var = (long long int) value;
                        break;
                case ECPGt_unsigned_long_long:
                        *(unsigned long long int *) var = (unsigned long long int) value;
                        break;
-#endif                                                 /* HAVE_LONG_LONG_INT */
                case ECPGt_float:
                        *(float *) var = (float) value;
                        break;
@@ -179,14 +177,12 @@ set_int_item(int lineno, int *target, const void *var, enum ECPGttype vartype)
                case ECPGt_unsigned_long:
                        *target = *(const unsigned long *) var;
                        break;
-#ifdef HAVE_LONG_LONG_INT
                case ECPGt_long_long:
                        *target = *(const long long int *) var;
                        break;
                case ECPGt_unsigned_long_long:
                        *target = *(const unsigned long long int *) var;
                        break;
-#endif                                                 /* HAVE_LONG_LONG_INT */
                case ECPGt_float:
                        *target = *(const float *) var;
                        break;
index 23cc86941cf8253c078e393b77006dfc606182d7..e261cf916714d7240de10beab1aa35da1d7d5059 100644 (file)
@@ -543,13 +543,11 @@ ecpg_store_input(const int lineno, const bool force_indicator, const struct vari
                        if (*(long *) var->ind_value < 0L)
                                *tobeinserted_p = NULL;
                        break;
-#ifdef HAVE_LONG_LONG_INT
                case ECPGt_long_long:
                case ECPGt_unsigned_long_long:
                        if (*(long long int *) var->ind_value < (long long) 0)
                                *tobeinserted_p = NULL;
                        break;
-#endif                                                 /* HAVE_LONG_LONG_INT */
                case ECPGt_NO_INDICATOR:
                        if (force_indicator == false)
                        {
@@ -681,7 +679,7 @@ ecpg_store_input(const int lineno, const bool force_indicator, const struct vari
 
                                *tobeinserted_p = mallocedval;
                                break;
-#ifdef HAVE_LONG_LONG_INT
+
                        case ECPGt_long_long:
                                if (!(mallocedval = ecpg_alloc(asize * 30, lineno)))
                                        return false;
@@ -719,7 +717,7 @@ ecpg_store_input(const int lineno, const bool force_indicator, const struct vari
 
                                *tobeinserted_p = mallocedval;
                                break;
-#endif                                                 /* HAVE_LONG_LONG_INT */
+
                        case ECPGt_float:
                                if (!(mallocedval = ecpg_alloc(asize * 25, lineno)))
                                        return false;
index 647da14fce491d5c60f2c4306df778519bcd70fd..c4b2183b5dd57cab59ab783a540cedcbc5a0dce8 100644 (file)
@@ -18,7 +18,6 @@
 #include "pg_config_paths.h"
 #include "sqlca.h"
 
-#ifdef HAVE_LONG_LONG_INT
 #ifndef LONG_LONG_MIN
 #ifdef LLONG_MIN
 #define LONG_LONG_MIN LLONG_MIN
@@ -26,7 +25,6 @@
 #define LONG_LONG_MIN LONGLONG_MIN
 #endif                                                 /* LLONG_MIN */
 #endif                                                 /* LONG_LONG_MIN */
-#endif                                                 /* HAVE_LONG_LONG_INT */
 
 bool           ecpg_internal_regression_mode = false;
 
@@ -340,12 +338,10 @@ ECPGset_noind_null(enum ECPGttype type, void *ptr)
                case ECPGt_date:
                        *((long *) ptr) = LONG_MIN;
                        break;
-#ifdef HAVE_LONG_LONG_INT
                case ECPGt_long_long:
                case ECPGt_unsigned_long_long:
                        *((long long *) ptr) = LONG_LONG_MIN;
                        break;
-#endif                                                 /* HAVE_LONG_LONG_INT */
                case ECPGt_float:
                        memset((char *) ptr, 0xff, sizeof(float));
                        break;
@@ -415,13 +411,11 @@ ECPGis_noind_null(enum ECPGttype type, const void *ptr)
                        if (*((const long *) ptr) == LONG_MIN)
                                return true;
                        break;
-#ifdef HAVE_LONG_LONG_INT
                case ECPGt_long_long:
                case ECPGt_unsigned_long_long:
                        if (*((const long long *) ptr) == LONG_LONG_MIN)
                                return true;
                        break;
-#endif                                                 /* HAVE_LONG_LONG_INT */
                case ECPGt_float:
                        return _check(ptr, sizeof(float));
                        break;
index 736fb08dba3c162a70e8473fb1df9892be40af5e..c18556130efce7c1f1ece9c8b8e0b3b2066ca9a9 100644 (file)
@@ -5,7 +5,7 @@
 #undef HAVE_LONG_INT_64
 
 /* Define to 1 if the system has the type `long long int'. */
-#undef HAVE_LONG_LONG_INT
+#define HAVE_LONG_LONG_INT 1
 
 /* Define to 1 if `long long int' works and is 64 bits. */
 #undef HAVE_LONG_LONG_INT_64
index 1122f56a14d05c4631ed1458122f4e8c873bb29c..f58b41e67510695d547cc68c33ba725883a9c41a 100644 (file)
@@ -796,22 +796,8 @@ unsigned_type: SQL_UNSIGNED SQL_SHORT              { $$ = ECPGt_unsigned_short; }
                | SQL_UNSIGNED INT_P                            { $$ = ECPGt_unsigned_int; }
                | SQL_UNSIGNED SQL_LONG                         { $$ = ECPGt_unsigned_long; }
                | SQL_UNSIGNED SQL_LONG INT_P           { $$ = ECPGt_unsigned_long; }
-               | SQL_UNSIGNED SQL_LONG SQL_LONG
-               {
-#ifdef HAVE_LONG_LONG_INT
-                       $$ = ECPGt_unsigned_long_long;
-#else
-                       $$ = ECPGt_unsigned_long;
-#endif
-               }
-               | SQL_UNSIGNED SQL_LONG SQL_LONG INT_P
-               {
-#ifdef HAVE_LONG_LONG_INT
-                       $$ = ECPGt_unsigned_long_long;
-#else
-                       $$ = ECPGt_unsigned_long;
-#endif
-               }
+               | SQL_UNSIGNED SQL_LONG SQL_LONG        { $$ = ECPGt_unsigned_long_long; }
+               | SQL_UNSIGNED SQL_LONG SQL_LONG INT_P { $$ = ECPGt_unsigned_long_long; }
                | SQL_UNSIGNED CHAR_P                   { $$ = ECPGt_unsigned_char; }
                ;
 
@@ -820,22 +806,8 @@ signed_type: SQL_SHORT                             { $$ = ECPGt_short; }
                | INT_P                                         { $$ = ECPGt_int; }
                | SQL_LONG                                      { $$ = ECPGt_long; }
                | SQL_LONG INT_P                        { $$ = ECPGt_long; }
-               | SQL_LONG SQL_LONG
-               {
-#ifdef HAVE_LONG_LONG_INT
-                       $$ = ECPGt_long_long;
-#else
-                       $$ = ECPGt_long;
-#endif
-               }
-               | SQL_LONG SQL_LONG INT_P
-               {
-#ifdef HAVE_LONG_LONG_INT
-                       $$ = ECPGt_long_long;
-#else
-                       $$ = ECPGt_long;
-#endif
-               }
+               | SQL_LONG SQL_LONG                     { $$ = ECPGt_long_long; }
+               | SQL_LONG SQL_LONG INT_P       { $$ = ECPGt_long_long; }
                | SQL_BOOL                                      { $$ = ECPGt_bool; }
                | CHAR_P                                        { $$ = ECPGt_char; }
                | DOUBLE_P                                      { $$ = ECPGt_double; }
index dae047d00763663392f3bb7e1193cf86dfc9d88b..d474bd38bf604c7948838b5b296ed6ccdf482604 100644 (file)
@@ -154,7 +154,6 @@ dump_sqlda(sqlda_t *sqlda)
                case ECPGt_long:
                        printf("name sqlda descriptor: '%s' value %ld\n", sqlda->sqlvar[i].sqlname.data, *(long int *)sqlda->sqlvar[i].sqldata);
                        break;
-#ifdef HAVE_LONG_LONG_INT
                case ECPGt_long_long:
                        printf(
 #ifdef _WIN32
@@ -164,7 +163,6 @@ dump_sqlda(sqlda_t *sqlda)
 #endif
                                sqlda->sqlvar[i].sqlname.data, *(long long int *)sqlda->sqlvar[i].sqldata);
                        break;
-#endif
                case ECPGt_double:
                        printf("name sqlda descriptor: '%s' value %f\n", sqlda->sqlvar[i].sqlname.data, *(double *)sqlda->sqlvar[i].sqldata);
                        break;
@@ -190,19 +188,19 @@ main (void)
                
                
 
-#line 73 "sqlda.pgc"
+#line 71 "sqlda.pgc"
  char * stmt1 = "SELECT * FROM t1" ;
  
-#line 74 "sqlda.pgc"
+#line 72 "sqlda.pgc"
  char * stmt2 = "SELECT * FROM t1 WHERE id = ?" ;
  
-#line 75 "sqlda.pgc"
+#line 73 "sqlda.pgc"
  int rec ;
  
-#line 76 "sqlda.pgc"
+#line 74 "sqlda.pgc"
  int id ;
 /* exec sql end declare section */
-#line 77 "sqlda.pgc"
+#line 75 "sqlda.pgc"
 
 
        char msg[128];
@@ -211,42 +209,42 @@ main (void)
 
        strcpy(msg, "connect");
        { ECPGconnect(__LINE__, 0, "ecpg1_regression" , NULL, NULL , "regress1", 0); 
-#line 84 "sqlda.pgc"
+#line 82 "sqlda.pgc"
 
 if (sqlca.sqlcode < 0) exit (1);}
-#line 84 "sqlda.pgc"
+#line 82 "sqlda.pgc"
 
 
        strcpy(msg, "set");
        { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "set datestyle to iso", ECPGt_EOIT, ECPGt_EORT);
-#line 87 "sqlda.pgc"
+#line 85 "sqlda.pgc"
 
 if (sqlca.sqlcode < 0) exit (1);}
-#line 87 "sqlda.pgc"
+#line 85 "sqlda.pgc"
 
 
        strcpy(msg, "create");
        { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "create table t1 ( id integer , t text , d1 numeric , d2 float8 , c char ( 10 ) , big bigint )", ECPGt_EOIT, ECPGt_EORT);
-#line 97 "sqlda.pgc"
+#line 95 "sqlda.pgc"
 
 if (sqlca.sqlcode < 0) exit (1);}
-#line 97 "sqlda.pgc"
+#line 95 "sqlda.pgc"
 
 
        strcpy(msg, "insert");
        { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "insert into t1 values ( 1 , 'a' , 1.0 , 1 , 'a' , 1111111111111111111 ) , ( 2 , null , null , null , null , null ) , ( 3 , 'c' , 0.0 , 3 , 'c' , 3333333333333333333 ) , ( 4 , 'd' , 'NaN' , 4 , 'd' , 4444444444444444444 ) , ( 5 , 'e' , 0.001234 , 5 , 'e' , 5555555555555555555 )", ECPGt_EOIT, ECPGt_EORT);
-#line 105 "sqlda.pgc"
+#line 103 "sqlda.pgc"
 
 if (sqlca.sqlcode < 0) exit (1);}
-#line 105 "sqlda.pgc"
+#line 103 "sqlda.pgc"
 
 
        strcpy(msg, "commit");
        { ECPGtrans(__LINE__, NULL, "commit");
-#line 108 "sqlda.pgc"
+#line 106 "sqlda.pgc"
 
 if (sqlca.sqlcode < 0) exit (1);}
-#line 108 "sqlda.pgc"
+#line 106 "sqlda.pgc"
 
 
        /* SQLDA test for getting all records from a table */
@@ -255,29 +253,29 @@ if (sqlca.sqlcode < 0) exit (1);}
 
        strcpy(msg, "prepare");
        { ECPGprepare(__LINE__, NULL, 0, "st_id1", stmt1);
-#line 115 "sqlda.pgc"
+#line 113 "sqlda.pgc"
 
 if (sqlca.sqlcode < 0) exit (1);}
-#line 115 "sqlda.pgc"
+#line 113 "sqlda.pgc"
 
 
        strcpy(msg, "declare");
        /* declare mycur1 cursor for $1 */
-#line 118 "sqlda.pgc"
+#line 116 "sqlda.pgc"
 
 
        strcpy(msg, "open");
        { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "declare mycur1 cursor for $1", 
        ECPGt_char_variable,(ECPGprepared_statement(NULL, "st_id1", __LINE__)),(long)1,(long)1,(1)*sizeof(char), 
        ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EOIT, ECPGt_EORT);
-#line 121 "sqlda.pgc"
+#line 119 "sqlda.pgc"
 
 if (sqlca.sqlcode < 0) exit (1);}
-#line 121 "sqlda.pgc"
+#line 119 "sqlda.pgc"
 
 
        /* exec sql whenever not found  break ; */
-#line 123 "sqlda.pgc"
+#line 121 "sqlda.pgc"
 
 
        rec = 0;
@@ -287,13 +285,13 @@ if (sqlca.sqlcode < 0) exit (1);}
                { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "fetch 1 from mycur1", ECPGt_EOIT, 
        ECPGt_sqlda, &outp_sqlda, 0L, 0L, 0L, 
        ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EORT);
-#line 129 "sqlda.pgc"
+#line 127 "sqlda.pgc"
 
 if (sqlca.sqlcode == ECPG_NOT_FOUND) break;
-#line 129 "sqlda.pgc"
+#line 127 "sqlda.pgc"
 
 if (sqlca.sqlcode < 0) exit (1);}
-#line 129 "sqlda.pgc"
+#line 127 "sqlda.pgc"
 
 
                printf("FETCH RECORD %d\n", ++rec);
@@ -301,23 +299,23 @@ if (sqlca.sqlcode < 0) exit (1);}
        }
 
        /* exec sql whenever not found  continue ; */
-#line 135 "sqlda.pgc"
+#line 133 "sqlda.pgc"
 
 
        strcpy(msg, "close");
        { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "close mycur1", ECPGt_EOIT, ECPGt_EORT);
-#line 138 "sqlda.pgc"
+#line 136 "sqlda.pgc"
 
 if (sqlca.sqlcode < 0) exit (1);}
-#line 138 "sqlda.pgc"
+#line 136 "sqlda.pgc"
 
 
        strcpy(msg, "deallocate");
        { ECPGdeallocate(__LINE__, 0, NULL, "st_id1");
-#line 141 "sqlda.pgc"
+#line 139 "sqlda.pgc"
 
 if (sqlca.sqlcode < 0) exit (1);}
-#line 141 "sqlda.pgc"
+#line 139 "sqlda.pgc"
 
 
        free(outp_sqlda);
@@ -328,35 +326,35 @@ if (sqlca.sqlcode < 0) exit (1);}
 
        strcpy(msg, "prepare");
        { ECPGprepare(__LINE__, NULL, 0, "st_id2", stmt1);
-#line 150 "sqlda.pgc"
+#line 148 "sqlda.pgc"
 
 if (sqlca.sqlcode < 0) exit (1);}
-#line 150 "sqlda.pgc"
+#line 148 "sqlda.pgc"
 
 
        strcpy(msg, "declare");
        /* declare mycur2 cursor for $1 */
-#line 153 "sqlda.pgc"
+#line 151 "sqlda.pgc"
 
 
        strcpy(msg, "open");
        { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "declare mycur2 cursor for $1", 
        ECPGt_char_variable,(ECPGprepared_statement(NULL, "st_id2", __LINE__)),(long)1,(long)1,(1)*sizeof(char), 
        ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EOIT, ECPGt_EORT);
-#line 156 "sqlda.pgc"
+#line 154 "sqlda.pgc"
 
 if (sqlca.sqlcode < 0) exit (1);}
-#line 156 "sqlda.pgc"
+#line 154 "sqlda.pgc"
 
 
        strcpy(msg, "fetch");
        { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "fetch all from mycur2", ECPGt_EOIT, 
        ECPGt_sqlda, &outp_sqlda, 0L, 0L, 0L, 
        ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EORT);
-#line 159 "sqlda.pgc"
+#line 157 "sqlda.pgc"
 
 if (sqlca.sqlcode < 0) exit (1);}
-#line 159 "sqlda.pgc"
+#line 157 "sqlda.pgc"
 
 
        outp_sqlda1 = outp_sqlda;
@@ -374,18 +372,18 @@ if (sqlca.sqlcode < 0) exit (1);}
 
        strcpy(msg, "close");
        { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "close mycur2", ECPGt_EOIT, ECPGt_EORT);
-#line 175 "sqlda.pgc"
+#line 173 "sqlda.pgc"
 
 if (sqlca.sqlcode < 0) exit (1);}
-#line 175 "sqlda.pgc"
+#line 173 "sqlda.pgc"
 
 
        strcpy(msg, "deallocate");
        { ECPGdeallocate(__LINE__, 0, NULL, "st_id2");
-#line 178 "sqlda.pgc"
+#line 176 "sqlda.pgc"
 
 if (sqlca.sqlcode < 0) exit (1);}
-#line 178 "sqlda.pgc"
+#line 176 "sqlda.pgc"
 
 
        /* SQLDA test for getting one record using an input descriptor */
@@ -409,10 +407,10 @@ if (sqlca.sqlcode < 0) exit (1);}
 
        strcpy(msg, "prepare");
        { ECPGprepare(__LINE__, NULL, 0, "st_id3", stmt2);
-#line 200 "sqlda.pgc"
+#line 198 "sqlda.pgc"
 
 if (sqlca.sqlcode < 0) exit (1);}
-#line 200 "sqlda.pgc"
+#line 198 "sqlda.pgc"
 
 
        strcpy(msg, "execute");
@@ -421,20 +419,20 @@ if (sqlca.sqlcode < 0) exit (1);}
        ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EOIT, 
        ECPGt_sqlda, &outp_sqlda, 0L, 0L, 0L, 
        ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EORT);
-#line 203 "sqlda.pgc"
+#line 201 "sqlda.pgc"
 
 if (sqlca.sqlcode < 0) exit (1);}
-#line 203 "sqlda.pgc"
+#line 201 "sqlda.pgc"
 
 
        dump_sqlda(outp_sqlda);
 
        strcpy(msg, "deallocate");
        { ECPGdeallocate(__LINE__, 0, NULL, "st_id3");
-#line 208 "sqlda.pgc"
+#line 206 "sqlda.pgc"
 
 if (sqlca.sqlcode < 0) exit (1);}
-#line 208 "sqlda.pgc"
+#line 206 "sqlda.pgc"
 
 
        free(inp_sqlda);
@@ -445,10 +443,10 @@ if (sqlca.sqlcode < 0) exit (1);}
         */
 
        { ECPGconnect(__LINE__, 0, "ecpg1_regression" , NULL, NULL , "con2", 0); 
-#line 217 "sqlda.pgc"
+#line 215 "sqlda.pgc"
 
 if (sqlca.sqlcode < 0) exit (1);}
-#line 217 "sqlda.pgc"
+#line 215 "sqlda.pgc"
 
 
        /*
@@ -470,10 +468,10 @@ if (sqlca.sqlcode < 0) exit (1);}
 
        strcpy(msg, "prepare");
        { ECPGprepare(__LINE__, "con2", 0, "st_id4", stmt2);
-#line 237 "sqlda.pgc"
+#line 235 "sqlda.pgc"
 
 if (sqlca.sqlcode < 0) exit (1);}
-#line 237 "sqlda.pgc"
+#line 235 "sqlda.pgc"
 
 
        strcpy(msg, "execute");
@@ -482,28 +480,28 @@ if (sqlca.sqlcode < 0) exit (1);}
        ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EOIT, 
        ECPGt_sqlda, &outp_sqlda, 0L, 0L, 0L, 
        ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EORT);
-#line 240 "sqlda.pgc"
+#line 238 "sqlda.pgc"
 
 if (sqlca.sqlcode < 0) exit (1);}
-#line 240 "sqlda.pgc"
+#line 238 "sqlda.pgc"
 
 
        dump_sqlda(outp_sqlda);
 
        strcpy(msg, "commit");
        { ECPGtrans(__LINE__, "con2", "commit");
-#line 245 "sqlda.pgc"
+#line 243 "sqlda.pgc"
 
 if (sqlca.sqlcode < 0) exit (1);}
-#line 245 "sqlda.pgc"
+#line 243 "sqlda.pgc"
 
 
        strcpy(msg, "deallocate");
        { ECPGdeallocate(__LINE__, 0, NULL, "st_id4");
-#line 248 "sqlda.pgc"
+#line 246 "sqlda.pgc"
 
 if (sqlca.sqlcode < 0) exit (1);}
-#line 248 "sqlda.pgc"
+#line 246 "sqlda.pgc"
 
 
        free(inp_sqlda);
@@ -511,36 +509,36 @@ if (sqlca.sqlcode < 0) exit (1);}
 
        strcpy(msg, "disconnect");
        { ECPGdisconnect(__LINE__, "con2");
-#line 254 "sqlda.pgc"
+#line 252 "sqlda.pgc"
 
 if (sqlca.sqlcode < 0) exit (1);}
-#line 254 "sqlda.pgc"
+#line 252 "sqlda.pgc"
 
 
        /* End test */
 
        strcpy(msg, "drop");
        { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "drop table t1", ECPGt_EOIT, ECPGt_EORT);
-#line 259 "sqlda.pgc"
+#line 257 "sqlda.pgc"
 
 if (sqlca.sqlcode < 0) exit (1);}
-#line 259 "sqlda.pgc"
+#line 257 "sqlda.pgc"
 
 
        strcpy(msg, "commit");
        { ECPGtrans(__LINE__, NULL, "commit");
-#line 262 "sqlda.pgc"
+#line 260 "sqlda.pgc"
 
 if (sqlca.sqlcode < 0) exit (1);}
-#line 262 "sqlda.pgc"
+#line 260 "sqlda.pgc"
 
 
        strcpy(msg, "disconnect");
        { ECPGdisconnect(__LINE__, "CURRENT");
-#line 265 "sqlda.pgc"
+#line 263 "sqlda.pgc"
 
 if (sqlca.sqlcode < 0) exit (1);}
-#line 265 "sqlda.pgc"
+#line 263 "sqlda.pgc"
 
 
        return 0;
index 9c3e4849c947420ab2faba4362247bdd53df7187..dfe6b13055f946ddf8de72035af98e02f57824a3 100644 (file)
 [NO_PID]: sqlca: code: 0, state: 00000
 [NO_PID]: ECPGconnect: opening database ecpg1_regression on <DEFAULT> port <DEFAULT>  
 [NO_PID]: sqlca: code: 0, state: 00000
-[NO_PID]: ecpg_execute on line 87: query: set datestyle to iso; with 0 parameter(s) on connection regress1
+[NO_PID]: ecpg_execute on line 85: query: set datestyle to iso; with 0 parameter(s) on connection regress1
 [NO_PID]: sqlca: code: 0, state: 00000
-[NO_PID]: ecpg_execute on line 87: using PQexec
+[NO_PID]: ecpg_execute on line 85: using PQexec
 [NO_PID]: sqlca: code: 0, state: 00000
-[NO_PID]: ecpg_process_output on line 87: OK: SET
+[NO_PID]: ecpg_process_output on line 85: OK: SET
 [NO_PID]: sqlca: code: 0, state: 00000
-[NO_PID]: ecpg_execute on line 90: query: create table t1 ( id integer , t text , d1 numeric , d2 float8 , c char ( 10 ) , big bigint ); with 0 parameter(s) on connection regress1
+[NO_PID]: ecpg_execute on line 88: query: create table t1 ( id integer , t text , d1 numeric , d2 float8 , c char ( 10 ) , big bigint ); with 0 parameter(s) on connection regress1
 [NO_PID]: sqlca: code: 0, state: 00000
-[NO_PID]: ecpg_execute on line 90: using PQexec
+[NO_PID]: ecpg_execute on line 88: using PQexec
 [NO_PID]: sqlca: code: 0, state: 00000
-[NO_PID]: ecpg_process_output on line 90: OK: CREATE TABLE
+[NO_PID]: ecpg_process_output on line 88: OK: CREATE TABLE
 [NO_PID]: sqlca: code: 0, state: 00000
-[NO_PID]: ecpg_execute on line 100: query: insert into t1 values ( 1 , 'a' , 1.0 , 1 , 'a' , 1111111111111111111 ) , ( 2 , null , null , null , null , null ) , ( 3 , 'c' , 0.0 , 3 , 'c' , 3333333333333333333 ) , ( 4 , 'd' , 'NaN' , 4 , 'd' , 4444444444444444444 ) , ( 5 , 'e' , 0.001234 , 5 , 'e' , 5555555555555555555 ); with 0 parameter(s) on connection regress1
+[NO_PID]: ecpg_execute on line 98: query: insert into t1 values ( 1 , 'a' , 1.0 , 1 , 'a' , 1111111111111111111 ) , ( 2 , null , null , null , null , null ) , ( 3 , 'c' , 0.0 , 3 , 'c' , 3333333333333333333 ) , ( 4 , 'd' , 'NaN' , 4 , 'd' , 4444444444444444444 ) , ( 5 , 'e' , 0.001234 , 5 , 'e' , 5555555555555555555 ); with 0 parameter(s) on connection regress1
 [NO_PID]: sqlca: code: 0, state: 00000
-[NO_PID]: ecpg_execute on line 100: using PQexec
+[NO_PID]: ecpg_execute on line 98: using PQexec
 [NO_PID]: sqlca: code: 0, state: 00000
-[NO_PID]: ecpg_process_output on line 100: OK: INSERT 0 5
+[NO_PID]: ecpg_process_output on line 98: OK: INSERT 0 5
 [NO_PID]: sqlca: code: 0, state: 00000
-[NO_PID]: ECPGtrans on line 108: action "commit"; connection "regress1"
+[NO_PID]: ECPGtrans on line 106: action "commit"; connection "regress1"
 [NO_PID]: sqlca: code: 0, state: 00000
-[NO_PID]: prepare_common on line 115: name st_id1; query: "SELECT * FROM t1"
+[NO_PID]: prepare_common on line 113: name st_id1; query: "SELECT * FROM t1"
 [NO_PID]: sqlca: code: 0, state: 00000
-[NO_PID]: ecpg_execute on line 121: query: declare mycur1 cursor for SELECT * FROM t1; with 0 parameter(s) on connection regress1
+[NO_PID]: ecpg_execute on line 119: query: declare mycur1 cursor for SELECT * FROM t1; with 0 parameter(s) on connection regress1
 [NO_PID]: sqlca: code: 0, state: 00000
-[NO_PID]: ecpg_execute on line 121: using PQexec
+[NO_PID]: ecpg_execute on line 119: using PQexec
 [NO_PID]: sqlca: code: 0, state: 00000
-[NO_PID]: ecpg_process_output on line 121: OK: DECLARE CURSOR
+[NO_PID]: ecpg_process_output on line 119: OK: DECLARE CURSOR
 [NO_PID]: sqlca: code: 0, state: 00000
-[NO_PID]: ecpg_execute on line 129: query: fetch 1 from mycur1; with 0 parameter(s) on connection regress1
+[NO_PID]: ecpg_execute on line 127: query: fetch 1 from mycur1; with 0 parameter(s) on connection regress1
 [NO_PID]: sqlca: code: 0, state: 00000
-[NO_PID]: ecpg_execute on line 129: using PQexec
+[NO_PID]: ecpg_execute on line 127: using PQexec
 [NO_PID]: sqlca: code: 0, state: 00000
-[NO_PID]: ecpg_process_output on line 129: correctly got 1 tuples with 6 fields
+[NO_PID]: ecpg_process_output on line 127: correctly got 1 tuples with 6 fields
 [NO_PID]: sqlca: code: 0, state: 00000
-[NO_PID]: ecpg_build_native_sqlda on line 129 sqld = 6
+[NO_PID]: ecpg_build_native_sqlda on line 127 sqld = 6
 [NO_PID]: sqlca: code: 0, state: 00000
-[NO_PID]: ecpg_process_output on line 129: new sqlda was built
+[NO_PID]: ecpg_process_output on line 127: new sqlda was built
 [NO_PID]: sqlca: code: 0, state: 00000
-[NO_PID]: ecpg_set_native_sqlda on line 129 row 0 col 0 IS NOT NULL
+[NO_PID]: ecpg_set_native_sqlda on line 127 row 0 col 0 IS NOT NULL
 [NO_PID]: sqlca: code: 0, state: 00000
-[NO_PID]: ecpg_get_data on line 129: RESULT: 1 offset: -1; array: no
+[NO_PID]: ecpg_get_data on line 127: RESULT: 1 offset: -1; array: no
 [NO_PID]: sqlca: code: 0, state: 00000
-[NO_PID]: ecpg_set_native_sqlda on line 129 row 0 col 1 IS NOT NULL
+[NO_PID]: ecpg_set_native_sqlda on line 127 row 0 col 1 IS NOT NULL
 [NO_PID]: sqlca: code: 0, state: 00000
-[NO_PID]: ecpg_get_data on line 129: RESULT: a offset: -1; array: no
+[NO_PID]: ecpg_get_data on line 127: RESULT: a offset: -1; array: no
 [NO_PID]: sqlca: code: 0, state: 00000
-[NO_PID]: ecpg_set_native_sqlda on line 129 row 0 col 2 IS NOT NULL
+[NO_PID]: ecpg_set_native_sqlda on line 127 row 0 col 2 IS NOT NULL
 [NO_PID]: sqlca: code: 0, state: 00000
-[NO_PID]: ecpg_set_native_sqlda on line 129 row 0 col 3 IS NOT NULL
+[NO_PID]: ecpg_set_native_sqlda on line 127 row 0 col 3 IS NOT NULL
 [NO_PID]: sqlca: code: 0, state: 00000
-[NO_PID]: ecpg_get_data on line 129: RESULT: 1 offset: -1; array: no
+[NO_PID]: ecpg_get_data on line 127: RESULT: 1 offset: -1; array: no
 [NO_PID]: sqlca: code: 0, state: 00000
-[NO_PID]: ecpg_set_native_sqlda on line 129 row 0 col 4 IS NOT NULL
+[NO_PID]: ecpg_set_native_sqlda on line 127 row 0 col 4 IS NOT NULL
 [NO_PID]: sqlca: code: 0, state: 00000
-[NO_PID]: ecpg_get_data on line 129: RESULT: a          offset: -1; array: no
+[NO_PID]: ecpg_get_data on line 127: RESULT: a          offset: -1; array: no
 [NO_PID]: sqlca: code: 0, state: 00000
-[NO_PID]: ecpg_set_native_sqlda on line 129 row 0 col 5 IS NOT NULL
+[NO_PID]: ecpg_set_native_sqlda on line 127 row 0 col 5 IS NOT NULL
 [NO_PID]: sqlca: code: 0, state: 00000
-[NO_PID]: ecpg_get_data on line 129: RESULT: 1111111111111111111 offset: -1; array: no
+[NO_PID]: ecpg_get_data on line 127: RESULT: 1111111111111111111 offset: -1; array: no
 [NO_PID]: sqlca: code: 0, state: 00000
-[NO_PID]: ecpg_process_output on line 129: putting result (1 tuple 6 fields) into sqlda descriptor
+[NO_PID]: ecpg_process_output on line 127: putting result (1 tuple 6 fields) into sqlda descriptor
 [NO_PID]: sqlca: code: 0, state: 00000
-[NO_PID]: ecpg_execute on line 129: query: fetch 1 from mycur1; with 0 parameter(s) on connection regress1
+[NO_PID]: ecpg_execute on line 127: query: fetch 1 from mycur1; with 0 parameter(s) on connection regress1
 [NO_PID]: sqlca: code: 0, state: 00000
-[NO_PID]: ecpg_execute on line 129: using PQexec
+[NO_PID]: ecpg_execute on line 127: using PQexec
 [NO_PID]: sqlca: code: 0, state: 00000
-[NO_PID]: ecpg_process_output on line 129: correctly got 1 tuples with 6 fields
+[NO_PID]: ecpg_process_output on line 127: correctly got 1 tuples with 6 fields
 [NO_PID]: sqlca: code: 0, state: 00000
-[NO_PID]: ecpg_build_native_sqlda on line 129 sqld = 6
+[NO_PID]: ecpg_build_native_sqlda on line 127 sqld = 6
 [NO_PID]: sqlca: code: 0, state: 00000
-[NO_PID]: ecpg_process_output on line 129: new sqlda was built
+[NO_PID]: ecpg_process_output on line 127: new sqlda was built
 [NO_PID]: sqlca: code: 0, state: 00000
-[NO_PID]: ecpg_set_native_sqlda on line 129 row 0 col 0 IS NOT NULL
+[NO_PID]: ecpg_set_native_sqlda on line 127 row 0 col 0 IS NOT NULL
 [NO_PID]: sqlca: code: 0, state: 00000
-[NO_PID]: ecpg_get_data on line 129: RESULT: 2 offset: -1; array: no
+[NO_PID]: ecpg_get_data on line 127: RESULT: 2 offset: -1; array: no
 [NO_PID]: sqlca: code: 0, state: 00000
-[NO_PID]: ecpg_set_native_sqlda on line 129 row 0 col 1 IS NULL
+[NO_PID]: ecpg_set_native_sqlda on line 127 row 0 col 1 IS NULL
 [NO_PID]: sqlca: code: 0, state: 00000
-[NO_PID]: ecpg_set_native_sqlda on line 129 row 0 col 2 IS NULL
+[NO_PID]: ecpg_set_native_sqlda on line 127 row 0 col 2 IS NULL
 [NO_PID]: sqlca: code: 0, state: 00000
-[NO_PID]: ecpg_set_native_sqlda on line 129 row 0 col 3 IS NULL
+[NO_PID]: ecpg_set_native_sqlda on line 127 row 0 col 3 IS NULL
 [NO_PID]: sqlca: code: 0, state: 00000
-[NO_PID]: ecpg_set_native_sqlda on line 129 row 0 col 4 IS NULL
+[NO_PID]: ecpg_set_native_sqlda on line 127 row 0 col 4 IS NULL
 [NO_PID]: sqlca: code: 0, state: 00000
-[NO_PID]: ecpg_set_native_sqlda on line 129 row 0 col 5 IS NULL
+[NO_PID]: ecpg_set_native_sqlda on line 127 row 0 col 5 IS NULL
 [NO_PID]: sqlca: code: 0, state: 00000
-[NO_PID]: ecpg_process_output on line 129: putting result (1 tuple 6 fields) into sqlda descriptor
+[NO_PID]: ecpg_process_output on line 127: putting result (1 tuple 6 fields) into sqlda descriptor
 [NO_PID]: sqlca: code: 0, state: 00000
-[NO_PID]: ecpg_execute on line 129: query: fetch 1 from mycur1; with 0 parameter(s) on connection regress1
+[NO_PID]: ecpg_execute on line 127: query: fetch 1 from mycur1; with 0 parameter(s) on connection regress1
 [NO_PID]: sqlca: code: 0, state: 00000
-[NO_PID]: ecpg_execute on line 129: using PQexec
+[NO_PID]: ecpg_execute on line 127: using PQexec
 [NO_PID]: sqlca: code: 0, state: 00000
-[NO_PID]: ecpg_process_output on line 129: correctly got 1 tuples with 6 fields
+[NO_PID]: ecpg_process_output on line 127: correctly got 1 tuples with 6 fields
 [NO_PID]: sqlca: code: 0, state: 00000
-[NO_PID]: ecpg_build_native_sqlda on line 129 sqld = 6
+[NO_PID]: ecpg_build_native_sqlda on line 127 sqld = 6
 [NO_PID]: sqlca: code: 0, state: 00000
-[NO_PID]: ecpg_process_output on line 129: new sqlda was built
+[NO_PID]: ecpg_process_output on line 127: new sqlda was built
 [NO_PID]: sqlca: code: 0, state: 00000
-[NO_PID]: ecpg_set_native_sqlda on line 129 row 0 col 0 IS NOT NULL
+[NO_PID]: ecpg_set_native_sqlda on line 127 row 0 col 0 IS NOT NULL
 [NO_PID]: sqlca: code: 0, state: 00000
-[NO_PID]: ecpg_get_data on line 129: RESULT: 3 offset: -1; array: no
+[NO_PID]: ecpg_get_data on line 127: RESULT: 3 offset: -1; array: no
 [NO_PID]: sqlca: code: 0, state: 00000
-[NO_PID]: ecpg_set_native_sqlda on line 129 row 0 col 1 IS NOT NULL
+[NO_PID]: ecpg_set_native_sqlda on line 127 row 0 col 1 IS NOT NULL
 [NO_PID]: sqlca: code: 0, state: 00000
-[NO_PID]: ecpg_get_data on line 129: RESULT: c offset: -1; array: no
+[NO_PID]: ecpg_get_data on line 127: RESULT: c offset: -1; array: no
 [NO_PID]: sqlca: code: 0, state: 00000
-[NO_PID]: ecpg_set_native_sqlda on line 129 row 0 col 2 IS NOT NULL
+[NO_PID]: ecpg_set_native_sqlda on line 127 row 0 col 2 IS NOT NULL
 [NO_PID]: sqlca: code: 0, state: 00000
-[NO_PID]: ecpg_set_native_sqlda on line 129 row 0 col 3 IS NOT NULL
+[NO_PID]: ecpg_set_native_sqlda on line 127 row 0 col 3 IS NOT NULL
 [NO_PID]: sqlca: code: 0, state: 00000
-[NO_PID]: ecpg_get_data on line 129: RESULT: 3 offset: -1; array: no
+[NO_PID]: ecpg_get_data on line 127: RESULT: 3 offset: -1; array: no
 [NO_PID]: sqlca: code: 0, state: 00000
-[NO_PID]: ecpg_set_native_sqlda on line 129 row 0 col 4 IS NOT NULL
+[NO_PID]: ecpg_set_native_sqlda on line 127 row 0 col 4 IS NOT NULL
 [NO_PID]: sqlca: code: 0, state: 00000
-[NO_PID]: ecpg_get_data on line 129: RESULT: c          offset: -1; array: no
+[NO_PID]: ecpg_get_data on line 127: RESULT: c          offset: -1; array: no
 [NO_PID]: sqlca: code: 0, state: 00000
-[NO_PID]: ecpg_set_native_sqlda on line 129 row 0 col 5 IS NOT NULL
+[NO_PID]: ecpg_set_native_sqlda on line 127 row 0 col 5 IS NOT NULL
 [NO_PID]: sqlca: code: 0, state: 00000
-[NO_PID]: ecpg_get_data on line 129: RESULT: 3333333333333333333 offset: -1; array: no
+[NO_PID]: ecpg_get_data on line 127: RESULT: 3333333333333333333 offset: -1; array: no
 [NO_PID]: sqlca: code: 0, state: 00000
-[NO_PID]: ecpg_process_output on line 129: putting result (1 tuple 6 fields) into sqlda descriptor
+[NO_PID]: ecpg_process_output on line 127: putting result (1 tuple 6 fields) into sqlda descriptor
 [NO_PID]: sqlca: code: 0, state: 00000
-[NO_PID]: ecpg_execute on line 129: query: fetch 1 from mycur1; with 0 parameter(s) on connection regress1
+[NO_PID]: ecpg_execute on line 127: query: fetch 1 from mycur1; with 0 parameter(s) on connection regress1
 [NO_PID]: sqlca: code: 0, state: 00000
-[NO_PID]: ecpg_execute on line 129: using PQexec
+[NO_PID]: ecpg_execute on line 127: using PQexec
 [NO_PID]: sqlca: code: 0, state: 00000
-[NO_PID]: ecpg_process_output on line 129: correctly got 1 tuples with 6 fields
+[NO_PID]: ecpg_process_output on line 127: correctly got 1 tuples with 6 fields
 [NO_PID]: sqlca: code: 0, state: 00000
-[NO_PID]: ecpg_build_native_sqlda on line 129 sqld = 6
+[NO_PID]: ecpg_build_native_sqlda on line 127 sqld = 6
 [NO_PID]: sqlca: code: 0, state: 00000
-[NO_PID]: ecpg_process_output on line 129: new sqlda was built
+[NO_PID]: ecpg_process_output on line 127: new sqlda was built
 [NO_PID]: sqlca: code: 0, state: 00000
-[NO_PID]: ecpg_set_native_sqlda on line 129 row 0 col 0 IS NOT NULL
+[NO_PID]: ecpg_set_native_sqlda on line 127 row 0 col 0 IS NOT NULL
 [NO_PID]: sqlca: code: 0, state: 00000
-[NO_PID]: ecpg_get_data on line 129: RESULT: 4 offset: -1; array: no
+[NO_PID]: ecpg_get_data on line 127: RESULT: 4 offset: -1; array: no
 [NO_PID]: sqlca: code: 0, state: 00000
-[NO_PID]: ecpg_set_native_sqlda on line 129 row 0 col 1 IS NOT NULL
+[NO_PID]: ecpg_set_native_sqlda on line 127 row 0 col 1 IS NOT NULL
 [NO_PID]: sqlca: code: 0, state: 00000
-[NO_PID]: ecpg_get_data on line 129: RESULT: d offset: -1; array: no
+[NO_PID]: ecpg_get_data on line 127: RESULT: d offset: -1; array: no
 [NO_PID]: sqlca: code: 0, state: 00000
-[NO_PID]: ecpg_set_native_sqlda on line 129 row 0 col 2 IS NOT NULL
+[NO_PID]: ecpg_set_native_sqlda on line 127 row 0 col 2 IS NOT NULL
 [NO_PID]: sqlca: code: 0, state: 00000
-[NO_PID]: ecpg_set_native_sqlda on line 129 row 0 col 3 IS NOT NULL
+[NO_PID]: ecpg_set_native_sqlda on line 127 row 0 col 3 IS NOT NULL
 [NO_PID]: sqlca: code: 0, state: 00000
-[NO_PID]: ecpg_get_data on line 129: RESULT: 4 offset: -1; array: no
+[NO_PID]: ecpg_get_data on line 127: RESULT: 4 offset: -1; array: no
 [NO_PID]: sqlca: code: 0, state: 00000
-[NO_PID]: ecpg_set_native_sqlda on line 129 row 0 col 4 IS NOT NULL
+[NO_PID]: ecpg_set_native_sqlda on line 127 row 0 col 4 IS NOT NULL
 [NO_PID]: sqlca: code: 0, state: 00000
-[NO_PID]: ecpg_get_data on line 129: RESULT: d          offset: -1; array: no
+[NO_PID]: ecpg_get_data on line 127: RESULT: d          offset: -1; array: no
 [NO_PID]: sqlca: code: 0, state: 00000
-[NO_PID]: ecpg_set_native_sqlda on line 129 row 0 col 5 IS NOT NULL
+[NO_PID]: ecpg_set_native_sqlda on line 127 row 0 col 5 IS NOT NULL
 [NO_PID]: sqlca: code: 0, state: 00000
-[NO_PID]: ecpg_get_data on line 129: RESULT: 4444444444444444444 offset: -1; array: no
+[NO_PID]: ecpg_get_data on line 127: RESULT: 4444444444444444444 offset: -1; array: no
 [NO_PID]: sqlca: code: 0, state: 00000
-[NO_PID]: ecpg_process_output on line 129: putting result (1 tuple 6 fields) into sqlda descriptor
+[NO_PID]: ecpg_process_output on line 127: putting result (1 tuple 6 fields) into sqlda descriptor
 [NO_PID]: sqlca: code: 0, state: 00000
-[NO_PID]: ecpg_execute on line 129: query: fetch 1 from mycur1; with 0 parameter(s) on connection regress1
+[NO_PID]: ecpg_execute on line 127: query: fetch 1 from mycur1; with 0 parameter(s) on connection regress1
 [NO_PID]: sqlca: code: 0, state: 00000
-[NO_PID]: ecpg_execute on line 129: using PQexec
+[NO_PID]: ecpg_execute on line 127: using PQexec
 [NO_PID]: sqlca: code: 0, state: 00000
-[NO_PID]: ecpg_process_output on line 129: correctly got 1 tuples with 6 fields
+[NO_PID]: ecpg_process_output on line 127: correctly got 1 tuples with 6 fields
 [NO_PID]: sqlca: code: 0, state: 00000
-[NO_PID]: ecpg_build_native_sqlda on line 129 sqld = 6
+[NO_PID]: ecpg_build_native_sqlda on line 127 sqld = 6
 [NO_PID]: sqlca: code: 0, state: 00000
-[NO_PID]: ecpg_process_output on line 129: new sqlda was built
+[NO_PID]: ecpg_process_output on line 127: new sqlda was built
 [NO_PID]: sqlca: code: 0, state: 00000
-[NO_PID]: ecpg_set_native_sqlda on line 129 row 0 col 0 IS NOT NULL
+[NO_PID]: ecpg_set_native_sqlda on line 127 row 0 col 0 IS NOT NULL
 [NO_PID]: sqlca: code: 0, state: 00000
-[NO_PID]: ecpg_get_data on line 129: RESULT: 5 offset: -1; array: no
+[NO_PID]: ecpg_get_data on line 127: RESULT: 5 offset: -1; array: no
 [NO_PID]: sqlca: code: 0, state: 00000
-[NO_PID]: ecpg_set_native_sqlda on line 129 row 0 col 1 IS NOT NULL
+[NO_PID]: ecpg_set_native_sqlda on line 127 row 0 col 1 IS NOT NULL
 [NO_PID]: sqlca: code: 0, state: 00000
-[NO_PID]: ecpg_get_data on line 129: RESULT: e offset: -1; array: no
+[NO_PID]: ecpg_get_data on line 127: RESULT: e offset: -1; array: no
 [NO_PID]: sqlca: code: 0, state: 00000
-[NO_PID]: ecpg_set_native_sqlda on line 129 row 0 col 2 IS NOT NULL
+[NO_PID]: ecpg_set_native_sqlda on line 127 row 0 col 2 IS NOT NULL
 [NO_PID]: sqlca: code: 0, state: 00000
-[NO_PID]: ecpg_set_native_sqlda on line 129 row 0 col 3 IS NOT NULL
+[NO_PID]: ecpg_set_native_sqlda on line 127 row 0 col 3 IS NOT NULL
 [NO_PID]: sqlca: code: 0, state: 00000
-[NO_PID]: ecpg_get_data on line 129: RESULT: 5 offset: -1; array: no
+[NO_PID]: ecpg_get_data on line 127: RESULT: 5 offset: -1; array: no
 [NO_PID]: sqlca: code: 0, state: 00000
-[NO_PID]: ecpg_set_native_sqlda on line 129 row 0 col 4 IS NOT NULL
+[NO_PID]: ecpg_set_native_sqlda on line 127 row 0 col 4 IS NOT NULL
 [NO_PID]: sqlca: code: 0, state: 00000
-[NO_PID]: ecpg_get_data on line 129: RESULT: e          offset: -1; array: no
+[NO_PID]: ecpg_get_data on line 127: RESULT: e          offset: -1; array: no
 [NO_PID]: sqlca: code: 0, state: 00000
-[NO_PID]: ecpg_set_native_sqlda on line 129 row 0 col 5 IS NOT NULL
+[NO_PID]: ecpg_set_native_sqlda on line 127 row 0 col 5 IS NOT NULL
 [NO_PID]: sqlca: code: 0, state: 00000
-[NO_PID]: ecpg_get_data on line 129: RESULT: 5555555555555555555 offset: -1; array: no
+[NO_PID]: ecpg_get_data on line 127: RESULT: 5555555555555555555 offset: -1; array: no
 [NO_PID]: sqlca: code: 0, state: 00000
-[NO_PID]: ecpg_process_output on line 129: putting result (1 tuple 6 fields) into sqlda descriptor
+[NO_PID]: ecpg_process_output on line 127: putting result (1 tuple 6 fields) into sqlda descriptor
 [NO_PID]: sqlca: code: 0, state: 00000
-[NO_PID]: ecpg_execute on line 129: query: fetch 1 from mycur1; with 0 parameter(s) on connection regress1
+[NO_PID]: ecpg_execute on line 127: query: fetch 1 from mycur1; with 0 parameter(s) on connection regress1
 [NO_PID]: sqlca: code: 0, state: 00000
-[NO_PID]: ecpg_execute on line 129: using PQexec
+[NO_PID]: ecpg_execute on line 127: using PQexec
 [NO_PID]: sqlca: code: 0, state: 00000
-[NO_PID]: ecpg_process_output on line 129: correctly got 0 tuples with 6 fields
+[NO_PID]: ecpg_process_output on line 127: correctly got 0 tuples with 6 fields
 [NO_PID]: sqlca: code: 0, state: 00000
-[NO_PID]: raising sqlcode 100 on line 129: no data found on line 129
+[NO_PID]: raising sqlcode 100 on line 127: no data found on line 127
 [NO_PID]: sqlca: code: 100, state: 02000
-[NO_PID]: ecpg_execute on line 138: query: close mycur1; with 0 parameter(s) on connection regress1
+[NO_PID]: ecpg_execute on line 136: query: close mycur1; with 0 parameter(s) on connection regress1
 [NO_PID]: sqlca: code: 0, state: 00000
-[NO_PID]: ecpg_execute on line 138: using PQexec
+[NO_PID]: ecpg_execute on line 136: using PQexec
 [NO_PID]: sqlca: code: 0, state: 00000
-[NO_PID]: ecpg_process_output on line 138: OK: CLOSE CURSOR
+[NO_PID]: ecpg_process_output on line 136: OK: CLOSE CURSOR
 [NO_PID]: sqlca: code: 0, state: 00000
-[NO_PID]: deallocate_one on line 141: name st_id1
+[NO_PID]: deallocate_one on line 139: name st_id1
 [NO_PID]: sqlca: code: 0, state: 00000
-[NO_PID]: prepare_common on line 150: name st_id2; query: "SELECT * FROM t1"
+[NO_PID]: prepare_common on line 148: name st_id2; query: "SELECT * FROM t1"
 [NO_PID]: sqlca: code: 0, state: 00000
-[NO_PID]: ecpg_execute on line 156: query: declare mycur2 cursor for SELECT * FROM t1; with 0 parameter(s) on connection regress1
+[NO_PID]: ecpg_execute on line 154: query: declare mycur2 cursor for SELECT * FROM t1; with 0 parameter(s) on connection regress1
 [NO_PID]: sqlca: code: 0, state: 00000
-[NO_PID]: ecpg_execute on line 156: using PQexec
+[NO_PID]: ecpg_execute on line 154: using PQexec
 [NO_PID]: sqlca: code: 0, state: 00000
-[NO_PID]: ecpg_process_output on line 156: OK: DECLARE CURSOR
+[NO_PID]: ecpg_process_output on line 154: OK: DECLARE CURSOR
 [NO_PID]: sqlca: code: 0, state: 00000
-[NO_PID]: ecpg_execute on line 159: query: fetch all from mycur2; with 0 parameter(s) on connection regress1
+[NO_PID]: ecpg_execute on line 157: query: fetch all from mycur2; with 0 parameter(s) on connection regress1
 [NO_PID]: sqlca: code: 0, state: 00000
-[NO_PID]: ecpg_execute on line 159: using PQexec
+[NO_PID]: ecpg_execute on line 157: using PQexec
 [NO_PID]: sqlca: code: 0, state: 00000
-[NO_PID]: ecpg_process_output on line 159: correctly got 5 tuples with 6 fields
+[NO_PID]: ecpg_process_output on line 157: correctly got 5 tuples with 6 fields
 [NO_PID]: sqlca: code: 0, state: 00000
-[NO_PID]: ecpg_build_native_sqlda on line 159 sqld = 6
+[NO_PID]: ecpg_build_native_sqlda on line 157 sqld = 6
 [NO_PID]: sqlca: code: 0, state: 00000
-[NO_PID]: ecpg_process_output on line 159: new sqlda was built
+[NO_PID]: ecpg_process_output on line 157: new sqlda was built
 [NO_PID]: sqlca: code: 0, state: 00000
-[NO_PID]: ecpg_set_native_sqlda on line 159 row 4 col 0 IS NOT NULL
+[NO_PID]: ecpg_set_native_sqlda on line 157 row 4 col 0 IS NOT NULL
 [NO_PID]: sqlca: code: 0, state: 00000
-[NO_PID]: ecpg_get_data on line 159: RESULT: 5 offset: -1; array: no
+[NO_PID]: ecpg_get_data on line 157: RESULT: 5 offset: -1; array: no
 [NO_PID]: sqlca: code: 0, state: 00000
-[NO_PID]: ecpg_set_native_sqlda on line 159 row 4 col 1 IS NOT NULL
+[NO_PID]: ecpg_set_native_sqlda on line 157 row 4 col 1 IS NOT NULL
 [NO_PID]: sqlca: code: 0, state: 00000
-[NO_PID]: ecpg_get_data on line 159: RESULT: e offset: -1; array: no
+[NO_PID]: ecpg_get_data on line 157: RESULT: e offset: -1; array: no
 [NO_PID]: sqlca: code: 0, state: 00000
-[NO_PID]: ecpg_set_native_sqlda on line 159 row 4 col 2 IS NOT NULL
+[NO_PID]: ecpg_set_native_sqlda on line 157 row 4 col 2 IS NOT NULL
 [NO_PID]: sqlca: code: 0, state: 00000
-[NO_PID]: ecpg_set_native_sqlda on line 159 row 4 col 3 IS NOT NULL
+[NO_PID]: ecpg_set_native_sqlda on line 157 row 4 col 3 IS NOT NULL
 [NO_PID]: sqlca: code: 0, state: 00000
-[NO_PID]: ecpg_get_data on line 159: RESULT: 5 offset: -1; array: no
+[NO_PID]: ecpg_get_data on line 157: RESULT: 5 offset: -1; array: no
 [NO_PID]: sqlca: code: 0, state: 00000
-[NO_PID]: ecpg_set_native_sqlda on line 159 row 4 col 4 IS NOT NULL
+[NO_PID]: ecpg_set_native_sqlda on line 157 row 4 col 4 IS NOT NULL
 [NO_PID]: sqlca: code: 0, state: 00000
-[NO_PID]: ecpg_get_data on line 159: RESULT: e          offset: -1; array: no
+[NO_PID]: ecpg_get_data on line 157: RESULT: e          offset: -1; array: no
 [NO_PID]: sqlca: code: 0, state: 00000
-[NO_PID]: ecpg_set_native_sqlda on line 159 row 4 col 5 IS NOT NULL
+[NO_PID]: ecpg_set_native_sqlda on line 157 row 4 col 5 IS NOT NULL
 [NO_PID]: sqlca: code: 0, state: 00000
-[NO_PID]: ecpg_get_data on line 159: RESULT: 5555555555555555555 offset: -1; array: no
+[NO_PID]: ecpg_get_data on line 157: RESULT: 5555555555555555555 offset: -1; array: no
 [NO_PID]: sqlca: code: 0, state: 00000
-[NO_PID]: ecpg_process_output on line 159: putting result (1 tuple 6 fields) into sqlda descriptor
+[NO_PID]: ecpg_process_output on line 157: putting result (1 tuple 6 fields) into sqlda descriptor
 [NO_PID]: sqlca: code: 0, state: 00000
-[NO_PID]: ecpg_build_native_sqlda on line 159 sqld = 6
+[NO_PID]: ecpg_build_native_sqlda on line 157 sqld = 6
 [NO_PID]: sqlca: code: 0, state: 00000
-[NO_PID]: ecpg_process_output on line 159: new sqlda was built
+[NO_PID]: ecpg_process_output on line 157: new sqlda was built
 [NO_PID]: sqlca: code: 0, state: 00000
-[NO_PID]: ecpg_set_native_sqlda on line 159 row 3 col 0 IS NOT NULL
+[NO_PID]: ecpg_set_native_sqlda on line 157 row 3 col 0 IS NOT NULL
 [NO_PID]: sqlca: code: 0, state: 00000
-[NO_PID]: ecpg_get_data on line 159: RESULT: 4 offset: -1; array: no
+[NO_PID]: ecpg_get_data on line 157: RESULT: 4 offset: -1; array: no
 [NO_PID]: sqlca: code: 0, state: 00000
-[NO_PID]: ecpg_set_native_sqlda on line 159 row 3 col 1 IS NOT NULL
+[NO_PID]: ecpg_set_native_sqlda on line 157 row 3 col 1 IS NOT NULL
 [NO_PID]: sqlca: code: 0, state: 00000
-[NO_PID]: ecpg_get_data on line 159: RESULT: d offset: -1; array: no
+[NO_PID]: ecpg_get_data on line 157: RESULT: d offset: -1; array: no
 [NO_PID]: sqlca: code: 0, state: 00000
-[NO_PID]: ecpg_set_native_sqlda on line 159 row 3 col 2 IS NOT NULL
+[NO_PID]: ecpg_set_native_sqlda on line 157 row 3 col 2 IS NOT NULL
 [NO_PID]: sqlca: code: 0, state: 00000
-[NO_PID]: ecpg_set_native_sqlda on line 159 row 3 col 3 IS NOT NULL
+[NO_PID]: ecpg_set_native_sqlda on line 157 row 3 col 3 IS NOT NULL
 [NO_PID]: sqlca: code: 0, state: 00000
-[NO_PID]: ecpg_get_data on line 159: RESULT: 4 offset: -1; array: no
+[NO_PID]: ecpg_get_data on line 157: RESULT: 4 offset: -1; array: no
 [NO_PID]: sqlca: code: 0, state: 00000
-[NO_PID]: ecpg_set_native_sqlda on line 159 row 3 col 4 IS NOT NULL
+[NO_PID]: ecpg_set_native_sqlda on line 157 row 3 col 4 IS NOT NULL
 [NO_PID]: sqlca: code: 0, state: 00000
-[NO_PID]: ecpg_get_data on line 159: RESULT: d          offset: -1; array: no
+[NO_PID]: ecpg_get_data on line 157: RESULT: d          offset: -1; array: no
 [NO_PID]: sqlca: code: 0, state: 00000
-[NO_PID]: ecpg_set_native_sqlda on line 159 row 3 col 5 IS NOT NULL
+[NO_PID]: ecpg_set_native_sqlda on line 157 row 3 col 5 IS NOT NULL
 [NO_PID]: sqlca: code: 0, state: 00000
-[NO_PID]: ecpg_get_data on line 159: RESULT: 4444444444444444444 offset: -1; array: no
+[NO_PID]: ecpg_get_data on line 157: RESULT: 4444444444444444444 offset: -1; array: no
 [NO_PID]: sqlca: code: 0, state: 00000
-[NO_PID]: ecpg_process_output on line 159: putting result (1 tuple 6 fields) into sqlda descriptor
+[NO_PID]: ecpg_process_output on line 157: putting result (1 tuple 6 fields) into sqlda descriptor
 [NO_PID]: sqlca: code: 0, state: 00000
-[NO_PID]: ecpg_build_native_sqlda on line 159 sqld = 6
+[NO_PID]: ecpg_build_native_sqlda on line 157 sqld = 6
 [NO_PID]: sqlca: code: 0, state: 00000
-[NO_PID]: ecpg_process_output on line 159: new sqlda was built
+[NO_PID]: ecpg_process_output on line 157: new sqlda was built
 [NO_PID]: sqlca: code: 0, state: 00000
-[NO_PID]: ecpg_set_native_sqlda on line 159 row 2 col 0 IS NOT NULL
+[NO_PID]: ecpg_set_native_sqlda on line 157 row 2 col 0 IS NOT NULL
 [NO_PID]: sqlca: code: 0, state: 00000
-[NO_PID]: ecpg_get_data on line 159: RESULT: 3 offset: -1; array: no
+[NO_PID]: ecpg_get_data on line 157: RESULT: 3 offset: -1; array: no
 [NO_PID]: sqlca: code: 0, state: 00000
-[NO_PID]: ecpg_set_native_sqlda on line 159 row 2 col 1 IS NOT NULL
+[NO_PID]: ecpg_set_native_sqlda on line 157 row 2 col 1 IS NOT NULL
 [NO_PID]: sqlca: code: 0, state: 00000
-[NO_PID]: ecpg_get_data on line 159: RESULT: c offset: -1; array: no
+[NO_PID]: ecpg_get_data on line 157: RESULT: c offset: -1; array: no
 [NO_PID]: sqlca: code: 0, state: 00000
-[NO_PID]: ecpg_set_native_sqlda on line 159 row 2 col 2 IS NOT NULL
+[NO_PID]: ecpg_set_native_sqlda on line 157 row 2 col 2 IS NOT NULL
 [NO_PID]: sqlca: code: 0, state: 00000
-[NO_PID]: ecpg_set_native_sqlda on line 159 row 2 col 3 IS NOT NULL
+[NO_PID]: ecpg_set_native_sqlda on line 157 row 2 col 3 IS NOT NULL
 [NO_PID]: sqlca: code: 0, state: 00000
-[NO_PID]: ecpg_get_data on line 159: RESULT: 3 offset: -1; array: no
+[NO_PID]: ecpg_get_data on line 157: RESULT: 3 offset: -1; array: no
 [NO_PID]: sqlca: code: 0, state: 00000
-[NO_PID]: ecpg_set_native_sqlda on line 159 row 2 col 4 IS NOT NULL
+[NO_PID]: ecpg_set_native_sqlda on line 157 row 2 col 4 IS NOT NULL
 [NO_PID]: sqlca: code: 0, state: 00000
-[NO_PID]: ecpg_get_data on line 159: RESULT: c          offset: -1; array: no
+[NO_PID]: ecpg_get_data on line 157: RESULT: c          offset: -1; array: no
 [NO_PID]: sqlca: code: 0, state: 00000
-[NO_PID]: ecpg_set_native_sqlda on line 159 row 2 col 5 IS NOT NULL
+[NO_PID]: ecpg_set_native_sqlda on line 157 row 2 col 5 IS NOT NULL
 [NO_PID]: sqlca: code: 0, state: 00000
-[NO_PID]: ecpg_get_data on line 159: RESULT: 3333333333333333333 offset: -1; array: no
+[NO_PID]: ecpg_get_data on line 157: RESULT: 3333333333333333333 offset: -1; array: no
 [NO_PID]: sqlca: code: 0, state: 00000
-[NO_PID]: ecpg_process_output on line 159: putting result (1 tuple 6 fields) into sqlda descriptor
+[NO_PID]: ecpg_process_output on line 157: putting result (1 tuple 6 fields) into sqlda descriptor
 [NO_PID]: sqlca: code: 0, state: 00000
-[NO_PID]: ecpg_build_native_sqlda on line 159 sqld = 6
+[NO_PID]: ecpg_build_native_sqlda on line 157 sqld = 6
 [NO_PID]: sqlca: code: 0, state: 00000
-[NO_PID]: ecpg_process_output on line 159: new sqlda was built
+[NO_PID]: ecpg_process_output on line 157: new sqlda was built
 [NO_PID]: sqlca: code: 0, state: 00000
-[NO_PID]: ecpg_set_native_sqlda on line 159 row 1 col 0 IS NOT NULL
+[NO_PID]: ecpg_set_native_sqlda on line 157 row 1 col 0 IS NOT NULL
 [NO_PID]: sqlca: code: 0, state: 00000
-[NO_PID]: ecpg_get_data on line 159: RESULT: 2 offset: -1; array: no
+[NO_PID]: ecpg_get_data on line 157: RESULT: 2 offset: -1; array: no
 [NO_PID]: sqlca: code: 0, state: 00000
-[NO_PID]: ecpg_set_native_sqlda on line 159 row 1 col 1 IS NULL
+[NO_PID]: ecpg_set_native_sqlda on line 157 row 1 col 1 IS NULL
 [NO_PID]: sqlca: code: 0, state: 00000
-[NO_PID]: ecpg_set_native_sqlda on line 159 row 1 col 2 IS NULL
+[NO_PID]: ecpg_set_native_sqlda on line 157 row 1 col 2 IS NULL
 [NO_PID]: sqlca: code: 0, state: 00000
-[NO_PID]: ecpg_set_native_sqlda on line 159 row 1 col 3 IS NULL
+[NO_PID]: ecpg_set_native_sqlda on line 157 row 1 col 3 IS NULL
 [NO_PID]: sqlca: code: 0, state: 00000
-[NO_PID]: ecpg_set_native_sqlda on line 159 row 1 col 4 IS NULL
+[NO_PID]: ecpg_set_native_sqlda on line 157 row 1 col 4 IS NULL
 [NO_PID]: sqlca: code: 0, state: 00000
-[NO_PID]: ecpg_set_native_sqlda on line 159 row 1 col 5 IS NULL
+[NO_PID]: ecpg_set_native_sqlda on line 157 row 1 col 5 IS NULL
 [NO_PID]: sqlca: code: 0, state: 00000
-[NO_PID]: ecpg_process_output on line 159: putting result (1 tuple 6 fields) into sqlda descriptor
+[NO_PID]: ecpg_process_output on line 157: putting result (1 tuple 6 fields) into sqlda descriptor
 [NO_PID]: sqlca: code: 0, state: 00000
-[NO_PID]: ecpg_build_native_sqlda on line 159 sqld = 6
+[NO_PID]: ecpg_build_native_sqlda on line 157 sqld = 6
 [NO_PID]: sqlca: code: 0, state: 00000
-[NO_PID]: ecpg_process_output on line 159: new sqlda was built
+[NO_PID]: ecpg_process_output on line 157: new sqlda was built
 [NO_PID]: sqlca: code: 0, state: 00000
-[NO_PID]: ecpg_set_native_sqlda on line 159 row 0 col 0 IS NOT NULL
+[NO_PID]: ecpg_set_native_sqlda on line 157 row 0 col 0 IS NOT NULL
 [NO_PID]: sqlca: code: 0, state: 00000
-[NO_PID]: ecpg_get_data on line 159: RESULT: 1 offset: -1; array: no
+[NO_PID]: ecpg_get_data on line 157: RESULT: 1 offset: -1; array: no
 [NO_PID]: sqlca: code: 0, state: 00000
-[NO_PID]: ecpg_set_native_sqlda on line 159 row 0 col 1 IS NOT NULL
+[NO_PID]: ecpg_set_native_sqlda on line 157 row 0 col 1 IS NOT NULL
 [NO_PID]: sqlca: code: 0, state: 00000
-[NO_PID]: ecpg_get_data on line 159: RESULT: a offset: -1; array: no
+[NO_PID]: ecpg_get_data on line 157: RESULT: a offset: -1; array: no
 [NO_PID]: sqlca: code: 0, state: 00000
-[NO_PID]: ecpg_set_native_sqlda on line 159 row 0 col 2 IS NOT NULL
+[NO_PID]: ecpg_set_native_sqlda on line 157 row 0 col 2 IS NOT NULL
 [NO_PID]: sqlca: code: 0, state: 00000
-[NO_PID]: ecpg_set_native_sqlda on line 159 row 0 col 3 IS NOT NULL
+[NO_PID]: ecpg_set_native_sqlda on line 157 row 0 col 3 IS NOT NULL
 [NO_PID]: sqlca: code: 0, state: 00000
-[NO_PID]: ecpg_get_data on line 159: RESULT: 1 offset: -1; array: no
+[NO_PID]: ecpg_get_data on line 157: RESULT: 1 offset: -1; array: no
 [NO_PID]: sqlca: code: 0, state: 00000
-[NO_PID]: ecpg_set_native_sqlda on line 159 row 0 col 4 IS NOT NULL
+[NO_PID]: ecpg_set_native_sqlda on line 157 row 0 col 4 IS NOT NULL
 [NO_PID]: sqlca: code: 0, state: 00000
-[NO_PID]: ecpg_get_data on line 159: RESULT: a          offset: -1; array: no
+[NO_PID]: ecpg_get_data on line 157: RESULT: a          offset: -1; array: no
 [NO_PID]: sqlca: code: 0, state: 00000
-[NO_PID]: ecpg_set_native_sqlda on line 159 row 0 col 5 IS NOT NULL
+[NO_PID]: ecpg_set_native_sqlda on line 157 row 0 col 5 IS NOT NULL
 [NO_PID]: sqlca: code: 0, state: 00000
-[NO_PID]: ecpg_get_data on line 159: RESULT: 1111111111111111111 offset: -1; array: no
+[NO_PID]: ecpg_get_data on line 157: RESULT: 1111111111111111111 offset: -1; array: no
 [NO_PID]: sqlca: code: 0, state: 00000
-[NO_PID]: ecpg_process_output on line 159: putting result (1 tuple 6 fields) into sqlda descriptor
+[NO_PID]: ecpg_process_output on line 157: putting result (1 tuple 6 fields) into sqlda descriptor
 [NO_PID]: sqlca: code: 0, state: 00000
-[NO_PID]: ecpg_execute on line 175: query: close mycur2; with 0 parameter(s) on connection regress1
+[NO_PID]: ecpg_execute on line 173: query: close mycur2; with 0 parameter(s) on connection regress1
 [NO_PID]: sqlca: code: 0, state: 00000
-[NO_PID]: ecpg_execute on line 175: using PQexec
+[NO_PID]: ecpg_execute on line 173: using PQexec
 [NO_PID]: sqlca: code: 0, state: 00000
-[NO_PID]: ecpg_process_output on line 175: OK: CLOSE CURSOR
+[NO_PID]: ecpg_process_output on line 173: OK: CLOSE CURSOR
 [NO_PID]: sqlca: code: 0, state: 00000
-[NO_PID]: deallocate_one on line 178: name st_id2
+[NO_PID]: deallocate_one on line 176: name st_id2
 [NO_PID]: sqlca: code: 0, state: 00000
-[NO_PID]: prepare_common on line 200: name st_id3; query: "SELECT * FROM t1 WHERE id = $1"
+[NO_PID]: prepare_common on line 198: name st_id3; query: "SELECT * FROM t1 WHERE id = $1"
 [NO_PID]: sqlca: code: 0, state: 00000
-[NO_PID]: ecpg_execute on line 203: query: SELECT * FROM t1 WHERE id = $1; with 1 parameter(s) on connection regress1
+[NO_PID]: ecpg_execute on line 201: query: SELECT * FROM t1 WHERE id = $1; with 1 parameter(s) on connection regress1
 [NO_PID]: sqlca: code: 0, state: 00000
-[NO_PID]: ecpg_execute on line 203: using PQexecPrepared for "SELECT * FROM t1 WHERE id = $1"
+[NO_PID]: ecpg_execute on line 201: using PQexecPrepared for "SELECT * FROM t1 WHERE id = $1"
 [NO_PID]: sqlca: code: 0, state: 00000
-[NO_PID]: ecpg_free_params on line 203: parameter 1 = 4
+[NO_PID]: ecpg_free_params on line 201: parameter 1 = 4
 [NO_PID]: sqlca: code: 0, state: 00000
-[NO_PID]: ecpg_process_output on line 203: correctly got 1 tuples with 6 fields
+[NO_PID]: ecpg_process_output on line 201: correctly got 1 tuples with 6 fields
 [NO_PID]: sqlca: code: 0, state: 00000
-[NO_PID]: ecpg_build_native_sqlda on line 203 sqld = 6
+[NO_PID]: ecpg_build_native_sqlda on line 201 sqld = 6
 [NO_PID]: sqlca: code: 0, state: 00000
-[NO_PID]: ecpg_process_output on line 203: new sqlda was built
+[NO_PID]: ecpg_process_output on line 201: new sqlda was built
 [NO_PID]: sqlca: code: 0, state: 00000
-[NO_PID]: ecpg_set_native_sqlda on line 203 row 0 col 0 IS NOT NULL
+[NO_PID]: ecpg_set_native_sqlda on line 201 row 0 col 0 IS NOT NULL
 [NO_PID]: sqlca: code: 0, state: 00000
-[NO_PID]: ecpg_get_data on line 203: RESULT: 4 offset: -1; array: no
+[NO_PID]: ecpg_get_data on line 201: RESULT: 4 offset: -1; array: no
 [NO_PID]: sqlca: code: 0, state: 00000
-[NO_PID]: ecpg_set_native_sqlda on line 203 row 0 col 1 IS NOT NULL
+[NO_PID]: ecpg_set_native_sqlda on line 201 row 0 col 1 IS NOT NULL
 [NO_PID]: sqlca: code: 0, state: 00000
-[NO_PID]: ecpg_get_data on line 203: RESULT: d offset: -1; array: no
+[NO_PID]: ecpg_get_data on line 201: RESULT: d offset: -1; array: no
 [NO_PID]: sqlca: code: 0, state: 00000
-[NO_PID]: ecpg_set_native_sqlda on line 203 row 0 col 2 IS NOT NULL
+[NO_PID]: ecpg_set_native_sqlda on line 201 row 0 col 2 IS NOT NULL
 [NO_PID]: sqlca: code: 0, state: 00000
-[NO_PID]: ecpg_set_native_sqlda on line 203 row 0 col 3 IS NOT NULL
+[NO_PID]: ecpg_set_native_sqlda on line 201 row 0 col 3 IS NOT NULL
 [NO_PID]: sqlca: code: 0, state: 00000
-[NO_PID]: ecpg_get_data on line 203: RESULT: 4 offset: -1; array: no
+[NO_PID]: ecpg_get_data on line 201: RESULT: 4 offset: -1; array: no
 [NO_PID]: sqlca: code: 0, state: 00000
-[NO_PID]: ecpg_set_native_sqlda on line 203 row 0 col 4 IS NOT NULL
+[NO_PID]: ecpg_set_native_sqlda on line 201 row 0 col 4 IS NOT NULL
 [NO_PID]: sqlca: code: 0, state: 00000
-[NO_PID]: ecpg_get_data on line 203: RESULT: d          offset: -1; array: no
+[NO_PID]: ecpg_get_data on line 201: RESULT: d          offset: -1; array: no
 [NO_PID]: sqlca: code: 0, state: 00000
-[NO_PID]: ecpg_set_native_sqlda on line 203 row 0 col 5 IS NOT NULL
+[NO_PID]: ecpg_set_native_sqlda on line 201 row 0 col 5 IS NOT NULL
 [NO_PID]: sqlca: code: 0, state: 00000
-[NO_PID]: ecpg_get_data on line 203: RESULT: 4444444444444444444 offset: -1; array: no
+[NO_PID]: ecpg_get_data on line 201: RESULT: 4444444444444444444 offset: -1; array: no
 [NO_PID]: sqlca: code: 0, state: 00000
-[NO_PID]: ecpg_process_output on line 203: putting result (1 tuple 6 fields) into sqlda descriptor
+[NO_PID]: ecpg_process_output on line 201: putting result (1 tuple 6 fields) into sqlda descriptor
 [NO_PID]: sqlca: code: 0, state: 00000
-[NO_PID]: deallocate_one on line 208: name st_id3
+[NO_PID]: deallocate_one on line 206: name st_id3
 [NO_PID]: sqlca: code: 0, state: 00000
 [NO_PID]: ECPGconnect: opening database ecpg1_regression on <DEFAULT> port <DEFAULT>  
 [NO_PID]: sqlca: code: 0, state: 00000
-[NO_PID]: prepare_common on line 237: name st_id4; query: "SELECT * FROM t1 WHERE id = $1"
+[NO_PID]: prepare_common on line 235: name st_id4; query: "SELECT * FROM t1 WHERE id = $1"
 [NO_PID]: sqlca: code: 0, state: 00000
-[NO_PID]: ecpg_execute on line 240: query: SELECT * FROM t1 WHERE id = $1; with 1 parameter(s) on connection con2
+[NO_PID]: ecpg_execute on line 238: query: SELECT * FROM t1 WHERE id = $1; with 1 parameter(s) on connection con2
 [NO_PID]: sqlca: code: 0, state: 00000
-[NO_PID]: ecpg_execute on line 240: using PQexecPrepared for "SELECT * FROM t1 WHERE id = $1"
+[NO_PID]: ecpg_execute on line 238: using PQexecPrepared for "SELECT * FROM t1 WHERE id = $1"
 [NO_PID]: sqlca: code: 0, state: 00000
-[NO_PID]: ecpg_free_params on line 240: parameter 1 = 4
+[NO_PID]: ecpg_free_params on line 238: parameter 1 = 4
 [NO_PID]: sqlca: code: 0, state: 00000
-[NO_PID]: ecpg_process_output on line 240: correctly got 1 tuples with 6 fields
+[NO_PID]: ecpg_process_output on line 238: correctly got 1 tuples with 6 fields
 [NO_PID]: sqlca: code: 0, state: 00000
-[NO_PID]: ecpg_build_native_sqlda on line 240 sqld = 6
+[NO_PID]: ecpg_build_native_sqlda on line 238 sqld = 6
 [NO_PID]: sqlca: code: 0, state: 00000
-[NO_PID]: ecpg_process_output on line 240: new sqlda was built
+[NO_PID]: ecpg_process_output on line 238: new sqlda was built
 [NO_PID]: sqlca: code: 0, state: 00000
-[NO_PID]: ecpg_set_native_sqlda on line 240 row 0 col 0 IS NOT NULL
+[NO_PID]: ecpg_set_native_sqlda on line 238 row 0 col 0 IS NOT NULL
 [NO_PID]: sqlca: code: 0, state: 00000
-[NO_PID]: ecpg_get_data on line 240: RESULT: 4 offset: -1; array: no
+[NO_PID]: ecpg_get_data on line 238: RESULT: 4 offset: -1; array: no
 [NO_PID]: sqlca: code: 0, state: 00000
-[NO_PID]: ecpg_set_native_sqlda on line 240 row 0 col 1 IS NOT NULL
+[NO_PID]: ecpg_set_native_sqlda on line 238 row 0 col 1 IS NOT NULL
 [NO_PID]: sqlca: code: 0, state: 00000
-[NO_PID]: ecpg_get_data on line 240: RESULT: d offset: -1; array: no
+[NO_PID]: ecpg_get_data on line 238: RESULT: d offset: -1; array: no
 [NO_PID]: sqlca: code: 0, state: 00000
-[NO_PID]: ecpg_set_native_sqlda on line 240 row 0 col 2 IS NOT NULL
+[NO_PID]: ecpg_set_native_sqlda on line 238 row 0 col 2 IS NOT NULL
 [NO_PID]: sqlca: code: 0, state: 00000
-[NO_PID]: ecpg_set_native_sqlda on line 240 row 0 col 3 IS NOT NULL
+[NO_PID]: ecpg_set_native_sqlda on line 238 row 0 col 3 IS NOT NULL
 [NO_PID]: sqlca: code: 0, state: 00000
-[NO_PID]: ecpg_get_data on line 240: RESULT: 4 offset: -1; array: no
+[NO_PID]: ecpg_get_data on line 238: RESULT: 4 offset: -1; array: no
 [NO_PID]: sqlca: code: 0, state: 00000
-[NO_PID]: ecpg_set_native_sqlda on line 240 row 0 col 4 IS NOT NULL
+[NO_PID]: ecpg_set_native_sqlda on line 238 row 0 col 4 IS NOT NULL
 [NO_PID]: sqlca: code: 0, state: 00000
-[NO_PID]: ecpg_get_data on line 240: RESULT: d          offset: -1; array: no
+[NO_PID]: ecpg_get_data on line 238: RESULT: d          offset: -1; array: no
 [NO_PID]: sqlca: code: 0, state: 00000
-[NO_PID]: ecpg_set_native_sqlda on line 240 row 0 col 5 IS NOT NULL
+[NO_PID]: ecpg_set_native_sqlda on line 238 row 0 col 5 IS NOT NULL
 [NO_PID]: sqlca: code: 0, state: 00000
-[NO_PID]: ecpg_get_data on line 240: RESULT: 4444444444444444444 offset: -1; array: no
+[NO_PID]: ecpg_get_data on line 238: RESULT: 4444444444444444444 offset: -1; array: no
 [NO_PID]: sqlca: code: 0, state: 00000
-[NO_PID]: ecpg_process_output on line 240: putting result (1 tuple 6 fields) into sqlda descriptor
+[NO_PID]: ecpg_process_output on line 238: putting result (1 tuple 6 fields) into sqlda descriptor
 [NO_PID]: sqlca: code: 0, state: 00000
-[NO_PID]: ECPGtrans on line 245: action "commit"; connection "con2"
+[NO_PID]: ECPGtrans on line 243: action "commit"; connection "con2"
 [NO_PID]: sqlca: code: 0, state: 00000
-[NO_PID]: deallocate_one on line 248: name st_id4
+[NO_PID]: deallocate_one on line 246: name st_id4
 [NO_PID]: sqlca: code: 0, state: 00000
 [NO_PID]: ecpg_finish: connection con2 closed
 [NO_PID]: sqlca: code: 0, state: 00000
-[NO_PID]: ecpg_execute on line 259: query: drop table t1; with 0 parameter(s) on connection regress1
+[NO_PID]: ecpg_execute on line 257: query: drop table t1; with 0 parameter(s) on connection regress1
 [NO_PID]: sqlca: code: 0, state: 00000
-[NO_PID]: ecpg_execute on line 259: using PQexec
+[NO_PID]: ecpg_execute on line 257: using PQexec
 [NO_PID]: sqlca: code: 0, state: 00000
-[NO_PID]: ecpg_process_output on line 259: OK: DROP TABLE
+[NO_PID]: ecpg_process_output on line 257: OK: DROP TABLE
 [NO_PID]: sqlca: code: 0, state: 00000
-[NO_PID]: ECPGtrans on line 262: action "commit"; connection "regress1"
+[NO_PID]: ECPGtrans on line 260: action "commit"; connection "regress1"
 [NO_PID]: sqlca: code: 0, state: 00000
 [NO_PID]: ecpg_finish: connection regress1 closed
 [NO_PID]: sqlca: code: 0, state: 00000
index 9a665511d010f2ff3838d4e4a43b13e972fc0c80..e551385eaa4f69d7ace45dca360800060e3a1488 100644 (file)
@@ -39,7 +39,6 @@ dump_sqlda(sqlda_t *sqlda)
                case ECPGt_long:
                        printf("name sqlda descriptor: '%s' value %ld\n", sqlda->sqlvar[i].sqlname.data, *(long int *)sqlda->sqlvar[i].sqldata);
                        break;
-#ifdef HAVE_LONG_LONG_INT
                case ECPGt_long_long:
                        printf(
 #ifdef _WIN32
@@ -49,7 +48,6 @@ dump_sqlda(sqlda_t *sqlda)
 #endif
                                sqlda->sqlvar[i].sqlname.data, *(long long int *)sqlda->sqlvar[i].sqldata);
                        break;
-#endif
                case ECPGt_double:
                        printf("name sqlda descriptor: '%s' value %f\n", sqlda->sqlvar[i].sqlname.data, *(double *)sqlda->sqlvar[i].sqldata);
                        break;