Solved

MySQL 1235 error on trigger to call a stored procedure

Posted on 2007-12-05
2
2,522 Views
Last Modified: 2010-08-05
I am receiving the following error when calling a stored procedure in MySQL.  Is there a solution for this problem?

Error
SQL query:
CREATE trigger insert_tblTest AFTER INSERT ON aboutHITDatabase
FOR each
ROW
BEGIN CALL tblAudit(

'USER',
'aboutHITDatabase',
'Copyright',
'new record',
New.Copyright
);

END ;

MySQL said:  
#1235 - This version of MySQL doesn't yet support 'multiple triggers with the same action time and event for one table'

My stored procedure is as follows:
 
CREATE procedure `tblAudit`(pUsername VARCHAR(50), pTableName VARCHAR(50), pFieldName VARCHAR(50), pOldValue LONGTEXT, pNewValue LONGTEXT)
BEGIN
INSERT INTO `History` (`username`,`tableName`, `fieldName`, `oldvalue`, `newvalue`)
VALUES (pUserName, pTableName, pFieldName, pOldValue, pNewValue);
END;

Open in new window

0
Comment
Question by:chaticathe
2 Comments
 
LVL 35

Accepted Solution

by:
Terry Woods earned 500 total points
ID: 20417040
It looks like there's already a trigger for insert on the aboutHITDatabase table. Are you sure you haven't added it already?
0
 

Author Closing Comment

by:chaticathe
ID: 31413004
Thank you so much.  I did not realize there was already an existing trigger on that table.  
0

Featured Post

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Insert values are dynamic 11 42
sort in mysql based off of query param 4 24
sql query to calculate avaerage 21 40
TSQL query to generate xml 4 35
PL/SQL can be a very powerful tool for working directly with database tables. Being able to loop will allow you to perform more complex operations, but can be a little tricky to write correctly. This article will provide examples of basic loops alon…
Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question