[Tarantool-patches] [PATCH v1 06/21] sql: refactor RANDOM() function
Mergen Imeev
imeevma at tarantool.org
Mon Oct 25 11:35:23 MSK 2021
Thank you for the review! I added a description to the function.
On Fri, Oct 08, 2021 at 08:31:43PM +0300, Mergen Imeev via Tarantool-patches wrote:
<cut>
Diff:
diff --git a/src/box/sql/func.c b/src/box/sql/func.c
index 33436da26..b612c6b62 100644
--- a/src/box/sql/func.c
+++ b/src/box/sql/func.c
@@ -871,7 +871,11 @@ func_printf(struct sql_context *ctx, int argc, struct Mem *argv)
mem_set_str_allocated(ctx->pOut, sqlStrAccumFinish(&acc), acc.nChar);
}
-/** Implementation of the RANDOM() function. */
+/**
+ * Implementation of the RANDOM() function.
+ *
+ * This function returns a random INT64 value.
+ */
static void
func_random(struct sql_context *ctx, int argc, struct Mem *argv)
{
More information about the Tarantool-patches
mailing list