Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/backend/utils/adt/matrix.c
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ matrix_add(PG_FUNCTION_ARGS)
(errcode(ERRCODE_INVALID_PARAMETER_VALUE),
errmsg("matrix_add: non-conformable arrays")));
}
if (ARR_NULLBITMAP(m) || ARR_NULLBITMAP(n))
if (ARR_HASNULL(m) || ARR_HASNULL(n))
ereport(ERROR,
(errcode(ERRCODE_NULL_VALUE_NOT_ALLOWED),
errmsg("matrix_add: null array element not allowed in this context")));
Expand Down
2 changes: 1 addition & 1 deletion src/fe_utils/log.c
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ cbdb_log(cbdb_log_level level, const char* file, int line, const char* format, .
gettimeofday(&tv, NULL);
ptm = localtime(&tv.tv_sec);
strftime(date, sizeof(date), "%Y-%m-%d %H:%M:%S", ptm);
snprintf(timestamp, MAX_TIMESTAMP_LENGTH, "%s.%06ld", date, tv.tv_usec);
snprintf(timestamp, MAX_TIMESTAMP_LENGTH, "%s.%06ld", date, (long) tv.tv_usec);

// record timestamp, file name, and line num
len = snprintf(NULL, 0, fmt, timestamp, s_level[level], file, line);
Expand Down
9 changes: 0 additions & 9 deletions src/include/crypto/sm4.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,6 @@
#define _SM4_H_
#include "c.h"

typedef signed char int8_t;
typedef unsigned char uint8_t;
typedef short int16_t;
typedef unsigned short uint16_t;
typedef int int32_t;
typedef unsigned int uint32_t;
typedef long int64_t;
typedef unsigned long int uint64_t;

# define SM4_ENCRYPT 1
# define SM4_DECRYPT 0

Expand Down