Closed (duplicate)
Project:
Drupal core
Version:
6.x-dev
Component:
database system
Priority:
Normal
Category:
Task
Assigned:
Reporter:
Created:
25 Sep 2007 at 18:49 UTC
Updated:
17 Oct 2007 at 04:03 UTC
Jump to comment: Most recent file
This patch try to cleanup and synchronize coding style for /includes/database.*.inc, include (P.S. none of logical change to existing implementation):
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | drupal-6.x-dev-database_cleanup-0.5.patch | 31.27 KB | hswong3i |
| #2 | drupal-6.x-dev-database_cleanup-0.4.patch | 31.06 KB | hswong3i |
| #1 | drupal-6.x-dev-database_cleanup-0.3.patch | 32.01 KB | hswong3i |
| drupal-6.x-dev-database_cleanup-0.2.patch | 31.63 KB | hswong3i |
Comments
Comment #1
hswong3i commentedsome more minor update to:
no logical change but only code clean up and sync style
Comment #2
hswong3i commentedpatch updated via latest CVS HEAD, plus minor update to db_query_temporary() and db_query_range(). i change this 2 function as a simple query rewriter, and pass result to db_query() directly for execution (but not _db_query()). e.g. in case of mysql/mysqli:
it seems may have performance degrade (as one more layer of function call), but a benchmarking show out a positive result (reuse all setup as http://drupal.org/node/172541#comment-298711):
this change should able to decrease the workload of database driver maintenance, without losing any performance. hope someone may help about its commit :)
Comment #3
hswong3i commentedpatch still apply to CVS HEAD.
Comment #4
hswong3i commentedpatch still apply to CVS HEAD. rename issue title.
Comment #5
hswong3i commentedpatch updated via CVS HEAD. seems this should be a minor bug report but not feature request :)
Comment #6
chx commentedAnd what exactly is the bug you are fixing here? What functionality is broken?
Comment #7
hswong3i commentedI guess this is a bug fix, since it improve usability of code, decrease the difficulty of maintenance and standardize the coding standard for developers. This is not a "hard" bug but "soft".
It is not functionality fix, as we will not died without this patch, so it is minor.
We are able to cleanup these lossy coding style in D6, without affect any existing code related nor performance; it don't add/drop any API functions; it is transparency to all contribute developers. It should be suitable for D6 as an enhancement. I guess coding style cleanup is always welcome even after beta1, isn't it?
Comment #8
hswong3i commentedThis issue will make as duplicated, as its handling is already split into numbers of small patches, for a easy review and commit. Please refer to the following issues:
http://drupal.org/node/183892 (Group up database.mysql-common.inc)
http://drupal.org/node/183896 (Tidy up database.pgsql.inc)
http://drupal.org/node/183902 (Tidy up database.inc)
http://drupal.org/node/183910 (Simplify db_query_range() and db_query_temporary())