]> granicus.if.org Git - postgresql/commitdiff
Applied patch by Zoltan to fix copy&paste bug in ecpg's sqlda handling.
authorMichael Meskes <meskes@postgresql.org>
Sun, 13 Nov 2011 12:46:45 +0000 (13:46 +0100)
committerMichael Meskes <meskes@postgresql.org>
Sun, 13 Nov 2011 12:59:11 +0000 (13:59 +0100)
src/interfaces/ecpg/ecpglib/sqlda.c

index 33b4d2bce3d3e397123c46d66ca61bbee2cf4f1f..a1a0e18104f2b20ba025a41014c5069a5faa57e0 100644 (file)
@@ -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);