sqldata/sqlociapi.cpp
// Get column default by table and column name
Get column default by table and column name
Get column default by table and column name
int SqlOciApi::GetColumnDefault(const char *table, const char *column, std::string & )
{
	if(table == NULL || column == NULL)
		return -1;
	std::string schema;
	std::string object;
	SplitQualifiedName(table, schema, object);
	return 0;
}
int SqlOciApi :: GetColumnDefault ( const char * table , const char * column , std :: string & ) { if ( table == NULL || column == NULL ) return -1 ; std :: string schema ; std :: string object ; SplitQualifiedName ( table , schema , object ) ; return 0 ; }
Get column default by table and column name
Get column default by table and column name
/*col_default*/ // Find table columns (already ordered by column number) /*for(std::list<SqlColMeta>::iterator i = _table_columns.begin(); i != _table_columns.end(); i++)
	{
		if((*i).no_default)
			continue;

		char *s = (*i).schema;
		char *t = (*i).table;
		char *c = (*i).column;
		char *cm = (*i).comment;
		
		// Table found
		if(s != NULL && t != NULL && strcmp(s, schema.c_str()) == 0 && strcmp(t, object.c_str()) == 0)
		{
			// Column found
			if(column != NULL && c != NULL && cm != NULL && strcmp(c, column) == 0)
			{
				comment = cm;
				break;
			}
			else
			// Table comment
			if(column == NULL && c == NULL && cm != NULL && (*i).type == 'T')
			{
				comment = cm;
				break;
			}
		}
	}*/