Changeset: 48d8cf69e6ad for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=48d8cf69e6ad
Modified Files:
clients/mapiclient/mclient.c
Branch: Aug2011
Log Message:
mclient: numeric columns need to be counted to calculate width of display.
This was a regression since Aug2011-SP1 so no need for changelog.
diffs (16 lines):
diff --git a/clients/mapiclient/mclient.c b/clients/mapiclient/mclient.c
--- a/clients/mapiclient/mclient.c
+++ b/clients/mapiclient/mclient.c
@@ -1101,7 +1101,11 @@ SQLrenderer(MapiHdl hdl, char singleinst
if (rows == 0) {
minvartotal += len[i]; /* don't wrap column headers if
no data */
- } else if (!numeric[i]) {
+ } else if (numeric[i]) {
+ /* minimum size is equal to maximum size */
+ minvartotal += len[i];
+ } else {
+ /* minimum size for wide columns is MINVARCOLSIZE */
minvartotal += len[i] > MINVARCOLSIZE ? MINVARCOLSIZE :
len[i];
}
vartotal += len[i];
_______________________________________________
Checkin-list mailing list
[email protected]
http://mail.monetdb.org/mailman/listinfo/checkin-list