Documentation Home
MySQL Internals Manual


23.18.24 start_stmt

Purpose

Called at the beginning of a statement for transaction purposes.

Synopsis

virtual int start_stmt (

thd,

lock_type);

THD *

thd ;

thr_lock_type

lock_type ;

Description

This is the start_stmt method.

When table is locked a statement is started by calling start_stmt instead of external_lock

Parameters

  • thd

  • lock_type

Return Values

This method has no return values.

Usage

Make any preparations needed for a transaction start (if there is no current running transaction).

Default Implementation

 {return 0;}

User Comments
User comments in this section are, as the name implies, provided by MySQL users. The MySQL documentation team is not responsible for, nor do they endorse, any of the information provided here.
Sign Up Login You must be logged in to post a comment.