Hi there,

Is there a way to append an array of values to a BUN, instead one value at a time?

sql_table *tbl = mvc_bind_table(m, sch, "atable");

sql_column *col = mvc_bind_column(m, tbl, "acolumn");     
BAT *tmp1 = COLnew(0, TYPE_lng, (BUN)nrows, TRANSIENT);    
long long v_long[3] = {100000000009,100000000010,100000000011}; 

for (irow=0; irow<nrows; irow++) 

     BUNappend(tmp1, &v_long[irow], FALSE);


mvc_append_column(m->session->tr, col1, tmp1);    

mvc_commit(m, 0, tr->name);

bat_destroy(tmp1);


Thanks,
Anton