Replace direct mysql_xxx() calls with query_xxx() calls. Replace calls to mysql_insert_id()
with calls specific to the appdb or bugzilla database. Fixes a bug where a call to mysql_insert_id() can potentially retrieve an id from either the bugzilla or appdb database, depending on whichever database was last opened by mysql_connect().
This commit is contained in:
@@ -62,7 +62,7 @@ function test_application_delete()
|
||||
|
||||
if($hResult = query_parameters($sQuery, $iAppId))
|
||||
{
|
||||
$iRows = mysql_num_rows($hResult);
|
||||
$iRows = query_num_rows($hResult);
|
||||
if($iRows > 0)
|
||||
{
|
||||
echo "Found '".$iRows."' versions for this application left over!";
|
||||
|
||||
Reference in New Issue
Block a user