MDEV-9872: used optimized crc32 for SQL CRC32 function

Signed-off-by: Daniel Black <daniel.black@au.ibm.com>
This commit is contained in:
Daniel Black 2016-08-05 14:36:07 +10:00 committed by Sergey Vojtovich
parent c82bc561b5
commit 45ffbda79e

View file

@ -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
@ -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