php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #36685 [Databases] To change function name, i.e.: rows-affected
Submitted: 2006-03-10 18:31 UTC Modified: 2006-03-11 17:00 UTC
From: szczawik dot psq at poczta dot fm Assigned:
Status: Wont fix Package: Feature/Change Request
PHP Version: 5.1.2 OS: doesn't matter
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: szczawik dot psq at poczta dot fm
New email:
PHP Version: OS:

 

 [2006-03-10 18:31 UTC] szczawik dot psq at poczta dot fm
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..)


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-03-11 17:00 UTC] derick@php.net
Won't happen. We have PDO in PHP 5.1 which implements database access abstraction.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Thu Jul 31 13:00:03 2025 UTC