From 5b5985e6c0733b4a2a62f808a403b4caf7463fe3 Mon Sep 17 00:00:00 2001 From: Michael Meskes Date: Sun, 13 Nov 2011 13:46:45 +0100 Subject: [PATCH] Applied patch by Zoltan to fix copy&paste bug in ecpg's sqlda handling. --- src/interfaces/ecpg/ecpglib/sqlda.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/interfaces/ecpg/ecpglib/sqlda.c b/src/interfaces/ecpg/ecpglib/sqlda.c index 33b4d2bce3..a1a0e18104 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); -- 2.40.0