/*****************************************************************************
*
* Filename         - $Workfile:   add_carrier_map.sql  $
*
*                     Name              Date      Version     CR Number
* Author           - See revision history below.
* Last Update      - See revision history below.
*
* Project Name     - TAGTRAK(Oracle database)
*
* Source Code
* Identifier       - 0/3/300/8010/112
*
* Design Spec
* Section          - 
*
* Contents         - Live schema stored procedure
*
* Language         - Oracle SQL*Plus script
*
* Classification   - Commercial In Confidence
*
*          (c) Ultra Electronics Limited, 1998
*
*****************************************************************************/
/****************************************************************************
* @(#)$Workfile:   add_carrier_map.sql  $  $Revision:   1.3  $
*
* Revision History
*
* Note that user tagtrak is many users. For these users the user
* name is entered as the last line in the change description.
*
* $Log:   /pvcsarch/db_ora/db/source/live/procedures/add_carrier_map.svl  $
* 
*    Rev 1.3   21 Jun 2001 14:37:58   tagtrak
* OR:
* CR:
* Re-baseline version 4.0.0 to include patches.
* 
*    Rev 1.2   20 Sep 1999 14:39:48   tagtrak
*  
* 
*    Rev 1.1   12 Oct 1998 16:42:10   tagtrak
* OR: 12682 12683 12678 12654 12419 12265 12805 12285
* CR: 12682 12683 12678 12654 12419 12265 12805
* REV:
* Vienna enhancements/fixes for database V0.4.1E
* branch ATS revision moved to trunk.
* Andrew Walker
* 
*    Rev 1.0.1.0   25 Sep 1998 12:31:04   tagtrak
* OR: 12682 12683 12678 12654 12419 12265 12285
* CR: 12682 12683 12678 12654 12419 12265
* REV:
* Vienna enhancements for Database 0.4.1
* Andrew Walker
* 
*    Rev 1.0   03 Jun 1998 12:19:52   tagtrak
* Initial Check-In to PVCS
*
****************************************************************************/

PROMPT create or replace procedure add_carrier_map

create or replace procedure add_carrier_map (
	carrier1		in  char,
  carrier2		in  char,
  airdesig1		in  char,
  airdesig2		in  char 
) 
as  
	numrows number;
begin

	/*
	 * Insert trigger on carrier_map table will take care
	 * of deleting any conflicting records prior to adding
	 * the new one.
	 */

	insert into carrier_map (
		airline_code1,
		airline_code2,
		airline_des1,
		airline_des2
	) values (
		carrier1,
		carrier2,
		airdesig1,
		airdesig2
	);

end add_carrier_map;
/
