sqldata/sqlifmxapi.cpp
// Set the connection string in the API object
Set the connection string in the API object
Set the connection string in the API object
void SqlIfmxApi::SetConnectionString(const char *conn)
{
	if(conn == NULL)
		return;
	std::string db;
	SplitConnectionString(conn, _user, _pwd, db);
	const char *start = db.c_str();
	const char *comma = strchr(start, ',');
	if(comma != NULL)
	{
		_server.assign(start, (size_t)(comma - start));
		_db = comma + 1;
	}
	else
		_server = start;
}
void SqlIfmxApi :: SetConnectionString ( const char * conn ) { if ( conn == NULL ) return ; std :: string db ; SplitConnectionString ( conn , _user , _pwd , db ) ; const char * start = db . c_str ( ) ; const char * comma = strchr ( start , ' ' ) ; if ( comma != NULL ) { _server . assign ( start , ( size_t ) ( comma - start ) ) ; _db = comma + 1 ; } else _server = start ; }
Set the connection string in the API object
Set the connection string in the API object
// Find , that denotes the database name // Define server and database name