includes/dbal.php
changeset 1207 044b0062e3bf
parent 1184 2cb6d7086776
child 1227 bdac73ed481e
equal deleted inserted replaced
1206:50f6c144ec68 1207:044b0062e3bf
   516     if ( !$result )
   516     if ( !$result )
   517       return null;
   517       return null;
   518     
   518     
   519     @mysql_free_result($result);
   519     @mysql_free_result($result);
   520     return null;
   520     return null;
       
   521   }
       
   522   
       
   523   /**
       
   524    * Returns the number of rows affected.
       
   525    * @return int
       
   526    */
       
   527   
       
   528   function sql_affectedrows()
       
   529   {
       
   530     return mysql_affected_rows($this->_conn);
   521   }
   531   }
   522   
   532   
   523   /**
   533   /**
   524    * Close the database connection
   534    * Close the database connection
   525    */
   535    */
  1158 		else
  1168 		else
  1159 		{
  1169 		{
  1160 			return ( defined('IN_ENANO_INSTALL') ) ? $GLOBALS["lang"]->get('dbpgsql_msg_err_auth') : 'Access to the database was denied. Ensure that your database exists and that your username and password are correct.';
  1170 			return ( defined('IN_ENANO_INSTALL') ) ? $GLOBALS["lang"]->get('dbpgsql_msg_err_auth') : 'Access to the database was denied. Ensure that your database exists and that your username and password are correct.';
  1161 		}
  1171 		}
  1162 	}
  1172 	}
       
  1173 	
       
  1174 	/**
       
  1175    * Returns the number of rows affected.
       
  1176    * @return int
       
  1177    */
       
  1178   
       
  1179   function sql_affectedrows()
       
  1180   {
       
  1181     return pg_affected_rows($this->latest_result);
       
  1182   }
  1163 
  1183 
  1164   /**
  1184   /**
  1165    * Generates and outputs a report of all the SQL queries made during execution. Should only be called after everything's over with.
  1185    * Generates and outputs a report of all the SQL queries made during execution. Should only be called after everything's over with.
  1166    */
  1186    */
  1167   
  1187