cowboy me, 2.0: jose nazario beauty and the street


bug hunting: mysql



found and filed a bug in MySQL 5 (it's been there since 4, at least).

--- myisam/sort.c.orig  Sat Oct  7 09:47:25 2006
+++ myisam/sort.c       Sat Oct  7 09:47:59 2006
@@ -324,7 +324,7 @@
   if (info->sort_info->got_error)
     goto err;

- if (info->keyinfo->flag && HA_VAR_LENGTH_KEY) + if (info->keyinfo->flag & HA_VAR_LENGTH_KEY) { info->write_keys=write_keys_varlen; info->read_to_buffer=read_to_buffer_varlen; @@ -518,7 +518,7 @@ { if (got_error) continue; - if (sinfo->keyinfo->flag && HA_VAR_LENGTH_KEY) + if (sinfo->keyinfo->flag & HA_VAR_LENGTH_KEY) { sinfo->write_keys=write_keys_varlen; sinfo->read_to_buffer=read_to_buffer_varlen;

|

----

next Saturday, Oct 07, 2006 @ 02:16pm | previous Saturday, Oct 07, 2006 @ 02:13pm | archives

Last modified: Saturday, Oct 07, 2006 @ 02:15pm
Weblog Commenting and Trackback by HaloScan.com

Your Ad Here

copyright © 2002-2014 jose nazario, all rights reserved.