Solved

MySQL 1235 error on trigger to call a stored procedure

Posted on 2007-12-05
2
2,521 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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

Confronted with some SQL you don't know can be a daunting task. It can be even more daunting if that SQL carries some of the old secret codes used in the Ye Olde query syntax, such as: (+)     as used in Oracle;     *=     =*    as used in Sybase …
Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
Delivering innovative fully-managed cloud services for mission-critical applications requires expertise in multiple areas plus vision and commitment. Meet a few of the people behind the quality services of Concerto.
Need to grow your business through quality cloud solutions? With everything required to build a cloud platform and solution, you may feel like the distance between you and the cloud is quite long. Help is here. Spend some time learning about the Con…

932 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now