[Tarantool-patches] [PATCH v2 13/16] sql: introduce sql_stmt_query_str() method

Vladislav Shpilevoy v.shpilevoy at tarantool.org
Wed Dec 4 01:51:17 MSK 2019


Thanks for the patch!

> diff --git a/src/box/sql/vdbeapi.c b/src/box/sql/vdbeapi.c
> index 10135bb68..0978e12fd 100644
> --- a/src/box/sql/vdbeapi.c
> +++ b/src/box/sql/vdbeapi.c
> @@ -858,6 +858,13 @@ sql_stmt_sizeof(const sql_stmt *stmt)
> +const char *
> +sql_stmt_query_str(const sql_stmt *stmt)
> +{
> +	struct Vdbe *v = (struct Vdbe *) stmt;

'const struct Vdbe *'.

> +	return v->zSql;
> +}
> +
>  /******************************* sql_bind_  **************************
>   *
>   * Routines used to attach values to wildcards in a compiled SQL statement.
> 


More information about the Tarantool-patches mailing list