Uploaded image for project: 'MariaDB ColumnStore'
  1. MariaDB ColumnStore
  2. MCOL-649

stored procedures only work in current database

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Won't Fix
    • 1.0.8
    • Icebox
    • MariaDB Server
    • None

    Description

      If you have a stored procedeure querying a columnstore table without fully qualified table names as below, then it fails with no database set and fails differently if a different database is set. This does not happen if you have a similar proc referencing an innodb table.

      setup conditions:

      MariaDB [test]> create table tb1(i int) engine=columnstore;
      Query OK, 0 rows affected (0.67 sec)
       
      MariaDB [test]> insert into tb1 values (1), (2), (3);
      Query OK, 3 rows affected (0.18 sec)
      Records: 3  Duplicates: 0  Warnings: 0
       
      MariaDB [test]> delimiter //
      MariaDB [test]> create procedure tb1proc()  begin select sum(i) from tb1; end;//
      Query OK, 0 rows affected (0.02 sec)
       
      MariaDB [test]> delimiter ;
      

      now exit and start mcsmysql without selecting a database:

      MariaDB [(none)]> call test.tb1proc();
      ERROR 1178 (42000): The storage engine for the table doesn't support This stored procedure syntax is not supported by Columnstore in this version
       
      MariaDB [information_schema]> use flights
      Database changed
      MariaDB [flights]> call test.tb1proc();
      ERROR 1146 (42S02): Table 'flights.tb1' doesn't exist
      MariaDB [flights]> use test
      Database changed
      MariaDB [test]> call test.tb1proc();
      +--------+
      | sum(i) |
      +--------+
      |      6 |
      +--------+
      1 row in set (0.00 sec)
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            dthompson David Thompson (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Git Integration

                Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.