Skip to content

Commit

Permalink
MDEV-9872: used optimized crc32 for SQL CRC32 function
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Black <daniel.black@au.ibm.com>
  • Loading branch information
grooverdan authored and Sergey Vojtovich committed Aug 5, 2016
1 parent c82bc56 commit 45ffbda
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions sql/item_strfunc.cc
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@
#include <base64.h>
#include <my_md5.h>
#include "sha1.h"
#include <zlib.h>
C_MODE_START
#include "../mysys/my_static.h" // For soundex_map
C_MODE_END
Expand Down Expand Up @@ -4154,7 +4153,7 @@ longlong Item_func_crc32::val_int()
return 0; /* purecov: inspected */
}
null_value=0;
return (longlong) crc32(0L, (uchar*)res->ptr(), res->length());
return (longlong) my_checksum(0L, (uchar*)res->ptr(), res->length());
}

#ifdef HAVE_COMPRESS
Expand Down

0 comments on commit 45ffbda

Please sign in to comment.