$limitString = "LIMIT 0, $totalLimit";
}
$temporaryTable = CRM_Utils_SQL_TempTable::build()
- ->setCategory('srcmailing' . $sourceMailingId)
+ ->setCategory('sr' . $sourceMailingId)
->setMemory()
->createWithColumns("mailing_recipient_id int unsigned, id int PRIMARY KEY AUTO_INCREMENT, INDEX(mailing_recipient_id)");
$temporaryTableName = $temporaryTable->getName();
*/
public function setCategory($category) {
if ($category && !preg_match(self::CATEGORY_REGEXP, $category) || strlen($category) > self::CATEGORY_LENGTH) {
- throw new \RuntimeException("Malformed temp table category");
+ throw new \RuntimeException("Malformed temp table category $category");
}
$this->category = $category;
return $this;