diff --git a/src/gausskernel/runtime/executor/nodeAgg.cpp b/src/gausskernel/runtime/executor/nodeAgg.cpp index 5feabb98b..eb610fd67 100644 --- a/src/gausskernel/runtime/executor/nodeAgg.cpp +++ b/src/gausskernel/runtime/executor/nodeAgg.cpp @@ -290,7 +290,7 @@ Datum get_bit_and_initval(Oid aggtranstype, int typmod) bool is_binary_type_in_dolphin(Oid typeOid) { - if (u_sess->attr.attr_sql.dolphin) { + if (!u_sess->attr.attr_sql.dolphin) { return false; } return (typeOid == get_typeoid(PG_CATALOG_NAMESPACE, "binary")) ||