enum类型支持空字符串
This commit is contained in:
@ -33,7 +33,7 @@ static int sort_order_cmp(const void* p1, const void* p2);
|
||||
|
||||
#define checkEnumLableValue(val) \
|
||||
do { \
|
||||
if (NAMEDATALEN - 1 < strlen(val) || 0 == strlen(val)) { \
|
||||
if (NAMEDATALEN - 1 < strlen(val) || (0 == strlen(val) && !u_sess->attr.attr_sql.dolphin)) { \
|
||||
ereport(ERROR, \
|
||||
(errcode(ERRCODE_INVALID_NAME), \
|
||||
errmsg("invalid enum label \"%s\"", val), \
|
||||
|
||||
Reference in New Issue
Block a user