MySQL Forums
Forum List  »  Stored Procedures

Re: Error: 1048 Column cannot be null for Insert in Stored Procedure
Posted by: Peter Brawley
Date: December 16, 2012 09:08AM

Your param names are the same as the column names for which they carry input, so MySQL cannot distinguish the param name from the column name.

Always give params names that can't conflict with column names referenced in the sproc. A simple way to do this is to adopt a convention, eg all param references to columns are p_colname.

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: Error: 1048 Column cannot be null for Insert in Stored Procedure
10468
December 16, 2012 09:08AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.