403Webshell
Server IP : 45.40.142.9  /  Your IP : 216.73.216.250
Web Server : Apache
System : Linux s45-40-142-9.secureserver.net 2.6.32-754.35.1.el6.x86_64 #1 SMP Sat Nov 7 12:42:14 UTC 2020 x86_64
User : bayspec ( 506)
PHP Version : 5.6.40
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/share/mysql-test/extra/rpl_tests/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/share/mysql-test/extra/rpl_tests/rpl_gtid_drop_table.inc
# ==== Purpose ====
#
# This include will try to issue the $statement after setting GTID_NEXT to the
# $next_gtid variable expecting $expected_error if it is defined and non-zero.
#
# If the $expected_error is defined and non-zero, this include will also
# rollback the statement to release the ownership of the previously set GTID.
#
# ==== Usage ====
#
# --let $statement= XXX
# --let $next_gtid= 'UUID:NUMBER'
# [--$expected_error= ER_XXX]
# --source extra/rpl_tests/rpl_gtid_drop_table.inc
#
# Parameters:
#   $statement
#     The SQL statement to be executed.
#
#   $next_gtid
#     The GTID to be set as GTID_NEXT.
#
#   $expected_error
#     The error expected when issuing the command.
#     Optional, not set means no expected error.

if (!$statement)
{
  --die ERROR IN TEST: the "statement" variable must be set
}

if (!$next_gtid)
{
  --die ERROR IN TEST: the "next_gtid" variable must be set
}

--eval SET GTID_NEXT= $next_gtid
if ($expected_error)
{
  --echo ## Expecting error $expected_error after the statement
  --error $expected_error
  --eval $statement
  ROLLBACK;
}
if (!$expected_error)
{
  --eval $statement
}

Youez - 2016 - github.com/yon3zu
LinuXploit