Commit 71981ad7 authored by unknown's avatar unknown
Browse files

Delete files which were accidently created within the last push


BitKeeper/deleted/.del-tool_test.test~7a0c705c995ee523:
  Delete: mysql-test/t/tool_test.test
BitKeeper/deleted/.del-tool_test.result~ec1f972349e9e18:
  Delete: mysql-test/r/tool_test.result
BitKeeper/deleted/.del-ps_12func.test~78bc82c8a4a1ccae:
  Delete: mysql-test/t/ps_12func.test
BitKeeper/deleted/.del-ps_12func.result~d8cce403c6cb460e:
  Delete: mysql-test/r/ps_12func.result
BitKeeper/deleted/.del-patchwork-check.inc~45d0d076850f5c5b:
  Delete: mysql-test/include/patchwork-check.inc
parent c57b7736
Loading
Loading
Loading
Loading
+0 −330
Original line number Diff line number Diff line
###################### patchwork-check.inc #############################
#                                                                      #
#  Basic routine for the generation and execution of prepared and non  #
#  prepared SQL statements.                                            #
#                                                                      #
#  Purpose: Simplify the check of complex statements with different    #
#           sets of parameters (data type, value)                      #
#                                                                      #
########################################################################

#
# NOTE: PLEASE BE VERY CAREFULL, WHEN CHANGING OR USING ;-) THIS ROUTINE.
#
# Please be aware, that this routine
#  -  will be sourced by several test case files stored within the
#     directory 'mysql-test/t'. So every change here will affect
#     several test cases.
#  -  does not check its own prequisites
#  -  modifies the content and the data type of the 
#     uservariables @var_1 ... @var_<n>
#
# Please preserve the '__<name>_' naming of the the auxiliary variables.
# These names should avoid that a test case writer accidently creates a
# variable with the same name. 
#

# naming conventions:
# stmt_c_  --> statement with constants like "select 1 "
# stmt_uv_ --> statement with uservariables like "select @var_1 "
# stmt_ph_ --> prepared statement with placeholders like "select ? "


#
# Explanation how to use this routine by an example:
#
# Content of the caller script:
#   ....
#   set @stmt_part1= 'SELECT f1 + '
#   set @stmt_part2= ' from t1 where f2= ' ;
#   set @stmt_part3= '' ;
#   set @string_1= "1";       set @type_1= "BIGINT";
#   set @string_2= "-2.3E-4"; set @type_2= "DOUBLE";
#   set @max_var_number= 2;
#   --source include/patchwork-check.inc
#
#   # The next testing rounds could start with
#   set @string_1= "NULL";    set @type_1= "BIGINT";
#   set @string_2= "-2.3E-4"; set @type_2= "DOUBLE";
#   --source include/patchwork-check.inc
#
#   set @string_1= "1";       set @type_1= "BIGINT";
#   set @string_2= "NULL";    set @type_2= "LONGTEXT";
#   --source include/patchwork-check.inc
#
# Statements and uservariables to be produced and executed by this routine
#   1.  Statements with constants  
#   1.1 stmt1= SELECT f1 + 1 from t1 where f2= -2.3E-4 ;
#   1.2 stmt1 as prepared statement
#   2.  Statements with uservariables
#       @var_n should be of data type @type_n (if possible) and have the 
#       content @string_n .
#   2.1 stmt2=  SELECT f1 + @var_1 from t1 where f2= @var_2
#   2.2 stmt2 as prepared statement
#   3.  prepared statement with placeholders
#       prepare stmt1 from 'SELECT f1 + ? from t1 where f2= ?'
#       execute stmt1 using @var_1, @var_2 
#
#   Every prepared statement variant of the "patchwork" is 3 times executed.
#
#
# Please have also also a look into 
#   - t/tooltest.test  , which checks                  or
#   - t/ps_12func.test , which contains test cases using
# this routine.
#


