1. 26 Jan, 2022 31 commits
  2. 25 Jan, 2022 1 commit
  3. 24 Jan, 2022 8 commits
    • Alexander Barkov's avatar
      A clean-up for MDEV-10654 add support IN, OUT, INOUT parameter qualifiers for stored functions · 05050867
      Alexander Barkov authored
      Changes:
      
      1. Enabling IN/OUT/INOUT mode for sql_mode=DEFAULT,
         adding tests for sql_mode=DEFAULT based by mostly
         translating compat/oracle.sp-inout.test to SQL/PSM
         with minor changes (e.g. testing trigger OLD.column and
         NEW.column as IN/OUT parameters).
      
      2. Removing duplicate grammar:
         sp_pdparam and sp_fdparam implemented exactly the same syntax after
         - the first patch for MDEV-10654 (for sql_mode=ORACLE)
         - the change #1 from this patch (for sql_mode=DEFAULT)
         Removing separate rules and adding a single "sp_param" rule instead,
         which now covers both PRDEDURE and FUNCTION parameters
         (and CURSOR parameters as well!).
      
      3. Adding a helper rule sp_param_name_and_mode, which is a combination
         of the parameter name and the IN/OUT/INOUT mode. It allows to simplify
         the grammer a bit.
      
      4. The first patch unintentionally allowed IN/OUT/INOUT mode
        to be specified in CURSOR parameters.
        This is good for the IN keyword - it is allowed in PL/SQL CURSORs.
        This is not good the the OUT/INOUT keywords - they should not be allowed.
        Adding a additional symantic post-check.
      05050867
    • ManoharKB's avatar
      MDEV-10654 add support IN, OUT, INOUT parameter qualifiers for stored functions · 4572dc23
      ManoharKB authored
      Problem: Currently stored function does not support IN/OUT/INOUT parameter qualifiers.
      This is needed for Oracle compatibility (sql_mode = ORACLE).
      
      Solution: Implemented parameter qualifier support to CREATE FUNCTION (reference: CREATE PROCEDURE)
      Implemented return by reference for OUT/INOUT parameters in execute_function() (reference: execute_procedure())
      
      Files changed:
      sql/sql_yacc.yy: Added IN, OUT, INOUT parameter qualifiers for CREATE FUNCTION.
      sql/sp_head.cc: Added input and output parameter binding for IN/OUT/INOUT parameters in execute_function() so that OUT/INOUT can return by reference.
      sql/share/errmsg-utf8.txt: Added error message to restrict OUT/INOUT parameters while function being called from SQL query.
      mysql-test/suite/compat/oracle/t/sp-inout.test: Added test cases
      mysql-test/suite/compat/oracle/r/sp-inout.result: Added test results
      
      Reviewed-by: iqbal@hasprime.com
      4572dc23
    • Nayuta Yanagisawa's avatar
      MDEV-27521 SIGSEGV in spider_parse_connect_info in MDEV-27106 branch · 5595ed9d
      Nayuta Yanagisawa authored
      Add NULL check to SPIDER_OPTION_STR_LIST.
      5595ed9d
    • Nayuta Yanagisawa's avatar
      MDEV-26858 Spider: Remove dead code related to HandlerSocket · 0599dd90
      Nayuta Yanagisawa authored
      Remove the dead-code, in Spider, which is related to the Spider's
      HandlerSocket support. The code has been disabled for a long time
      and it is unlikely that the code will be enabled.
      0599dd90
    • Nayuta Yanagisawa's avatar
      MDEV-27106 Spider: specify connection to data node by engine-defined attributes · 72f34df3
      Nayuta Yanagisawa authored
      We introduce engine-defined attributes to specify remote data nodes.
      
      The engine attributes do not cover all the existing DSN parameters
      because most of them need not be specified at the table level.
      We introduce the following three attributes: REMOTE_SERVER,
      REMOTE_DATABASE, REMOTE_TABLE.
      
      One cannot specify both DSN parameter, in COMMENT or CONNECT, and
      engine-defined attribute that are for the same SPIDER_SHARE attribute.
      For example, Spider returns an error if both COMMENT='table "t1"'
      and REMOTE_TABLE="t2" are specified for a single Spider table or
      a single partition in a Spider table.
      72f34df3
    • Nayuta Yanagisawa's avatar
      MDEV-5271 Support engine-defined attributes per partition · c5d09f73
      Nayuta Yanagisawa authored
      Make it possible to specify engine-defined attributes on partitions
      as well as tables.
      
      If an engine-defined attribute is only specified at the table level,
      it applies to all the partitions in the table.
      This is a backward-compatible behavior.
      
      If the same attribute is specified both at the table level and the
      partition level, the per-partition one takes precedence.
      So, we can consider per-table attributes as default values.
      
      One cannot specify engine-defined attributes on subpartitions.
      
      Implementation details:
      
      * We store per-partition attributes in the partition_element class
        because we already have the part_comment field, which is for
        per-partition comments.
      
      * In the case of ALTER TABLE statements, the partition_elements in
        table->part_info is set up by mysql_unpack_partition().
        So, we parse per-partition attributes after the call of the function.
      c5d09f73
    • Daniel Black's avatar
      MDEV-27314 InnoDB Buffer Pool Resize output cleanup (mtr postfix) · 83dd7db6
      Daniel Black authored
      More tests depending on 'Completed resizing buffer pool.' output
      83dd7db6
    • Haidong Ji's avatar
      MDEV-27314 InnoDB Buffer Pool Resize output cleanup · d0ca235d
      Haidong Ji authored
      Cleaned up the log messages as suggested, with a minor code
      formatting change.
      
      On bullet point 13, I decided to not include timestamp in output
      message. In most (all?) cases, the output goes to the log file,
      which has timestamp already.
      d0ca235d