Closed neilconway closed 11 years ago
Ah, interesting. The problem is the following:
[tbl_name, column_offset, column_name]
sem_hist.from => x, sem_hist.from => y
). This results in constructing a hash literal with two values for the same key, so Ruby just preserves the last key/value pair (sem_hist.from => y
).One kludgey way to fix the problem would be to have the schema accessors return an additional array element containing a unique ID (e.g., an incremented counter). If anyone has suggestions for a less gross fix, let me know...
Another possible fix would be to rewrite the hash literal into an array literal in the rewriter. Not sure if that is more or less ugly, though...
Test case:
Expected results: empty array Observed results: