sqldata/sqldata.cpp
// Perform local connection for metadata read
Perform local connection for metadata read
Perform local connection for metadata read
int SqlData::ConnectMetaDb(SqlDataReply &reply, int db_types)
{
	int s_rc = 0;
	int t_rc = 0;
	int rc = InitLocal(reply, db_types, &s_rc, &t_rc);
	if(rc == -1)
	{
		GetErrors(reply);
		if(s_rc == -1 && t_rc == -1)
			return -1;
	}
	rc = ConnectLocal(reply, db_types, &s_rc, &t_rc);
	return rc;
}
int SqlData :: ConnectMetaDb ( SqlDataReply & reply , int db_types ) { int s_rc = 0 ; int t_rc = 0 ; int rc = InitLocal ( reply , db_types , & s_rc , & t_rc ) ; if ( rc == -1 ) { GetErrors ( reply ) ; if ( s_rc == -1 && t_rc == -1 ) return -1 ; } rc = ConnectLocal ( reply , db_types , & s_rc , & t_rc ) ; return rc ; }
Perform local connection for metadata read
Perform local connection for metadata read
// Initialize local (in-process) database interface // Exist only if both source and target initialized with errors, otherwise try to connect  // to one of the databases (at least test connection) // Connect to source and target databases through in-process interface