Overview
Updates the name of an existing position intab_cargos.
Signature
Parameters
Position ID to update
New position name
Returns
TRUE- Position updated successfullyFALSE- Update failed
Example Usage
Validation Rules
- Position ID must exist in the table
- New position name cannot be NULL
- Position name must meet length requirements
Error Handling
| SQL State | Description |
|---|---|
| 23505 | NULL value in ID field |
| 23514 | Value violates check constraint |
| 02000 | Position ID does not exist |
| 23502 | Attempted to insert NULL value |
| others | Unknown error |
Source
source/func/cargos/fun_update_cargos.sql