Re: [gnome-db] Oracle provider not closing connections ?



El mié, 04 de 06 de 2003 a las 11:20, Rodrigo Moya escribió:
> > The Oracle provider does normally provide the correct number and types 
> > for the FIELDS schema[1] but cannot do so when a query it uses to fetch 
> > the necessary data is rejected by oracle with an error.
> > 
> > Rodrigo, what should a provider return when this happens?  NULL?
> > 
> yes, if there's an error, it should return a NULL data model. And of
> course, add the errors (gda_connection_add_error) to the connection.

Returning NULL or not depend on the GdaCommandOptions argument passed to
execute_query. For example, if 2 queries are passed and the first one
fails, if GDA_COMMAND_OPTION_IGNORE_ERRORS is passed, it still returns a
list with 2 models (NULL and the result from the 2nd query). In both
cases, the error(s) are added to the connection.

-Gonzalo

-- 
Gonzalo Paniagua Javier <gonzalo gnome-db org>
http://www.gnome-db.org/~gonzalo/







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