I've been wracking my brains over this issue over the weekend, and hope someone else can shed light on this ...
I have a table of values that I'm trying to pull into a View ... I want to do grouping, where I'm doing a strcmp between row[0] and row[1], performing an operation *only* when the values are different ...
If I go into the database, and do, as an example:
# select md5(title) from node where title ~* 'serious coffee';
md5
----------------------------------
1c0fcd7bb8ce7033e41958ef6b0f5c2d
1c0fcd7bb8ce7033e41958ef6b0f5c2d
1c0fcd7bb8ce7033e41958ef6b0f5c2d
1c0fcd7bb8ce7033e41958ef6b0f5c2d
1c0fcd7bb8ce7033e41958ef6b0f5c2d
1c0fcd7bb8ce7033e41958ef6b0f5c2d
1c0fcd7bb8ce7033e41958ef6b0f5c2d
1c0fcd7bb8ce7033e41958ef6b0f5c2d
1c0fcd7bb8ce7033e41958ef6b0f5c2d
1c0fcd7bb8ce7033e41958ef6b0f5c2d
(10 rows)
all 10 records are shown to be identical (as I expect them to be) ...
in my view template, I'm doing a printf:
printf("%d:%s%s %d:%s:%s
", $count-1, $rows[$count-1]['title'], md5($rows[$count-1]['title']), $count, $rows[$count-1]['title'], md5($rows[$count]['title']));
that is *should* output the same values for the same records above, but they end up with *each* title having a different md5 checksum even though the text looks to be identical:
2:Serious Coffee:ff64701d5b01ae900d997ebda72e191b