Hi, I'm using the latest stable version of cake (downloaded 3 days ago), and while developing, noticed that on line 550 (and several other locations) in dbo_source.php, there is a call to $model- >onError(). This function is called whenever a query to the database returns an error. However, whenever this call is executed, the result seems to be that that a query, which simply consists of the string "onError" is issued to the database. Since this is not a valid sql statement, it causes a second error on top of the original one, causing two error messages to appear, similar to what i have pasted below. I am not able to find definition of the function onError(). Anyone knows what the purpose of that call is? Thanks.
Ram Query: INSERT INTO `users` (`username`,`password`,`email`,`firstname`,`lastname`,`middlei`,`addr1`,`addr2`,`city`,`state`,`country`,`age`,`created`) VALUES ('ajit','96e7db63cb94a44aabfec7d755eb8f68','[EMAIL PROTECTED]','ajit','ajit','ajit','sdflk','sd;flk','sdflk','sdflk','sd', 34,'2007-04-30 15:57:16') Warning: SQL Error: 1062: Duplicate entry 'ajit' for key 2 in C: \Projects\cartrack\cake\libs\model\datasources\dbo_source.php on line 476 Query: onError Warning: SQL Error: 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'onError' at line 1 in C:\Projects\cartrack\cake \libs\model\datasources\dbo_source.php on line 476 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---