sqldata/sqldatacmd.cpp
// Remove foreign keys for selected tables 
Remove foreign keys for selected tables
Remove foreign keys for selected tables
int SqlDataCmd::DropReferences()
{
	if(_target_type != SQLDATA_ORACLE)
		return 0;
	int rc = 0;
	if(_command == SQLDATA_CMD_TRANSFER && 
		(_command_options != SQLDATA_OPT_DROP || _command_options != SQLDATA_OPT_TRUNCATE))
	{
		int keys = 0;
		size_t time_spent = 0;
		_log.Log("\nDropping foreign keys on selected tables in target");
		rc = _sqlData.DropReferences(&keys, &time_spent);
		char time_fmt[21];
		Str::FormatTime(time_spent, time_fmt);
		_log.Log(" (%d key%s, %s)", keys, SUFFIX(keys), time_fmt);
	}
	return rc;
}
int SqlDataCmd :: DropReferences ( ) { if ( _target_type != SQLDATA_ORACLE ) return 0 ; int rc = 0 ; if ( _command == SQLDATA_CMD_TRANSFER && ( _command_options != SQLDATA_OPT_DROP || _command_options != SQLDATA_OPT_TRUNCATE ) ) { int keys = 0 ; size_t time_spent = 0 ; _log . Log ( " \n " ) ; rc = _sqlData . DropReferences ( & keys , & time_spent ) ; char time_fmt [ 21 ] ; Str :: FormatTime ( time_spent , time_fmt ) ; _log . Log ( " " , keys , SUFFIX ( keys ) , time_fmt ) ; } return rc ; }
Remove foreign keys for selected tables
Remove foreign keys for selected tables