Details

    Description

      CONNECT won't select into a variable with SET.

      MariaDB [tmp]> SET @foo = (SELECT MIN(col1) FROM long_column_test);
      ERROR 1148 (42000): CONNECT Unsupported command

      However, a workaround currently exists:

      MariaDB [tmp]> SELECT MIN(col1) INTO @foo FROM long_column_test;
      Query OK, 1 row affected (1.30 sec)
       
      MariaDB [tmp]> SELECT @foo;
      +------+
      | @foo |
      +------+
      | a    |
      +------+
      1 row in set (0.00 sec)

      Attachments

        Activity

          GeoffMontee Geoff Montee (Inactive) created issue -
          elenst Elena Stepanova made changes -
          Field Original Value New Value
          Fix Version/s 10.1 [ 16100 ]
          Assignee Olivier Bertrand [ bertrandop ]
          bertrandop Olivier Bertrand made changes -
          Fix Version/s 10.0.18 [ 18702 ]
          Fix Version/s 10.1 [ 16100 ]
          Resolution Fixed [ 1 ]
          Status Open [ 1 ] Closed [ 6 ]
          ratzpo Rasmus Johansson (Inactive) made changes -
          Workflow MariaDB v2 [ 59734 ] MariaDB v3 [ 66215 ]
          serg Sergei Golubchik made changes -
          Workflow MariaDB v3 [ 66215 ] MariaDB v4 [ 148823 ]

          People

            bertrandop Olivier Bertrand
            GeoffMontee Geoff Montee (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 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.