Date: 05/07/01
- Next message: juza <email protected>: "[PHP-DEV] Bug #10703: Error unloading php4apache.dll"
- Previous message: Daniel H. Ardison: "[PHP-DEV] Re: Bug #10369 Updated: Openlink4/ODBC odbc_field_type returns nothing"
- In reply to: Zeev Suraski: "Re: [PHP-DEV] Re: mysql and unbuffered queries"
- Next in thread: Cynic: "Re: [PHP-DEV] Re: mysql and unbuffered queries"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On 2001-05-07 12:22:13, "Zeev Suraski" <zeev <email protected>> wrote:
> It's going to be a bit complex to explain why I didn't want this patch,
> but I'll give it a try :)
It's OK, I understand. I just wish that you had said this before I
comitted the patch ;-)
> First off, my personal preference was always to nuke mysql_db_query()
> altogether, as it encourages slow code (very rarely do you get to
specify
> different databases on every query, so setting the database once and
for
> all is much faster, using mysql_select_db()).
I didn't realize this.
> mysql_db_query(), which is
> the rename of PHP/FI 2.0's mysql(), is available for downwards
> compatibility purposes only :)
Nor this.
I started to use mysql_db_query because making persistent connections was
problematic if you used the same username/host pair but wanted different
databases.
> Now, your patch adds a 4th argument to mysql_db_query(), and thus
breaks
> that rule.
I was just following the prototype in the comments for that function,
expecting that someone was going to fill in the code anyway.
> After this whole explanation, I hope you understand why I asked you
> whether you really need it (I knew it was already 'prepared' for such a
> patch :)
I'll rethink my database "strategy".
Do you want me to reverse the patch?
--Wez.
-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: juza <email protected>: "[PHP-DEV] Bug #10703: Error unloading php4apache.dll"
- Previous message: Daniel H. Ardison: "[PHP-DEV] Re: Bug #10369 Updated: Openlink4/ODBC odbc_field_type returns nothing"
- In reply to: Zeev Suraski: "Re: [PHP-DEV] Re: mysql and unbuffered queries"
- Next in thread: Cynic: "Re: [PHP-DEV] Re: mysql and unbuffered queries"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

