Revision d8c2fd90
Von Moritz Bunkus vor mehr als 17 Jahren hinzugefügt
SL/IC.pm | ||
---|---|---|
347 | 347 |
do_query($form, $dbh, qq|DELETE FROM translation WHERE parts_id = ?|, conv_i($form->{id})); |
348 | 348 |
|
349 | 349 |
} else { |
350 |
my ($count) = selectrow_array($form, $dbh, qq|SELECT COUNT(*) FROM parts WHERE partnumber = ?|, $form->{partnumber});
|
|
350 |
my ($count) = selectrow_query($form, $dbh, qq|SELECT COUNT(*) FROM parts WHERE partnumber = ?|, $form->{partnumber});
|
|
351 | 351 |
if ($count) { |
352 | 352 |
$main::lxdebug->leave_sub(); |
353 | 353 |
return 3; |
354 | 354 |
} |
355 | 355 |
|
356 |
($form->{id}) = selectrow_array($form, $dbh, qq|SELECT nextval('id')|);
|
|
356 |
($form->{id}) = selectrow_query($form, $dbh, qq|SELECT nextval('id')|);
|
|
357 | 357 |
do_query($form, $dbh, qq|INSERT INTO parts (id, partnumber) VALUES (?, '')|, $form->{id}); |
358 | 358 |
|
359 | 359 |
$form->{orphaned} = 1; |
Auch abrufbar als: Unified diff
Falsche DB-Hilfsfunktion verwendet.