Fixed bug with indicators when storage for the string is dynamically allocated.
authorMichael Meskes
Sun, 26 Oct 2003 09:50:47 +0000 (09:50 +0000)
committerMichael Meskes
Sun, 26 Oct 2003 09:50:47 +0000 (09:50 +0000)
src/interfaces/ecpg/ChangeLog
src/interfaces/ecpg/ecpglib/execute.c

index 815a77009a7994fd9e1917b4842c8ba4916f8f9e..824d3a606d9b06ce546088e04eb7d41fb2b4c405 100644 (file)
@@ -1692,6 +1692,11 @@ Sun Oct 19 15:20:16 CEST 2003
 Mon Oct 20 14:53:40 CEST 2003
 
    - Install dummy sqlda.h file.
+   
+Sun Oct 26 10:47:05 CET 2003
+
+   - Fixed bug with indicators when storage for the
+     string is dynamically allocated
    - Set ecpg version to 3.0.0
    - Set ecpg library to 4.0.0
    - Set pgtypes library to 1.0.0
index 9f813f6be8bbf1453c6566a85f218ec52df04c2d..5bb87e12f6d737b12e5629b8abd22808e51a4956 100644 (file)
@@ -1,4 +1,4 @@
-/* $Header: /cvsroot/pgsql/src/interfaces/ecpg/ecpglib/execute.c,v 1.25 2003/09/18 13:12:23 meskes Exp $ */
+/* $Header: /cvsroot/pgsql/src/interfaces/ecpg/ecpglib/execute.c,v 1.26 2003/10/26 09:50:47 meskes Exp $ */
 
 /*
  * The aim is to get a simpler inteface to the database routines.
@@ -450,7 +450,7 @@ ECPGstore_result(const PGresult *results, int act_field,
 
            if (!ECPGget_data(results, act_tuple, act_field, stmt->lineno,
                         var->type, var->ind_type, current_data_location,
-                             var->ind_value, len, 0, 0, isarray, stmt->compat, stmt->force_indicator))
+                             var->ind_value, len, 0, var->ind_offset, isarray, stmt->compat, stmt->force_indicator))
                status = false;
            else
            {