ForwardingTransaction::RenumberForeignKey (open)
Renumbers all references (foreign keys) pointing to a specific id
Syntax
LOADLIB "wh::dbase/transaction.whlib";
RECORD FUNCTION RenumberForeignKey(STRING schemaname, STRING tablename, INTEGER renumberfrom, INTEGER renumberto, RECORD options)Parameters
STRING schemanameSchema containing the table
STRING tablenameTable containing the database row which we're renumbering
INTEGER renumberfromCurrent id
INTEGER renumbertoID to renumber to
RECORD optionsOptions
exceptionsList of columns to skip
exceptions.columnnameName of the column to skip
exceptions.schemanameSchema of the table with the column to skip
exceptions.tablenameTable with the column to skip
BOOLEAN reportmodifiedrowsList of tables to report modifications on
reportmodifiedrows.columnsList of the columns to give back for modified rows
reportmodifiedrows.schemanameSchema of the table to report modifications on
reportmodifiedrows.tablenameTable to report modifications on
Return value
RECORDRenumbering results
modificationsList of modified rows
modifications.columnnameModified column
modifications.rowsModified rows
modifications.schemanameSchema of table with modified column
modifications.tablenameTable with the modified column