original_string: public static function delete($tableName, $whereClause)
      {
          if ($tableName === '') {
              throw new \InvalidArgumentException('The table name must not be empty.', 1331315508);
          }
  
          self::enableQueryLogging();
          $dbResult = self::getDatabaseConnection()->exec_DELETEquery(
              $tableName,
              $whereClause
          );
          if (!$dbResult) {
              throw new \Tx_Phpunit_Exception_Database(1334439746);
          }
  
          return self::getDatabaseConnection()->sql_affected_rows();
      }
code: public static function delete($tableName, $whereClause)
      {
          if ($tableName === '') {
              throw new \InvalidArgumentException('The table name must not be empty.', 1331315508);
          }
  
          self::enableQueryLogging();
          $dbResult = self::getDatabaseConnection()->exec_DELETEquery(
              $tableName,
              $whereClause
          );
          if (!$dbResult) {
              throw new \Tx_Phpunit_Exception_Database(1334439746);
          }
  
          return self::getDatabaseConnection()->sql_affected_rows();
      }
code_tokens: public static function delete ( $ tableName , $ whereClause ) { if ( $ tableName === '' ) { throw new \ InvalidArgumentException ( 'The table name must not be empty.' , 1331315508 ) ; } self :: enableQueryLogging ( ) ; $ dbResult = self :: getDatabaseConnection ( ) -> exec_DELETEquery ( $ tableName , $ whereClause ) ; if ( ! $ dbResult ) { throw new \ Tx_Phpunit_Exception_Database ( 1334439746 ) ; } return self :: getDatabaseConnection ( ) -> sql_affected_rows ( ) ; }
docstring: Executes a DELETE query.
  
  @param string $tableName
  the name of the table from which to delete, must not be empty
  @param string $whereClause
  the WHERE clause to select the records, may be empty
  
  @return int the number of affected rows, might be 0
  
  @throws \InvalidArgumentException
  @throws \Tx_Phpunit_Exception_Database if an error has occurred
docstring_tokens: Executes a DELETE query .