mirror of
https://github.com/MariaDB/server.git
synced 2025-01-16 12:02:42 +01:00
MDEV-9872: used optimized crc32 for SQL CRC32 function
Signed-off-by: Daniel Black <daniel.black@au.ibm.com>
This commit is contained in:
parent
c82bc561b5
commit
45ffbda79e
1 changed files with 1 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue