Bug #3380 Stored procedure failure, error if update with function
Submitted: 3 Apr 2004 17:13 Modified: 21 Jul 2004 15:26
Reporter: Peter Gulutzan Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server Severity:S3 (Non-critical)
Version:5.0.1-alpha-debug OS:Linux (SuSE 8.2/Win XP)
Assigned to: Per-Erik Martin CPU Architecture:Any

[3 Apr 2004 17:13] Peter Gulutzan
Description:
UPDATE fails if I assign a function value to a column. The failure occurs only if the new 
value differs from the old. The error message is: Can't find record in 'table name'. 
 

How to repeat:
mysql> create table t (s1 int); 
Query OK, 0 rows affected (0.64 sec) 
 
mysql> create function f () returns int return 7; 
Query OK, 0 rows affected (0.00 sec) 
 
mysql> insert into t values (f()+1); 
Query OK, 1 row affected (0.00 sec) 
 
mysql> update t set s1 = f(); 
ERROR 1032 (HY000): Can't find record in 't'
[21 Jul 2004 15:26] Per-Erik Martin
Thank you for your bug report. This issue has been committed to our
source repository of that product and will be incorporated into the
next release.

If necessary, you can access the source repository and build the latest
available version, including the bugfix, yourself. More information 
about accessing the source trees is available at
    http://www.mysql.com/doc/en/Installing_source_tree.html