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

sql_mode="oracle" errors on create procedure AS

    XMLWordPrintable

Details

    Description

      proc

      CREATE PROCEDURE remove_emp (employee_id NUMBER) AS tot_emps NUMBER;
         BEGIN
            DELETE FROM employees
            WHERE employees.employee_id = remove_emp.employee_id;
         tot_emps := tot_emps - 1;
         END;
      /
      

      error:

      MariaDB [test]> CREATE PROCEDURE remove_emp (employee_id NUMBER) AS tot_emps NUMBER;
      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 '' at line 1
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            manjot Manjot Singh (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            5 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.