interbase module patch
| From: | Max Derkachev | Date: | Fri, 06 Oct 2000 10:13:40 +0000 |
| Subject: | interbase module patch | ||
| Groups: | php.dev php.general | ||
| Request: | Send a blank email to php-dev+get-34364@lists.php.net to get a copy of this message | ||
I've made some changes to the interbase module - added a possibility to
get affected rows from INSERT, UPDATE and DELETE queries. With the patch
applied, ibase_query will return affected_rows on inserts, updates and
deletes. The code seems to work fine to me.
The patch should be applied to PHP 4.0.2 interbase module distribution.
It changes interbase.c file (revision 1.43).
I compiled it on Debian 2.2, with Linux Interbase 6 library.
I do think that we need a separate ibase_affected_rows() PHP function,
but I'm not a C fan no guru and don't know Zend API good enough :).
Sorry.
I have no access to the cvs repository, so if the code is worth
something, someone who have it, can freely incorporate it to the main
source tree.
!!! DISCLAIMER !!!
I haven't tested this code in production environment yet, so use it on
your own risk !!! I don't bear responsibility for any harm that my code
could cause.
Well, enough :))
--
Best regards,
Max A. Derkachev mailto:kot@books.ru
Symbol-Plus Publishing Ltd.
phone: +7 (812) 265-0054, 265-1228, phone/fax: 567-8775
http://www.Books.Ru -- All Books of Russia