function testExec_ThrowsNoPrimaryKey() {
  var jobHistoryRow = lf.testing.hrSchemaSampleData.
      generateSampleJobHistoryData(db);
  var query = new lf.query.InsertBuilder(
      hr.db.getGlobal(), /* allowReplace */ true);

  query.
      into(db.getSchema().getJobHistory()).
      values([jobHistoryRow]);
  // 519: Attempted to insert or replace in a table with no primary key.
  return lf.testing.util.assertPromiseReject(519, query.exec());
}
Tests that Insert#exec() fails if allowReplace is true, for a table that has
no primary key.
@return {!IThenable}