#30673 [NEW]: a mysql and other databases request
| From: | mazdak1 at telia dot com | Date: | Wed, 03 Nov 2004 15:04:59 +0000 |
| Subject: | #30673 [NEW]: a mysql and other databases request | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-68654@lists.php.net to get a copy of this message | ||
From: mazdak1 at telia dot com
Operating system: irrelevant winxp pro sp1
PHP version: Irrelevant
PHP Bug Type: Feature/Change Request
Bug description: a mysql and other databases request
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 bug report at http://bugs.php.net/?id=30673&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=30673&r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=30673&r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=30673&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=30673&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=30673&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=30673&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=30673&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=30673&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=30673&r=support
Expected behavior: http://bugs.php.net/fix.php?id=30673&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=30673&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=30673&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=30673&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=30673&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=30673&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=30673&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=30673&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=30673&r=float
MySQL Configuration Error: http://bugs.php.net/fix.php?id=30673&r=mysqlcfg