~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/innobase/handler/ha_innodb.cc

  • Committer: Brian Aker
  • Date: 2009-11-18 06:11:12 UTC
  • mfrom: (1220.1.10 staging)
  • Revision ID: brian@gaz-20091118061112-tyf4qrfr5v7i946b
Monty + Brian Merge.

Show diffs side-by-side

added added

removed removed

Lines of Context:
250
250
    addAlias("INNOBASE");
251
251
  }
252
252
 
 
253
  uint64_t table_flags() const
 
254
  {
 
255
    return (HA_NULL_IN_KEY |
 
256
            HA_CAN_INDEX_BLOBS |
 
257
            HA_PRIMARY_KEY_REQUIRED_FOR_POSITION |
 
258
            HA_PRIMARY_KEY_IN_READ_INDEX |
 
259
            HA_PARTIAL_COLUMN_READ |
 
260
            HA_TABLE_SCAN_ON_INDEX | 
 
261
            HA_MRR_CANT_SORT);
 
262
  }
 
263
 
253
264
  virtual
254
265
  int
255
266
  close_connection(
378
389
                                const char* from, 
379
390
                                const char* to);
380
391
  UNIV_INTERN int doDropTable(Session& session, const string table_path);
 
392
 
 
393
  UNIV_INTERN virtual bool get_error_message(int error, String *buf);
 
394
 
381
395
};
382
396
 
383
397
/** @brief Initialize the default value of innodb_commit_concurrency.
1352
1366
ha_innobase::ha_innobase(drizzled::plugin::StorageEngine &engine_arg,
1353
1367
                         TableShare &table_arg)
1354
1368
  :Cursor(engine_arg, table_arg),
1355
 
  int_table_flags(HA_REC_NOT_IN_SEQ |
1356
 
                  HA_NULL_IN_KEY |
1357
 
                  HA_CAN_INDEX_BLOBS |
1358
 
                  HA_PRIMARY_KEY_REQUIRED_FOR_POSITION |
1359
 
                  HA_PRIMARY_KEY_IN_READ_INDEX |
1360
 
                  HA_PARTIAL_COLUMN_READ |
1361
 
                  HA_TABLE_SCAN_ON_INDEX | 
1362
 
                  HA_MRR_CANT_SORT),
1363
1369
  primary_key(0), /* needs initialization because index_flags() may be called 
1364
1370
                     before this is set to the real value. It's ok to have any 
1365
1371
                     value here because it doesn't matter if we return the
2494
2500
}
2495
2501
 
2496
2502
 
2497
 
 
2498
 
/****************************************************************//**
2499
 
Get the table flags to use for the statement.
2500
 
@return table flags */
2501
 
UNIV_INTERN
2502
 
Cursor::Table_flags
2503
 
ha_innobase::table_flags() const
2504
 
/*============================*/
2505
 
{
2506
 
        return int_table_flags;
2507
 
}
2508
 
 
2509
2503
/****************************************************************//**
2510
2504
Returns the index type. */
2511
2505
UNIV_INTERN
8059
8053
 
8060
8054
        innobase_reset_autoinc(value);
8061
8055
 
8062
 
        return(0);
 
8056
        return 0;
8063
8057
}
8064
8058
 
8065
8059
/* See comment in Cursor.cc */
8066
8060
UNIV_INTERN
8067
8061
bool
8068
 
ha_innobase::get_error_message(int, String *buf)
 
8062
InnobaseEngine::get_error_message(int, String *buf)
8069
8063
{
8070
 
        trx_t*  trx = check_trx_exists(ha_session());
 
8064
        trx_t*  trx = check_trx_exists(current_session);
8071
8065
 
8072
8066
        buf->copy(trx->detailed_error, (uint) strlen(trx->detailed_error),
8073
8067
                system_charset_info);
9083
9077
  NULL
9084
9078
};
9085
9079
 
9086
 
drizzle_declare_plugin(innobase)
 
9080
drizzle_declare_plugin
9087
9081
{
9088
9082
  innobase_engine_name,
9089
9083
  INNODB_VERSION_STR,