I have a table where I can’t duplicate a row because one of the fields has a stored procedure, named items.calcPrice, on it that no longer exists.
Here’s the MySQL command:
INSERT INTO items (folder_id)
VALUES (56)
the error message says, "Couldn't write row. FUNCTION items.calcPrice does not exist."
How do I identify and delete this stored procedure on my table? I have 2 fields which have a “price” value so I’m not sure which field this procedure is operating on.
Following our discussion in chat, it appears you have a
BEFORE INSERTtrigger calledItems_Triggerdefined on this table, which attempts to call the function to which your question refers.To delete the trigger: