postgresql-odbc/postgresql-odbc-09.05.0210-arm-testsuite-fix.patch
Pavel Raiskup edc7ea8a27 check: backport upstream fixes for testsuite
Commits: 186b42c74ea054 1da4f790a11f2.
Discussion:
https://www.postgresql.org/message-id/20160409143629.2BC5CB4C40D@winpg.jp

Resolves: rhbz#1350486
Version: 09.05.0300-2
2016-07-26 15:41:06 +02:00

29 lines
1.1 KiB
Diff

From 1da4f790a11f281cce15a2d3cc16182c099b6d5c Mon Sep 17 00:00:00 2001
From: Hiroshi Inoue <h-inoue@dream.email.ne.jp>
Date: Sun, 24 Jul 2016 18:58:42 +0900
Subject: [PATCH 1/2] Fix regression test failures on armv7hl. 'char' type
seems to mean unsigned char on the platform. Though move_direction member of
QResultClass takes negative values, QR_is_moving_backward() never returns
TRUE. So ensure that move_direction is signed char on any platform.
---
qresult.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/qresult.h b/qresult.h
index 60f449a..b5d878b 100644
--- a/qresult.h
+++ b/qresult.h
@@ -88,7 +88,7 @@ struct QResultClass_
char pstatus; /* processing status */
char aborted; /* was aborted ? */
char flags; /* this result contains keyset etc ? */
- char move_direction; /* must move before fetching this
+ po_ind_t move_direction; /* must move before fetching this
result set */
SQLULEN count_keyset_allocated; /* m(re)alloced count */
SQLULEN num_cached_keys; /* count of keys kept in backend_keys member */
--
2.7.4