~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/cursor.cc

  • Committer: Olaf van der Spek
  • Date: 2011-06-23 10:02:30 UTC
  • mto: This revision was merged to the branch mainline in revision 2348.
  • Revision ID: olafvdspek@gmail.com-20110623100230-w8vx1so32tkxsh6f
Refactor

Show diffs side-by-side

added added

removed removed

Lines of Context:
608
608
  Performs checks upon the table.
609
609
 
610
610
  @param session                thread doing CHECK Table operation
611
 
  @param check_opt          options from the parser
612
611
 
613
612
  @retval
614
613
    HA_ADMIN_OK               Successful upgrade
619
618
  @retval
620
619
    HA_ADMIN_NOT_IMPLEMENTED
621
620
*/
622
 
int Cursor::ha_check(Session *, HA_CHECK_OPT *)
 
621
int Cursor::ha_check(Session *)
623
622
{
624
623
  return HA_ADMIN_OK;
625
624
}
680
679
     * @todo Make TransactionServices generic to AfterTriggerServices
681
680
     * or similar...
682
681
     */
683
 
    Session *const session= getTable()->in_use;
684
 
    TransactionServices &transaction_services= TransactionServices::singleton();
685
 
    transaction_services.truncateTable(*session, *getTable());
 
682
    Session& session= *getTable()->in_use;
 
683
    TransactionServices::singleton().truncateTable(session, *getTable());
686
684
  }
687
685
 
688
686
  return result;
711
709
*/
712
710
 
713
711
int
714
 
Cursor::ha_analyze(Session* session, HA_CHECK_OPT*)
 
712
Cursor::ha_analyze(Session* session)
715
713
{
716
714
  setTransactionReadWrite();
717
715