init web ems all
This commit is contained in:
43
phpMyAdmin/vendor/phpmyadmin/sql-parser/src/Statements/CallStatement.php
vendored
Executable file
43
phpMyAdmin/vendor/phpmyadmin/sql-parser/src/Statements/CallStatement.php
vendored
Executable file
@@ -0,0 +1,43 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* `CALL` statement.
|
||||
*/
|
||||
|
||||
namespace PhpMyAdmin\SqlParser\Statements;
|
||||
|
||||
use PhpMyAdmin\SqlParser\Components\FunctionCall;
|
||||
use PhpMyAdmin\SqlParser\Statement;
|
||||
|
||||
/**
|
||||
* `CALL` statement.
|
||||
*
|
||||
* CALL sp_name([parameter[,...]])
|
||||
*
|
||||
* or
|
||||
*
|
||||
* CALL sp_name[()]
|
||||
*
|
||||
* @category Statements
|
||||
*
|
||||
* @license https://www.gnu.org/licenses/gpl-2.0.txt GPL-2.0+
|
||||
*/
|
||||
class CallStatement extends Statement
|
||||
{
|
||||
/**
|
||||
* The name of the function and its parameters.
|
||||
*
|
||||
* @var FunctionCall
|
||||
*/
|
||||
public $call;
|
||||
|
||||
/**
|
||||
* Build statement for CALL.
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function build()
|
||||
{
|
||||
return "CALL " . $this->call->name . "(" . ($this->call->parameters ? implode(",", $this->call->parameters->raw) : "") . ")";
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user