bugPSPP - Bugs: bug #12931, ONEWAY transposes output...

 
 

bug #12931: ONEWAY transposes output rows/columns

Submitter:  Ben Pfaff <blp>
Submitted:  Mon 02 May 2005 06:28:02 AM UTC
   
 
Category:  Output Driver Severity:  7 - Major
Status:  None Assigned to:  jmd
Open/Closed:  Closed Release:  None
Effort:  0.00
* Mandatory Fields

Add a New Comment Rich Markup
   

Tue 03 May 2005 08:28:08 AM UTC, comment #1: 

A fix has been checked in to the CVS repository

John Darrington <jmd>
Group administrator
Mon 02 May 2005 06:28:02 AM UTC, original submission:  

The ONEWAY procedure assumes that hash tables happen to iterate in an expected order.  If they don't, then output rows or columns are transposed.  I changed the hash table implementation and now the tests fail.  I am pretty sure that the hash table is correct and that the ONEWAY code needs fixing.

This comment in ONEWAY makes me assume it's a ONEWAY bug:

/* FIXME: Potential danger here.
   We're ASSUMING THE array is in the order corresponding to the
   hash order. */

Perhaps you could use hsh_sort() or hsh_sort_copy() to help with the solution.

Ben Pfaff <blp>
Group administrator

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

Only logged-in users can vote.

 

Follows 1 latest change.

Date Changed by Updated Field Previous Value => Replaced by
2005-05-03 jmd Open/ClosedOpen Closed

Back to the top

Powered by Savane 3.13-4b48.
Corresponding source code