[Tarantool-patches] [PATCH v1 08/21] sql: refactor ZEROBLOB() function

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


Thank you for the review! I added a description for the function.

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

diff --git a/src/box/sql/func.c b/src/box/sql/func.c
index 670bed565..22704a9be 100644
--- a/src/box/sql/func.c
+++ b/src/box/sql/func.c
@@ -913,7 +913,12 @@ func_randomblob(struct sql_context *ctx, int argc, struct Mem *argv)
 	mem_set_bin_allocated(ctx->pOut, res, len);
 }
 
-/** Implementation of the ZEROBLOB() function. */
+/**
+ * Implementation of the ZEROBLOB() function.
+ *
+ * This function returns a zero-filled VARBINARY value. The size of this value
+ * is specified as an argument of the function.
+ */
 static void
 func_zeroblob(struct sql_context *ctx, int argc, struct Mem *argv)
 {


More information about the Tarantool-patches mailing list