DBD 2.9002 and documentation

nitzan shaked <[email protected]>
Newsgroups gmane.comp.db.mysql.perl
Message-ID <[email protected]>
DBD 2.9002 changed the behavior of returned value from do(): it now returns the number of *matched*
rows by default, and not the number of actually-changed rows. This is documented in the changelog.

However, the DBI documentation states the value returned is the number of affected rows (not
matched rows), and even still claims (under the "MySQL features") that you can "change this using
a connection-string parameter".

This suggests to me that the documentation is wrong: it acknowledges that both options exist, and
that claims the default is something which it's not.

The question is also what happens in the C (and other) API: is this the default or not? Is the default
*different* between APIs?

In short, is this:
1) A documentation error, and all API's are aligned, or:
2) A DBD-specific error, which should conform to some default but doesn't.

Thanks,
Nitzan



-- 
MySQL Perl Mailing List
For list archives: http://lists.mysql.com/perl
To unsubscribe:    http://lists.mysql.com/[email protected]
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.