Hi!
"sasha" == sasha <sas...@mysql.com> writes:
<cut>
1) Query which returns empty set instead of expected result:
select visitor_id,max(ts) as mts from ct00g00visitors group by visitor_id
having mts < DATE_SUB(NOW(),INTERVAL 3 MONTH);
<cut>
sasha> Here is an unofficial patch for this:
<cut>
sasha> Monty, I know this is not the most efficient way to do this, but I did
not want
sasha> to mess with your val_str() - the right way, of course, is to have a
function
sasha> that will compute the result in time format, and then have val_int()
convert it
sasha> to longlong, and val_str() convert it to a string.
Your patch looks ok, but I have now split the date add/sub code
to make it faster and shorter; This will be in 3.23.22 (I don't
submit a patch now as I want to test this throughly before releasing it!)
Regards,
Monty