Re: [gnome-db] Re: empty dataModel ?



On Wed, 2004-06-23 at 19:52 +0200, Andreas Rottmann wrote:
> Rodrigo Moya <rodrigo gnome-db org> writes:
> 
> > On Wed, 2004-06-23 at 16:28 +0200, Stephane Wirtel wrote:
> >> sorry, but how to create an empty dataModel from a command ? it's for 
> >> gda_connection_execute_single_command if there aren't errors.
> >> 
> > well, there isn't really an 'official' way. We could call
> > gda_data_model_array_new with 0 as the number of columns (although I
> > think it does check for that number to be > 0).
> >
> Wich leaves the question if this check makes sense...
> 
just checked the code, and, in fact, there is no check at all. So, I
guess we can just use:

	empty_model = gda_data_model_array_new (0);

cheers




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]