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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
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

Add a Patch

Pull Requests

Add a Pull Request

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-2024 The PHP Group
All rights reserved.
Last updated: Mon May 06 15:01:31 2024 UTC