This adds an affected_rows() method to the Postgres module, which should behave just like the Mysql affected_rows() method. Also, should both of these methods have wrappers in the Sql.Mysql and Sql.Postgres modules so you don't need to call db->master_sql->affected_rows()?
Adam
What we really should have is a real OO model so that these things gets added through inheritance. What we need for that is the ability to return a different object from create (to be backward compatible). E.g. Sql.Sql is both the database type and the database factory.
This would also allow for unique objects, which has been requested several times.
private TheOne neo; class TheOne {
TheOne create() { if(neo) return neo; neo = this_object; } }
Something similar applied. I don't have Postgres installed currently, so please check that it works.
Yep, looks good.
On Fri, 20 Jan 2006 01:40:16 +0000 (UTC) "Martin Nilsson (Opera) @ Pike (-) developers forum" 10353@lyskom.lysator.liu.se wrote:
Something similar applied. I don't have Postgres installed currently, so please check that it works.
pike-devel@lists.lysator.liu.se