/usr/share/php/PhpMyAdmin/SqlParser/Statements
NameSizeModeActions
AlterStatement.php37680644editdlrm
AnalyzeStatement.php6360644editdlrm
BackupStatement.php5270644editdlrm
CallStatement.php7390644editdlrm
CheckStatement.php5270644editdlrm
ChecksumStatement.php4510644editdlrm
CreateStatement.php229280644editdlrm
DeleteStatement.php116780644editdlrm
DropStatement.php14330644editdlrm
ExplainStatement.php2000644editdlrm
InsertStatement.php74590644editdlrm
LoadStatement.php110740644editdlrm
LockStatement.php34940644editdlrm
MaintenanceStatement.php15030644editdlrm
NotImplementedStatement.php13740644editdlrm
OptimizeStatement.php6410644editdlrm
PurgeStatement.php38530644editdlrm
RenameStatement.php13770644editdlrm
RepairStatement.php5700644editdlrm
ReplaceStatement.php53350644editdlrm
RestoreStatement.php4770644editdlrm
SelectStatement.php74360644editdlrm
SetStatement.php20280644editdlrm
ShowStatement.php12800644editdlrm
TransactionStatement.php23480644editdlrm
TruncateStatement.php7470644editdlrm
UpdateStatement.php23340644editdlrm
Edit: /usr/share/php/PhpMyAdmin/SqlParser/Statements/TransactionStatement.php (2348B)
1, 'BEGIN' => 1, 'COMMIT' => 1, 'ROLLBACK' => 1, 'WITH CONSISTENT SNAPSHOT' => 2, 'WORK' => 2, 'AND NO CHAIN' => 3, 'AND CHAIN' => 3, 'RELEASE' => 4, 'NO RELEASE' => 4, ]; /** * @param Parser $parser the instance that requests parsing * @param TokensList $list the list of tokens to be parsed */ public function parse(Parser $parser, TokensList $list) { parent::parse($parser, $list); // Checks the type of this query. if ($this->options->has('START TRANSACTION') || $this->options->has('BEGIN') ) { $this->type = self::TYPE_BEGIN; } elseif ($this->options->has('COMMIT') || $this->options->has('ROLLBACK') ) { $this->type = self::TYPE_END; } } /** * @return string */ public function build() { $ret = OptionsArray::build($this->options); if ($this->type === self::TYPE_BEGIN) { foreach ($this->statements as $statement) { /* * @var SelectStatement $statement */ $ret .= ';' . $statement->build(); } $ret .= ';' . $this->end->build(); } return $ret; } }