Commit 45ffbda7 authored by Daniel Black's avatar Daniel Black Committed by Sergey Vojtovich

MDEV-9872: used optimized crc32 for SQL CRC32 function

Signed-off-by: default avatarDaniel Black <daniel.black@au.ibm.com>
parent c82bc561
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment