Re: [gnome-db] SQL Query Types
- From: Gonzalo Paniagua Javier <gonzalo gnome-db org>
- To: Gnome-db list <gnome-db-list gnome org>
- Subject: Re: [gnome-db] SQL Query Types
- Date: Sun, 24 Aug 2003 04:01:34 +0200
El dom, 24-08-2003 a las 01:51, Chris Silles escribió:
> > You can always execute any kind of commands using the
> > gda_connection_execute_command/execute_single_command. You don't really
> > need to know what kind of statement it is, unless you want to do some
> > pre-processing.
>
> This isn't the behaviour I'm experiencing with either function. Using a MySQL
> data source, both functions 'gda_connection_execute_command' and
> 'gda_connection_execute_single_command' return a NULL pointer when passed a
> non-query statement, instead of a GList* or GdaDataModel* respectively.
That was fixed in CVS a few days ago:
2003-08-15 Gonzalo Paniagua Javier <gonzalo gnome-db org com>
* providers/mysql/gda-mysql-provider.c: pass the MYSQL pointer to
the new recordset.
* providers/mysql/gda-mysql-recordset.c: if mysql_res is NULL, it
was a non-query: store the number of affected rows.
* providers/mysql/gda-mysql-recordset.h: gda_mysql_recordset_new
has a new parameter. Added 'affected_rows' field.
Fixes bug #119912.
-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]