[Tarantool-patches] [PATCH v2 09/16] sql: resurrect sql_bind_parameter_name()
Nikita Pettik
korablev at tarantool.org
Fri Dec 13 16:55:55 MSK 2019
On 04 Dec 14:55, Konstantin Osipov wrote:
> * Nikita Pettik <korablev at tarantool.org> [19/11/21 10:00]:
> > +/**
> > + * Return the name of a wildcard parameter. Return NULL if the index
> > + * is out of range or if the wildcard is unnamed.
> > + */
>
> Please document the valid range of the index (0-based I assume)
> > +const char *
> > +sql_bind_parameter_name(sql_stmt *stmt, int i);
> >
Fixed:
diff --git a/src/box/sql/sqlInt.h b/src/box/sql/sqlInt.h
index e5092b7a4..a5c564b8a 100644
--- a/src/box/sql/sqlInt.h
+++ b/src/box/sql/sqlInt.h
@@ -697,7 +697,8 @@ sql_bind_parameter_count(sql_stmt *stmt);
/**
* Return the name of a wildcard parameter. Return NULL if the index
- * is out of range or if the wildcard is unnamed.
+ * is out of range or if the wildcard is unnamed. Parameter's index
+ * is 0-based.
*/
const char *
sql_bind_parameter_name(sql_stmt *stmt, int i);
> --
> Konstantin Osipov, Moscow, Russia
More information about the Tarantool-patches
mailing list