[tarantool-patches] Re: [PATCH 2/3] txn: merge struct sql_txn into struct txn

Konstantin Osipov kostja at tarantool.org
Wed Aug 7 18:26:03 MSK 2019


* Nikita Pettik <korablev at tarantool.org> [19/08/07 18:19]:
> +box_txn_savepoint_t *
> +box_txn_savepoint()
> +{
> +	struct txn *txn = in_txn();
> +	if (txn == NULL) {
> +		diag_set(ClientError, ER_NO_TRANSACTION);
> +		return NULL;
> +	}
> +	return txn_savepoint_new(txn, NULL);
> +}

Please don't use box_ API in SQL. We do not use box_ API
exclusively any more, so there is no point in extra wrappers.


-- 
Konstantin Osipov, Moscow, Russia




More information about the Tarantool-patches mailing list