##############
#
# Prerequisites:
#
#   The caller script must set the following uservariables:
#
#     The statement pieces: @stmt_part1, @stmt_part2, ... , @stmt_part<n>
#
#     The parameter values: @string_1, ... , @string_<n - 1>
#         The parameter value should fit to the data type !
#         UPPER(@stmt_part1) = 'NULL' will cause (SQL) NULL as content.
#
#     The parameter data types: @type_1, ... , @type_<n - 1>
#         valid types are: BIGINT, DOUBLE, LONGTEXT, LONGBLOB
#
#         Attention: All other type assignments will lead to a 
#                    uservariable of type LONGTEXT !!
#
#     The number of parameter values must be published via
#         set @max_var_number= <n - 1> ;
#         
# Attention: This routine does not perform any check of the content
#            of these variables.
#

##############
#
# How is intended uservariable generated:
#
#   Step 1: generate a uservariable of the intended type
#
#   UPPER(@type_<n>)     statement 
#     BIGINT             set @var_<n>= 0
#     DOUBLE'            set @var_<n>idx_= 0.0
#     LONGTEXT'          set @var_<n>= "INIT"
#     LONGBLOB'          set @var_<n>= CAST("INIT" AS BINARY)
#     <all other>        set @var_<n>= "INIT"
#
#   Step 2: assign the value to the uservariable
#
#   IF ( UPPER(@string_<n>) != 'NULL')
#      UPPER(@type_<n>) 
#          BIGINT        set @var_<n>= CEIL(@string_<n>)
#          DOUBLE        set @var_<n>= @string_<n> + 0.0
#          LONGTEXT      set @var_<n>= @string_<n>
#          LONGBLOB      set @var_<n>= CAST(@string_<n> AS BINARY)
#          <all other>   set @var_<n>= @string_<n>
#   ELSE
#          set @var_<n>= NULL 
#


#
# How to debug this routine if something goes wrong:
#
# 1.   Put the line '--disable_abort_on_error' into the caller script
#        --> There will be no abort of mysqltest, if a statement fails.
#            You will get a protocol (in most cases).
# 2.   Put the line 'set $__debug_= 1 ;' into the caller script .
#      The next call of patchwork-check.inc will print
#      the type and content of generated uservariables and statements.
# 3.   disable the '--disable_query_log' option some lines below
#
# and please be patient towards this routine, it is far away from being perfect.
#


# Suppress the majority of the huge output concerning the statement and 
# uservariable generation
--disable_query_log

