Documentation Home
MySQL Internals Manual
Download this Manual
EPUB - 1.2Mb


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
Sign Up Login You must be logged in to post a comment.