BUG 9321 executeQuery() does not return the number of records affected..SLOVED
- ExecuteQuery() is supposed to return the number of records affected by DELETE, UPDATE and INSERT commands. - Adjustment in the number of records for different Engines.
This commit is contained in:
@@ -679,6 +679,7 @@ function executeQueryOci ($sql, $connection, $aParameter = array())
|
||||
}
|
||||
}
|
||||
$objExecute = oci_execute( $stid, OCI_DEFAULT );
|
||||
$result = oci_num_rows ($stid);
|
||||
if ($objExecute) {
|
||||
oci_commit( $conn );
|
||||
} else {
|
||||
@@ -688,7 +689,7 @@ function executeQueryOci ($sql, $connection, $aParameter = array())
|
||||
oci_free_statement( $stid );
|
||||
oci_close( $conn );
|
||||
if ($isValid) {
|
||||
return true;
|
||||
return $result;
|
||||
} else {
|
||||
return oci_error();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user