Re: [gnome-db] IMPACTED_ROWS

Piotr Pokora <[email protected]>
Newsgroups gmane.comp.gnome.db
Message-ID <[email protected]>
Hi!

> So either you have a MySQL server version which I need to handle
> correctly in Libgda or you have a database structure which makes MySQL
> to behave differently, or you have some kind of weird SQL?

Resolved that, finally.
When MySQL performs UPDATE query, it returns numbers of affected rows 
only (and only) if record has been actually changed. I was sure, I run 
the query which updates record with different values.

When I ran it in MySQL prompt I noticed:

0 rows affected
Rows matched: 1

So libgda does correct thing returning 0 in my case.
But some hint is required IMO, anyway.
One doesn't know if 0 means "no matching row" or "row is the same".

I propose to add MATCHED_ROW if possible.

Piotras
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.