From: Matthew M. <ma...@tu...> - 2002-11-07 15:54:34
|
> You should be able to just decrement the sequence table on an error. Like so? $id = $this->db->nextID(); if (!$core->sqlInsert($valueArray, $tableName)) $this->prevId($tableName); As I said, that won't current work as the sqlInsert will exit when it hits the $core->query() function. FALSE is never returned so the decrement never happens. I can change sqlInsert so that it tells query to acknowledge the error with a FALSE return and NOT exit however. That is the quick fix. The question is should we do this or wait for the Pear team to acknowledge it? Matthew McNaney Internet Systems Architect Electronic Student Services Email: ma...@tu... URL: http://phpwebsite.appstate.edu Phone: 828-262-6493 ICQ: 141057403 |