SQL-Box:
- added detection if one or more queries have to be executed - added output summary fro multiple queries
Dieser Commit ist enthalten in:
Ursprung
22ad2d7768
Commit
2e379d8647
4 geänderte Dateien mit 94 neuen und 16 gelöschten Zeilen
35
library/Msd/Sql/Parser/Statement/Set.php
Normale Datei
35
library/Msd/Sql/Parser/Statement/Set.php
Normale Datei
|
|
@ -0,0 +1,35 @@
|
|||
<?php
|
||||
/**
|
||||
* This file is part of MySQLDumper released under the GNU/GPL 2 license
|
||||
* http://www.mysqldumper.net
|
||||
*
|
||||
* @package MySQLDumper
|
||||
* @subpackage SQL-Parser
|
||||
* @version SVN: $Rev$
|
||||
* @author $Author$
|
||||
*/
|
||||
|
||||
/**
|
||||
* Class to parse MySQL CREATE 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_Set implements Msd_Sql_Parser_Interface
|
||||
{
|
||||
/**
|
||||
* Parse the statement.
|
||||
*
|
||||
* @param Msd_Sql_Object $statement MySQL CREATE statement.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function parse(Msd_Sql_Object $sql)
|
||||
{
|
||||
$sql->setState('Set');
|
||||
$endOfStatement = $sql->getPosition(';');
|
||||
$statement = $sql->getData($endOfStatement);
|
||||
return $statement;
|
||||
}
|
||||
}
|
||||
Laden …
Tabelle hinzufügen
Einen Link hinzufügen
In neuem Issue referenzieren