Skip to content

How to parse SQL procedure CALL #70

Description

@Delicious-Bacon

I have an SQL procedure in MariaDB called bookUPDATE such as this:

BEGIN
	UPDATE book
		SET
			book.Title= v_Title,
			book.ReleaseDate = v_ReleaseDate,
			book.Description = v_Description,
		WHERE book.ID = v_ID;
END

I have an SQL builder for this procedure which creates a string:

q := "CALL bookUPDATE(?, ?, ?, ?); CALL bookUPDATE(?, ?, ?, ?);"

When I do the sqlparser.Parse(q) I get an error syntax error at position 5 near 'call'.

How am I supposed to Parse calling the procedure?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions