Closed (won't fix)
Project:
Drupal core
Version:
6.x-dev
Component:
database system
Priority:
Normal
Category:
Task
Assigned:
Reporter:
Created:
16 Oct 2007 at 14:45 UTC
Updated:
21 Nov 2007 at 16:16 UTC
Jump to comment: Most recent file
This is a split version of previous patch: http://drupal.org/node/178555. It is not necessary to maintenance similar codes for query + argument pre-processing among 3 different functions. This patch keep db_query_range() and db_query_temporary() as a simple query builder, and left those pre-processing for db_query(). Similar query builder logic should also able to employ in INSERT/UPDATE/DELETE abstraction for D7, with the help of PDO. No harm to performance based on previous founding. Should be trivial to commit.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | drupal-6.x-dev-range_temporary-0.2.patch | 4.76 KB | hswong3i |
| drupal-6.x-dev-range_temporary-0.1.patch | 4.33 KB | hswong3i |
Comments
Comment #1
hswong3i commentedThis patch is now tested for both MySQL 5.0.32 and PostgreSQL 8.1.9 on Debian etch 4.0r1 with PHP 5.2.0-8+etch7, all passed for search module (search by using db_query_temporary() + db_query_range() in display). Should really trivial to commit, without performance impact but simplify coding style for maintenance.
Comment #2
hswong3i commentedPatch reroll via latest CVS HEAD, with cvs diff.
Comment #3
moshe weitzman commentedseems like a good idea .. we are past fiddling with the DB API for D6. changing version.
Comment #4
hswong3i commentedMy truth position about this issue is: it is useful when I am working with D7 research, without introducing a lot of duplicated handling... It seems to be a fiddling issue, but it also seems fantastic for me if we need to postpone it (as it don't change any core logic, actually...) Anyway, the open of D7-dev shouldn't far from today... I guess so...
Comment #5
chx commentedMoshe, this does not affect the DB API if I am not mistaken, only the implementation.
Comment #6
hswong3i commented@chx: thank you for your kindly support. I guess we are still not too late for refining DB API if possible, would you mind to give a hand about this simple issue, so we won't need to keep it in record for D7?
P.S. maybe a bit off-topic... as we are now refining DB API as perfect as possible for D6, the following DB API cleanup issues may give some help to your current progress, so speeding up our development and simplify maintenance difficulties. Would you mind to give me some help, too?
http://drupal.org/node/183902
http://drupal.org/node/183892
http://drupal.org/node/183896
Comment #7
hswong3i commentedComment #8
hswong3i commentedNothing will happened even without this cleanup. Don't waste time in here.