Hi Martin,

the following code in basic_csr calculates the new serial:

my $last_req = libDBGetLastItem ("REQUEST");
my $req_elements = 0;
$req_elements = $last_req->getSerial("REQUEST") if ($last_req);
$req_elements >>= getRequired ("ModuleShift");
if ((not defined $req_elements) or ($req_elements < 0)) {
generalError ( gettext ("Database fails during counting the already existing requests!"), 669);
} else {
$req_elements++;
}
my $new_serial = ($req_elements << getRequired ("ModuleShift")) | getRequired ("ModuleID");


1. Is $last_req defined?
2. If $last_req is defined then what does the value be of $last_req->getSerial("REQUEST")?


So perhaps the request 6176 was never loaded from the database. This can happen if the data column is damaged in the database.

Michael
--
-------------------------------------------------------------------
Michael Bell                   Email: [EMAIL PROTECTED]
ZE Computer- und Medienservice            Tel.: +49 (0)30-2093 2482
(Computing Centre)                        Fax:  +49 (0)30-2093 2704
Humboldt-University of Berlin
Unter den Linden 6
10099 Berlin                   Email (private): [EMAIL PROTECTED]
Germany                                       http://www.openca.org


------------------------------------------------------- SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift. http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285 _______________________________________________ OpenCA-Devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/openca-devel

Reply via email to