From: Michael Meskes Date: Sun, 13 Nov 2011 12:46:45 +0000 (+0100) Subject: Applied patch by Zoltan to fix copy&paste bug in ecpg's sqlda handling. X-Git-Tag: REL9_0_6~18 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f72baf7e61127eba512e5d0523a4c36ffa704913;p=postgresql Applied patch by Zoltan to fix copy&paste bug in ecpg's sqlda handling. --- diff --git a/src/interfaces/ecpg/ecpglib/sqlda.c b/src/interfaces/ecpg/ecpglib/sqlda.c index e06f25e487..4fb686fb08 100644 --- a/src/interfaces/ecpg/ecpglib/sqlda.c +++ b/src/interfaces/ecpg/ecpglib/sqlda.c @@ -124,7 +124,7 @@ sqlda_common_total_size(const PGresult *res, int row, enum COMPAT_MODE compat, l } break; case ECPGt_date: - ecpg_sqlda_align_add_size(offset, sizeof(int), sizeof(date), &offset, &next_offset); + ecpg_sqlda_align_add_size(offset, sizeof(date), sizeof(date), &offset, &next_offset); break; case ECPGt_timestamp: ecpg_sqlda_align_add_size(offset, sizeof(int), sizeof(timestamp), &offset, &next_offset);