#30673 [Opn->WFx]: a mysql and other databases request
| From: | georg@php.net | Date: | Wed, 03 Nov 2004 17:57:42 +0000 |
| Subject: | #30673 [Opn->WFx]: a mysql and other databases request | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-68661@lists.php.net to get a copy of this message | ||
ID: 30673
Updated by: georg@php.net
Reported By: mazdak1 at telia dot com
-Status: Open
+Status: Wont fix
Bug Type: Feature/Change Request
Operating System: irrelevant winxp pro sp1
PHP Version: Irrelevant
New Comment:
Not every database supports retrieval of these values. And
those which supports it, provide SQL commands for.
We will not add new functions which are simple wrappers
for SQL commands. You can do that in your code.
Previous Comments:
------------------------------------------------------------------------
[2004-11-03 16:04:58] mazdak1 at telia dot com
Description:
------------
my name is mazdak.farrokhzad
i would like to request a mysql feature that would be
mysql_db_size(),mysql_table_size(),mysql_column_size()
and mysql_row_size
what it would do is that it would get the lenght of a db,table,column
and row
this would make the amounts of queries less
and this could be implemented for other databases too
if this is for plugin makers could you tell the please
Reproduce code:
---------------
here i am showing an example
mysql_connect('...','...','...');
mysql_select_db('...'); --> beacause db is selected you should not need
to use the db parameters for table,column,row,size
let all functions accept float
and let them return true/false
echo mysql_db_size(mixed_var)/1024.'kb';
echo mysql_table_size(mixed_var)/1024.'kb';
echo mysql_column_size(mixed_var)/1024.'kb';
echo mysql_row_size(mixed_var)/1024.'kb';
Expected result:
----------------
depends on what you have in your code above
like
4kb
1.03715kb
0.005kb
0.000072436kb
Actual result:
--------------
look above
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=30673&edit=1