sqldata/sqldata.cpp
// Define foreign key ON UPDATE/ON DELETE action
Define foreign key ON UPDATE/ON DELETE action
Define foreign key ON UPDATE / ON DELETE action
const char* SqlData::GetForeignKeyAction(char action)
{
	const char *act = NULL;
	if(action == FK_ACTION_RESTRICT)
	{
		if(_target_type == SQL_SQL_SERVER)
			act = "NO ACTION";
		else 
			act = "RESTRICT";
	}
	else
	if(action == FK_ACTION_CASCADE)
		act = "CASCADE";
	else
	if(action == FK_ACTION_SET_NULL)
		act = "SET NULL";
	else
	if(action == FK_ACTION_SET_DEFAULT)
		act = "SET DEFAULT";
	return act;
}
const char * SqlData :: GetForeignKeyAction ( char action ) { const char * act = NULL ; if ( action == FK_ACTION_RESTRICT ) { if ( _target_type == SQL_SQL_SERVER ) act = " " ; else act = " " ; } else if ( action == FK_ACTION_CASCADE ) act = " " ; else if ( action == FK_ACTION_SET_NULL ) act = " " ; else if ( action == FK_ACTION_SET_DEFAULT ) act = " " ; return act ; }
Define foreign key ON UPDATE/ON DELETE action
Define foreign key ON UPDATE / ON DELETE action
// RESTRICT in Sybase ASA // CASCADE // SET NULL // SET DEFAULT