function testSkip_ThrowsAlreadyCalled() {
  var query = new lf.query.SelectBuilder(hr.db.getGlobal(), []);
  var query2 = new lf.query.SelectBuilder(hr.db.getGlobal(), []);
  var emp = db.getSchema().getEmployee();

  var buildQuery = function() {
    query.from(emp).skip(100).skip(100);
  };

  var buildQuery2 = function() {
    query2.from(emp).skip(lf.bind(0)).skip(lf.bind(1));
  };

  // 529: skip() has already been called.
  lf.testing.util.assertThrowsError(529, buildQuery);
  lf.testing.util.assertThrowsError(529, buildQuery2);
}
Tests that Select#skip() fails if skip() has already been called.