Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 0262337

Browse files
author
Michael Meskes
committed
Fixed bug with indicators when storage for the string is dynamically allocated.
1 parent d47e9bd commit 0262337

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

src/interfaces/ecpg/ChangeLog

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1692,6 +1692,11 @@ Sun Oct 19 15:20:16 CEST 2003
16921692
Mon Oct 20 14:53:40 CEST 2003
16931693

16941694
- Install dummy sqlda.h file.
1695+
1696+
Sun Oct 26 10:47:05 CET 2003
1697+
1698+
- Fixed bug with indicators when storage for the
1699+
string is dynamically allocated
16951700
- Set ecpg version to 3.0.0
16961701
- Set ecpg library to 4.0.0
16971702
- Set pgtypes library to 1.0.0

src/interfaces/ecpg/ecpglib/execute.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* $Header: /cvsroot/pgsql/src/interfaces/ecpg/ecpglib/execute.c,v 1.25 2003/09/18 13:12:23 meskes Exp $ */
1+
/* $Header: /cvsroot/pgsql/src/interfaces/ecpg/ecpglib/execute.c,v 1.26 2003/10/26 09:50:47 meskes Exp $ */
22

33
/*
44
* The aim is to get a simpler inteface to the database routines.
@@ -450,7 +450,7 @@ ECPGstore_result(const PGresult *results, int act_field,
450450

451451
if (!ECPGget_data(results, act_tuple, act_field, stmt->lineno,
452452
var->type, var->ind_type, current_data_location,
453-
var->ind_value, len, 0, 0, isarray, stmt->compat, stmt->force_indicator))
453+
var->ind_value, len, 0, var->ind_offset, isarray, stmt->compat, stmt->force_indicator))
454454
status = false;
455455
else
456456
{

0 commit comments

Comments
 (0)