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
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
34 - 8 = ?
Subscribe to this entry?

 
 [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: Sun May 19 03:01:33 2024 UTC