[Tarantool-patches] [PATCH v1 07/21] sql: rework RANDOMBLOB() function

Mergen Imeev imeevma at tarantool.org
Mon Oct 25 11:36:32 MSK 2021


Thank you for the review! I added a desription to the function.

On Fri, Oct 08, 2021 at 08:31:44PM +0300, Mergen Imeev via Tarantool-patches wrote:
<cut>

diff --git a/src/box/sql/func.c b/src/box/sql/func.c
index d1923e854..b12310cad 100644
--- a/src/box/sql/func.c
+++ b/src/box/sql/func.c
@@ -886,7 +886,12 @@ func_random(struct sql_context *ctx, int argc, struct Mem *argv)
 	mem_set_int(ctx->pOut, r, r < 0);
 }
 
-/** Implementation of the RANDOMBLOB() function. */
+/**
+ * Implementation of the RANDOMBLOB() function.
+ *
+ * This function returns a random VARBINARY value. The size of this value is
+ * specified as an argument of the function.
+ */
 static void
 func_randomblob(struct sql_context *ctx, int argc, struct Mem *argv)
 {


More information about the Tarantool-patches mailing list