#36685 [NEW]: [Databases] To change function name, i.e.: rows-affected
From: szczawik dot psq at poczta dot fm
Operating system: doesn't matter
PHP version: 5.1.2
PHP Bug Type: Feature/Change Request
Bug description: [Databases] To change function name, i.e.: rows-affected
Description:
------------
## To support MSSQL, PHP has a function named:
mssql_rows_affected
http://pl.php.net/manual/pl/function.mssql-rows-affected.php
## The same function for MySQL is called:
mysql_affected_rows
http://pl.php.net/manual/pl/function.mysql-affected-rows.php
## Oracle 8 has:
oci_num_rows
http://pl.php.net/manual/pl/function.oci-num-rows.php
## I guess, functions for other DBs have different names as well. It just
brings confussion while rewriting scripts for new environments. Why not to
unify them (all functions, not only 'rows-affected') and just select right
function for an appropriate DB with it's prefix (in example mssql_*,
mysql_*, oci_* and so on..)
--
Edit bug report at http://bugs.php.net/?id=36685&edit=1
--
Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=36685&r=trysnapshot44
Try a CVS snapshot (PHP 5.1): http://bugs.php.net/fix.php?id=36685&r=trysnapshot51
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=36685&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=36685&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=36685&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=36685&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=36685&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=36685&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=36685&r=support
Expected behavior: http://bugs.php.net/fix.php?id=36685&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=36685&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=36685&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=36685&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=36685&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=36685&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=36685&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=36685&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=36685&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=36685&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=36685&r=mysqlcfg
Thread (2 messages)
- szczawik dot psq at poczta dot fm