1
0
Fork 0
MySQLDumper/library/Msd/Sql/Parser/Statement/Lock.php

36 Zeilen
858 B
PHP

<?php
/**
* This file is part of MySQLDumper released under the GNU/GPL 2 license
* http://www.mysqldumper.net
*
* @package MySQLDumper
* @subpackage SQL-Browser
* @version SVN: $Rev$
* @author $Author$
*/
/**
* Class to parse MySQL LOCK statements.
* This enables you to analyze and modify MySQL queries, which the user has entered.
*
* @package MySQLDumper
* @subpackage SQL-Parser
*/
class Msd_Sql_Parser_Statement_Lock implements Msd_Sql_Parser_Interface
{
/**
* Parse the statement.
*
2011-06-20 18:27:46 +00:00
* @param Msd_Sql_Object $sql MySQL LOCK statement.
*
2011-06-20 18:27:46 +00:00
* @return string
*/
public function parse(Msd_Sql_Object $sql)
{
$sql->setState('Lock');
$endOfStatement = $sql->getPosition(';');
$statement = $sql->getData($endOfStatement);
return $statement;
}
}