I am using the MySQL connector in Python (3.9 on Windows) to call a stored procedure that does an insert, but when I try to get the last insert ID I get 0, any advice would be greatly appreciated.
What I am calling:
cursor.callproc(procedure_name, params_list)
print('last id:', cursor.lastrowid)
Stored procedure:
CREATE PROCEDURE add_image_path()
BEGIN
INSERT into ImagePath values(0, "test");
END