@@ -23,7 +23,7 @@ static void _ResultSet_VerboseReplyWithSIValue(RedisModuleCtx *ctx, GraphContext
23
23
const SIValue v ) {
24
24
switch (SI_TYPE (v )) {
25
25
case T_STRING :
26
- RedisModule_ReplyWithSimpleString (ctx , v .stringval );
26
+ RedisModule_ReplyWithStringBuffer (ctx , v .stringval , strlen ( v . stringval ) );
27
27
return ;
28
28
case T_INT64 :
29
29
RedisModule_ReplyWithLongLong (ctx , v .longval );
@@ -71,7 +71,7 @@ static void _ResultSet_VerboseReplyWithProperties(RedisModuleCtx *ctx, GraphCont
71
71
EntityProperty prop = ENTITY_PROPS (e )[i ];
72
72
// Emit the actual string
73
73
const char * prop_str = GraphContext_GetAttributeString (gc , prop .id );
74
- RedisModule_ReplyWithSimpleString (ctx , prop_str );
74
+ RedisModule_ReplyWithStringBuffer (ctx , prop_str , strlen ( prop_str ) );
75
75
// Emit the value
76
76
_ResultSet_VerboseReplyWithSIValue (ctx , gc , prop .value );
77
77
}
@@ -104,7 +104,7 @@ static void _ResultSet_VerboseReplyWithNode(RedisModuleCtx *ctx, GraphContext *g
104
104
for (int i = 0 ; i < lbls_count ; i ++ ) {
105
105
Schema * s = GraphContext_GetSchemaByID (gc , labels [i ], SCHEMA_NODE );
106
106
const char * lbl_name = Schema_GetName (s );
107
- RedisModule_ReplyWithSimpleString (ctx , lbl_name );
107
+ RedisModule_ReplyWithStringBuffer (ctx , lbl_name , strlen ( lbl_name ) );
108
108
}
109
109
110
110
// [properties, [properties]]
@@ -206,6 +206,6 @@ void ResultSet_ReplyWithVerboseHeader(RedisModuleCtx *ctx, const char **columns,
206
206
RedisModule_ReplyWithArray (ctx , columns_len );
207
207
for (uint i = 0 ; i < columns_len ; i ++ ) {
208
208
// Emit the identifier string associated with the column
209
- RedisModule_ReplyWithSimpleString (ctx , columns [i ]);
209
+ RedisModule_ReplyWithStringBuffer (ctx , columns [i ], strlen ( columns [ i ]) );
210
210
}
211
211
}
0 commit comments