let $__idx_= 1 ;
eval set @__stmt_c_=  @stmt_part_$__idx_ ;
# If the number of variables is greater 0, we need also 
# - the statement with uservariables (stmt_uv)           and
# - the prepared statement with placeholders (stmt_ph)   and
# - the execute for the prepared statement with placeholders (execute_stmt_ph)
let $__with_var_= `select @max_var_number > 0`;
while ($__with_var_)
{
  eval set @__stmt_uv_= @stmt_part_$__idx_ ;
  eval set @__stmt_ph_= @stmt_part_$__idx_ ;
  set @__execute_stmt_ph= 'execute __stmt_ph_ using ' ;
  let $__num_= `select @max_var_number`;
  while ($__num_)
  {
    ##### Generate the Uservariables
    eval set @__my_init_= CASE UPPER(@type_$__idx_) 
         WHEN 'BIGINT'   THEN 'set @var_$__idx_= 0'
         WHEN 'DOUBLE'   THEN 'set @var_$__idx_= 0.0'
         WHEN 'LONGTEXT' THEN 'set @var_$__idx_= "INIT"'
         WHEN 'LONGBLOB' THEN 'set @var_$__idx_= CAST("INIT" AS BINARY)'
         ELSE 'set @var_$__idx_= "INIT"' END;
    # select @__my_init_ as "@__my_init_ is: " ;
    let $__my_init_= `select @__my_init_`;
    eval $__my_init_ ;
  
    eval set @__my_init_= CASE UPPER(@type_$__idx_) 
    WHEN 'BIGINT' THEN 
      "set @var_$__idx_= IF(UPPER(@string_$__idx_)!='NULL',CEIL(@string_$__idx_),NULL)" 
    WHEN 'DOUBLE' THEN 
      "set @var_$__idx_= IF(UPPER(@string_$__idx_)!='NULL',@string_$__idx_ + 0.0,NULL)"
    WHEN 'LONGTEXT' THEN
      "set @var_$__idx_= IF(UPPER(@string_$__idx_)!='NULL',@string_$__idx_,NULL)"
    WHEN 'LONGBLOB' THEN
      "set @var_$__idx_= IF(UPPER(@string_$__idx_)!='NULL',CAST(@string_$__idx_ AS BINARY),NULL)"
    ELSE 
      "set @var_$__idx_= IF(UPPER(@string_$__idx_)!='NULL',@string_$__idx_,NULL)" END;
    let $__my_init_= `select @__my_init_`;
    eval $__my_init_ ;

    ##### concat the variable to the statements
    ## with Constants
    #    1. replace ugly NULLs like 'NuLl' with 'NULL' for better readability
    #    2. Strings to be inserted into the statement must be quoted
    eval set @__stmt_c_= concat(
             @__stmt_c_, 
             IF(UPPER(@string_$__idx_)='NULL','NULL',
                  IF(UPPER(@type_$__idx_)='LONGTEXT' or UPPER(@type_$__idx_)='LONGBLOB',
                               concat('''',@string_$__idx_,''''), @string_$__idx_
                      ))) ;
    ## with Uservariables
    eval set @__stmt_uv_= concat(@__stmt_uv_, '@var_$__idx_') ;
    ## with placeholders
    eval set @__stmt_ph_= concat(@__stmt_ph_, '?') ;
  
    ##### complete the execute for the prepared statement with placeholders
    eval set @__execute_stmt_ph= concat(@__execute_stmt_ph, '@var_$__idx_,') ;
  
    inc $__idx_ ;
    ##### concat the next part of the statement to the statements
    eval set @__stmt_c_=  concat(@__stmt_c_,  @stmt_part_$__idx_ );
    eval set @__stmt_uv_= concat(@__stmt_uv_, @stmt_part_$__idx_ );
    eval set @__stmt_ph_= concat(@__stmt_ph_, @stmt_part_$__idx_ );

    dec $__num_ ;
  }
  # @__execute_stmt_ph contains a trailing ',' which must be cut away
  set @__execute_stmt_ph= substr(@__execute_stmt_ph,1,length(@__execute_stmt_ph) - 1);
  dec $__with_var_ ;
}

while ($__debug_)
{
  ### Print debug informations for patchwork with variables
  let $__with_var_= `select @max_var_number > 0`;
  while ($__with_var_)
  {
    ### Print out the content of the statement variables
    eval  select "--------------------------------------"
          as "the content of the statement variables"
    union select concat('@__stmt_c_  is: ',@__stmt_c_) 
    union select concat('@__stmt_uv_ is: ',@__stmt_uv_)
    union select concat('@__stmt_ph_ is: ',@__stmt_ph_)
    union select concat('@__execute_stmt_ph is: ',@__execute_stmt_ph);


    ### Print out the content of the uservariables
    select '--------------------------------------'
          as "the content of the parameter variables";
    set @__parameter_= 'select ';
    let $__num_= `select @max_var_number`;
    let $__idx_= 1 ;
    while ($__num_)
    {
      eval select @type_$__idx_   as type,
                  @string_$__idx_ as string,
                  @var_$__idx_    as uservariable ;
      eval set @__parameter_= concat(@__parameter_, '@var_$__idx_ ,');
      inc $__idx_ ;

      dec $__num_ ;
    }
    # @__parameter_ contains a trailing ',' which must be cut away
    set @__parameter_= substr(@__parameter_,1,length(@__parameter_) - 1);
    let $__aux_= `select @__parameter_` ;
    eval $__aux_ ;


    ### Create a table from the uservariables and print out the column types
    let $__aux_= `select concat('CREATE TABLE t9 AS ',@__parameter_)` ;
    --disable_warnings
    drop table if exists t9;
    --enable_warnings
    eval $__aux_ ;
    show create table t9;
    drop table t9;

    dec $__with_var_ ;
  }
  ### Print debug informations for patchwork without variables
  ###       stmt_uv, stmt_ph, execute_stmt_ph and uservariables do NOT exist
  let $__with_var_= `select @max_var_number = 0`;
  while ($__with_var_)
  {
    ### Print out the content of the statement variables
    eval  select "--------------------------------------"
          as "the content of the statement variable"
    union select concat('@__stmt_c_  is: ',@__stmt_c_) ; 

    dec $__with_var_ ;
  }


  dec $__debug_ ;
}

## copy the statements and the execute into $variables
#  (__stmt_ph_ is not needed)
## + generate the prepared statements
--enable_query_log
let $__stmt_c_=    `select @__stmt_c_`;
eval prepare __stmt_c_  from @__stmt_c_ ;
let $__with_var_= `select @max_var_number > 0`;
while ($__with_var_)
{
  let $__stmt_uv_=   `select @__stmt_uv_`;
  eval prepare __stmt_uv_ from @__stmt_uv_ ;
  let $__execute_ph= `select @__execute_stmt_ph`;
  eval prepare __stmt_ph_ from @__stmt_ph_ ;
  dec $__with_var_ ;
}


##### The execution of all statements
## statement with Constants
eval $__stmt_c_ ;
## prepared statement with Constants
execute __stmt_c_ ;
# Try to detect if the prior executes damaged the parse tree by
# two additional executes .
execute __stmt_c_ ;
execute __stmt_c_ ;
let $__with_var_= `select @max_var_number > 0`;
while ($__with_var_)
{
  ## statement with Uservariables
  eval $__stmt_uv_ ;
  ## prepared statement with Uservariables
  execute __stmt_uv_ ;
  # Try to detect if the prior executes damaged the parse tree by
  # two additional executes .
  execute __stmt_uv_ ;
  execute __stmt_uv_ ;
  ## prepared statement with placeholders
  eval $__execute_ph ;
  # Try to detect if the prior executes damaged the parse tree by
  # two additional executes .
  eval $__execute_ph ;
  eval $__execute_ph ;

  dec $__with_var_ ;
}

mysql-test/r/ps_12func.result

deleted100644 → 0
+0 −4748

File deleted.

Preview size limit exceeded, changes collapsed.

mysql-test/r/tool_test.result

deleted100644 → 0
+0 −223
Original line number Diff line number Diff line
use test ;
set @stmt_part_1= 'SELECT 1 as "my_fine_statement"' ;
set @max_var_number= 0;
the content of the statement variable
--------------------------------------
@__stmt_c_  is: SELECT 1 as "my_fine_statement"
prepare __stmt_c_  from @__stmt_c_ ;
SELECT 1 as "my_fine_statement" ;
my_fine_statement
1
execute __stmt_c_ ;
my_fine_statement
1
execute __stmt_c_ ;
my_fine_statement
1
execute __stmt_c_ ;
my_fine_statement
1
set @stmt_part_1= 'SELECT ' ;
set @stmt_part_2= ' + ' ;
set @stmt_part_3= ' + ' ;
set @stmt_part_4= ' + ' ;
set @stmt_part_5= ' + ' ;
set @stmt_part_6= ' + ' ;
set @stmt_part_7= ' + ' ;
set @stmt_part_8= ' + ' ;
set @stmt_part_9= ' as "my_fine_statement"' ;
set @max_var_number= 8;
set @string_1= '1' ;
set @type_1=   'BIGINT' ;
set @string_2= 'nULL' ;
set @type_2=   'BIGINT' ;
set @string_3= '2.0' ;
set @type_3=   'DOUBLE' ;
set @string_4= 'NuLL' ;
set @type_4=   'DOUBLE' ;
set @string_5= 'TEXT' ;
set @type_5=   'LONGTEXT' ;
set @string_6= 'NUlL' ;
set @type_6=   'LONGTEXT' ;
set @string_7= 'BLOB' ;
set @type_7=   'LONGBLOB' ;
set @string_8= 'NULl' ;
set @type_8=   'LONGBLOB' ;
set @var_1= 'YYYYYYYY' ;
set @var_2= 'YYYYYYYY' ;
set @var_3= 'YYYYYYYY' ;
set @var_4= 'YYYYYYYY' ;
set @var_5= 'YYYYYYYY' ;
set @var_6= 'YYYYYYYY' ;
set @var_7= 'YYYYYYYY' ;
set @var_8= 'YYYYYYYY' ;
the content of the statement variables
--------------------------------------
@__stmt_c_  is: SELECT 1 + NULL + 2.0 + NULL + 'TEXT' + NULL + 'BLOB' + NULL as "my_fine_statement"
@__stmt_uv_ is: SELECT @var_1  + @var_2 + @var_3 + @var_4 + @var_5 + @var_6 + @var_7 + @var_8 as "my_fine_statement"
@__stmt_ph_ is: SELECT ? + ? + ? + ? + ? + ? + ? + ? as "my_fine_statement"
@__execute_stmt_ph is: execute __stmt_ph_ using @var_1 ,@var_2,@var_3,@var_4,@var_5,@var_6,@var_7,@var_8
the content of the parameter variables
--------------------------------------
type	string	uservariable
BIGINT	1	1
type	string	uservariable
BIGINT	nULL	NULL
type	string	uservariable
DOUBLE	2.0	2
type	string	uservariable
DOUBLE	NuLL	NULL
type	string	uservariable
LONGTEXT	TEXT	TEXT
type	string	uservariable
LONGTEXT	NUlL	NULL
type	string	uservariable
LONGBLOB	BLOB	BLOB
type	string	uservariable
LONGBLOB	NULl	NULL
@var_1	@var_2	@var_3	@var_4	@var_5	@var_6	@var_7	@var_8
1	NULL	2	NULL	TEXT	NULL	BLOB	NULL
Table	Create Table
t9	CREATE TABLE `t9` (
  `@var_1` bigint(20) default NULL,
  `@var_2` bigint(20) default NULL,
  `@var_3` double default NULL,
  `@var_4` double default NULL,
  `@var_5` longtext,
  `@var_6` longtext,
  `@var_7` longblob,
  `@var_8` longblob
) ENGINE=MyISAM DEFAULT CHARSET=latin1
prepare __stmt_c_  from @__stmt_c_ ;
prepare __stmt_uv_ from @__stmt_uv_ ;
prepare __stmt_ph_ from @__stmt_ph_ ;
SELECT 1 + NULL + 2.0 + NULL + 'TEXT' + NULL + 'BLOB' + NULL as "my_fine_statement" ;
my_fine_statement
NULL
execute __stmt_c_ ;
my_fine_statement
NULL
execute __stmt_c_ ;
my_fine_statement
NULL
execute __stmt_c_ ;
my_fine_statement
NULL
SELECT @var_1  + @var_2 + @var_3 + @var_4 + @var_5 + @var_6 + @var_7 + @var_8 as "my_fine_statement" ;
my_fine_statement
NULL
execute __stmt_uv_ ;
my_fine_statement
NULL
execute __stmt_uv_ ;
my_fine_statement
NULL
execute __stmt_uv_ ;
my_fine_statement
NULL
execute __stmt_ph_ using @var_1 ,@var_2,@var_3,@var_4,@var_5,@var_6,@var_7,@var_8 ;
my_fine_statement
NULL
execute __stmt_ph_ using @var_1 ,@var_2,@var_3,@var_4,@var_5,@var_6,@var_7,@var_8 ;
my_fine_statement
NULL
execute __stmt_ph_ using @var_1 ,@var_2,@var_3,@var_4,@var_5,@var_6,@var_7,@var_8 ;
my_fine_statement
NULL
set @string_1= '1.0' ;
set @type_1=   'DOUBLE' ;
set @string_2= '3.0' ;
set @type_2=   'DOUBLE' ;
set @string_3= '2' ;
set @type_3=   'BIGINT' ;
set @string_4= '4' ;
set @type_4=   'BIGINT' ;
set @string_5= '5' ;
set @type_5=   'BIGINT' ;
set @string_6= '6' ;
set @type_6=   'DOUBLE' ;
set @string_7= '7' ;
set @type_7=   'DOUBLE' ;
set @string_8= '8' ;
set @type_8=   'DOUBLE' ;
set @var_1= 'YYYYYYYY' ;
set @var_2= 'YYYYYYYY' ;
set @var_3= 'YYYYYYYY' ;
set @var_4= 'YYYYYYYY' ;
set @var_5= 'YYYYYYYY' ;
set @var_6= 'YYYYYYYY' ;
set @var_7= 'YYYYYYYY' ;
set @var_8= 'YYYYYYYY' ;
the content of the statement variables
--------------------------------------
@__stmt_c_  is: SELECT 1.0 + 3.0 + 2 + 4 + 5 + 6 + 7 + 8 as "my_fine_statement"
@__stmt_uv_ is: SELECT @var_1  + @var_2 + @var_3 + @var_4 + @var_5 + @var_6 + @var_7 + @var_8 as "my_fine_statement"
@__stmt_ph_ is: SELECT ? + ? + ? + ? + ? + ? + ? + ? as "my_fine_statement"
@__execute_stmt_ph is: execute __stmt_ph_ using @var_1 ,@var_2,@var_3,@var_4,@var_5,@var_6,@var_7,@var_8
the content of the parameter variables
--------------------------------------
type	string	uservariable
DOUBLE	1.0	1
type	string	uservariable
DOUBLE	3.0	3
type	string	uservariable
BIGINT	2	2
type	string	uservariable
BIGINT	4	4
type	string	uservariable
BIGINT	5	5
type	string	uservariable
DOUBLE	6	6
type	string	uservariable
DOUBLE	7	7
type	string	uservariable
DOUBLE	8	8
@var_1	@var_2	@var_3	@var_4	@var_5	@var_6	@var_7	@var_8
1	3	2	4	5	6	7	8
Table	Create Table
t9	CREATE TABLE `t9` (
  `@var_1` double default NULL,
  `@var_2` double default NULL,
  `@var_3` bigint(20) default NULL,
  `@var_4` bigint(20) default NULL,
  `@var_5` bigint(20) default NULL,
  `@var_6` double default NULL,
  `@var_7` double default NULL,
  `@var_8` double default NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1
prepare __stmt_c_  from @__stmt_c_ ;
prepare __stmt_uv_ from @__stmt_uv_ ;
prepare __stmt_ph_ from @__stmt_ph_ ;
SELECT 1.0 + 3.0 + 2 + 4 + 5 + 6 + 7 + 8 as "my_fine_statement" ;
my_fine_statement
36.0
execute __stmt_c_ ;
my_fine_statement
36.0
execute __stmt_c_ ;
my_fine_statement
36.0
execute __stmt_c_ ;
my_fine_statement
36.0
SELECT @var_1  + @var_2 + @var_3 + @var_4 + @var_5 + @var_6 + @var_7 + @var_8 as "my_fine_statement" ;
my_fine_statement
36
execute __stmt_uv_ ;
my_fine_statement
36
execute __stmt_uv_ ;
my_fine_statement
36
execute __stmt_uv_ ;
my_fine_statement
36
execute __stmt_ph_ using @var_1 ,@var_2,@var_3,@var_4,@var_5,@var_6,@var_7,@var_8 ;
my_fine_statement
36
execute __stmt_ph_ using @var_1 ,@var_2,@var_3,@var_4,@var_5,@var_6,@var_7,@var_8 ;
my_fine_statement
36
execute __stmt_ph_ using @var_1 ,@var_2,@var_3,@var_4,@var_5,@var_6,@var_7,@var_8 ;
my_fine_statement
36

mysql-test/t/ps_12func.test

deleted100644 → 0
+0 −867

File deleted.

Preview size limit exceeded, changes collapsed.

mysql-test/t/tool_test.test

deleted100644 → 0
+0 −105
Original line number Diff line number Diff line
########################### tool_test.test #############################
#                                                                      #
#  Test sequences for the check of mysqltest based test tools          #
#                                                                      #
#  Checked routines:                                                   #
#              include/patchwork-check.inc                             #
#                                                                      #
########################################################################

##### Check of include/patchwork-check.inc
#
use test ;
--disable_abort_on_error

#-----------------------------------------------------------------------
# Simple test (special case):
# The statement is made of only one piece and does not contain variables.
#-----------------------------------------------------------------------
set @stmt_part_1= 'SELECT 1 as "my_fine_statement"' ;
set @max_var_number= 0;
# switch debug output on (Attention: patchwork-check.inc will switch it off)
let $__debug_= 1;
--source include/patchwork-check.inc

#-----------------------------------------------------------------------
# Test case with many statement pieces and variables of all in
# include/patchwork-check.inc available data types.
#-----------------------------------------------------------------------
set @stmt_part_1= 'SELECT ' ;
set @stmt_part_2= ' + ' ;
set @stmt_part_3= ' + ' ;
set @stmt_part_4= ' + ' ;
set @stmt_part_5= ' + ' ;
set @stmt_part_6= ' + ' ;
set @stmt_part_7= ' + ' ;
set @stmt_part_8= ' + ' ;
set @stmt_part_9= ' as "my_fine_statement"' ;
set @max_var_number= 8;

set @string_1= '1' ;
set @type_1=   'BIGINT' ;
set @string_2= 'nULL' ;
set @type_2=   'BIGINT' ;
set @string_3= '2.0' ;
set @type_3=   'DOUBLE' ;
set @string_4= 'NuLL' ;
set @type_4=   'DOUBLE' ;
set @string_5= 'TEXT' ;
set @type_5=   'LONGTEXT' ;
set @string_6= 'NUlL' ;
set @type_6=   'LONGTEXT' ;
set @string_7= 'BLOB' ;
set @type_7=   'LONGBLOB' ;
set @string_8= 'NULl' ;
set @type_8=   'LONGBLOB' ;

# Initialization of all uservariables to the data type LONGTEXT and content,
# which will not be repeated within the following tests.
# 'include/patchwork-check.inc' MUST destroy all these settings.
# That is why this initialization is NOT needed within test cases
# calling include/patchwork-check.inc .
set @var_1= 'YYYYYYYY' ;
set @var_2= 'YYYYYYYY' ;
set @var_3= 'YYYYYYYY' ;
set @var_4= 'YYYYYYYY' ;
set @var_5= 'YYYYYYYY' ;
set @var_6= 'YYYYYYYY' ;
set @var_7= 'YYYYYYYY' ;
set @var_8= 'YYYYYYYY' ;

# switch debug output on (Attention: patchwork-check.inc will switch it off)
let $__debug_= 1;
--source include/patchwork-check.inc

### Execute the statement with more useful content of the variables.
set @string_1= '1.0' ;
set @type_1=   'DOUBLE' ;
set @string_2= '3.0' ;
set @type_2=   'DOUBLE' ;
set @string_3= '2' ;
set @type_3=   'BIGINT' ;
set @string_4= '4' ;
set @type_4=   'BIGINT' ;
set @string_5= '5' ;
set @type_5=   'BIGINT' ;
set @string_6= '6' ;
set @type_6=   'DOUBLE' ;
set @string_7= '7' ;
set @type_7=   'DOUBLE' ;
set @string_8= '8' ;
set @type_8=   'DOUBLE' ;

# Initialization
set @var_1= 'YYYYYYYY' ;
set @var_2= 'YYYYYYYY' ;
set @var_3= 'YYYYYYYY' ;
set @var_4= 'YYYYYYYY' ;
set @var_5= 'YYYYYYYY' ;
set @var_6= 'YYYYYYYY' ;
set @var_7= 'YYYYYYYY' ;
set @var_8= 'YYYYYYYY' ;

# switch debug output on (Attention: include/patchwork-check.inc switches it off)
let $__debug_= 1;
--source include/patchwork-check.inc