Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-16476

PL/SQL CONSTANT declarations

    XMLWordPrintable

Details

    Description

      Variable declaration works:

      DECLARE
        cDate  VARCHAR2(10) := '2011-10-30';
      BEGIN
        NULL;
      END;
      /
      

      Constant declaration does NOT:

      DECLARE
          ->   cDate CONSTANT VARCHAR2(10) := '2011-10-30';
          -> BEGIN
          ->   NULL;
          -> END;
          -> /
      ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'VARCHAR2(10) := '2011-10-30';
      BEGIN
        NULL;
      END' at line 2
      

      See also: MDEV-10591

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              oli Oli Sennhauser
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:

                Git Integration

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