Commit 76a2077c authored by Piotr Caban's avatar Piotr Caban Committed by Alexandre Julliard

msi: Remove column_info.temporary field.

parent 15b47513
......@@ -70,7 +70,7 @@ static UINT ALTER_execute( struct tagMSIVIEW *view, MSIRECORD *record )
if (av->colinfo)
return av->table->ops->add_column(av->table, av->colinfo->column,
av->colinfo->type, av->colinfo->temporary, av->hold == 1);
av->colinfo->type, av->hold == 1);
if (av->hold == 1)
av->table->ops->add_ref(av->table);
......
......@@ -181,7 +181,7 @@ UINT CREATE_CreateView( MSIDATABASE *db, MSIVIEW **view, LPCWSTR table,
if (!col->table)
col->table = table;
if( !col->temporary )
if( !(col->type & MSITYPE_TEMPORARY) )
temp = FALSE;
else if ( col->type & MSITYPE_KEY )
tempprim = TRUE;
......
......@@ -222,7 +222,6 @@ typedef struct _column_info
LPCWSTR table;
LPCWSTR column;
INT type;
BOOL temporary;
struct expr *val;
struct _column_info *next;
} column_info;
......@@ -337,7 +336,7 @@ typedef struct tagMSIVIEWOPS
/*
* add_column - adds a column to the table
*/
UINT (*add_column)( struct tagMSIVIEW *view, LPCWSTR column, INT type, BOOL temporary, BOOL hold );
UINT (*add_column)( struct tagMSIVIEW *view, LPCWSTR column, INT type, BOOL hold );
/*
* sort - orders the table by columns
......
......@@ -318,7 +318,6 @@ column_and_type:
{
$$ = $1;
$$->type = ($2 | MSITYPE_VALID);
$$->temporary = $2 & MSITYPE_TEMPORARY ? TRUE : FALSE;
}
;
......
......@@ -764,7 +764,7 @@ UINT msi_create_table( MSIDATABASE *db, LPCWSTR name, column_info *col_info,
table->colinfo[ i ].type = col->type;
table->colinfo[ i ].offset = 0;
table->colinfo[ i ].hash_table = NULL;
table->colinfo[ i ].temporary = col->temporary;
table->colinfo[ i ].temporary = (col->type & MSITYPE_TEMPORARY) != 0;
}
table_calc_column_offsets( db, table->colinfo, table->col_count);
......@@ -2041,9 +2041,10 @@ static UINT TABLE_release(struct tagMSIVIEW *view)
}
static UINT TABLE_add_column(struct tagMSIVIEW *view, LPCWSTR column,
INT type, BOOL temporary, BOOL hold)
INT type, BOOL hold)
{
UINT i, r, table_id, col_id, size, offset;
BOOL temporary = type & MSITYPE_TEMPORARY;
MSITABLEVIEW *tv = (MSITABLEVIEW*)view;
MSICOLUMNINFO *colinfo;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment