• Jacob Mathew's avatar
    MDEV-10991: Server crashes in spider_udf_direct_sql_create_conn - tests in... · 7cf2428d
    Jacob Mathew authored
    MDEV-10991: Server crashes in spider_udf_direct_sql_create_conn - tests in spider/oracle* suites crash the server
    
    The crash occurs due to code that is #ifdef'd out with HAVE_ORACLE_OCI that
    pertains to the use of Spider with an Oracle data tier. Enabling this code
    eliminates the crash.
    
    The reason that MariaDB needs to support Oracle storage at the data tier is
    to help customers migrate from Oracle. It is necessary to build Spider with
    the additional build flag -DHAVE_ORACLE_OCI, and install and start Oracle
    before running the Oracle test suite or any tests within it. Nevertheless,
    if Spider is built normally and Oracle has not been started, these tests
    should not cause the MariaDB server to crash. The bug fix replaces the
    crash with the following error:
      ERROR 12501 (HY000) at line 4: The connect info 'ORACLE' is invalid
    
    Author:
      Jacob Mathew.
    
    Reviewer:
      Kentoku Shiba.
    7cf2428d
spd_direct_sql.cc 61.7 KB