~stewart/drizzle/bug744206

« back to all changes in this revision

Viewing changes to drizzled/table/instance/base.cc

  • Committer: Mark Atwood
  • Date: 2012-01-04 16:59:32 UTC
  • mfrom: (2478.2.3 real-key-use-catalog)
  • Revision ID: me@mark.atwood.name-20120104165932-cm0xqs4by0u3p4cy
mergeĀ lp:~stewart/drizzle/key-use-catalog

Show diffs side-by-side

added added

removed removed

Lines of Context:
335
335
  table_category=         TABLE_CATEGORY_TEMPORARY;
336
336
  tmp_table=              message::Table::INTERNAL;
337
337
 
338
 
  db= str_ref(private_key_for_cache.vector());
 
338
  db= str_ref(private_key_for_cache.vector() + strlen(private_key_for_cache.vector()) + 1);
339
339
 
340
 
  table_name= str_ref(private_key_for_cache.vector() + strlen(private_key_for_cache.vector()) + 1);
 
340
  table_name= str_ref(db.data() + strlen(db.data()) + 1);
341
341
  path= str_ref("");
342
342
  normalized_path= str_ref("");
343
343
 
469
469
    Let us use the fact that the key is "db/0/table_name/0" + optional
470
470
    part for temporary tables.
471
471
  */
472
 
  db= str_ref(private_key_for_cache.vector());
 
472
  db= str_ref(private_key_for_cache.vector() + strlen(private_key_for_cache.vector()) + 1);
473
473
  table_name= str_ref(db.data() + db.size() + 1);
474
474
 
475
475
  std::string _path;
514
514
    Let us use the fact that the key is "db/0/table_name/0" + optional
515
515
    part for temporary tables.
516
516
  */
517
 
  db= str_ref(private_key_for_cache.vector());
 
517
  db= str_ref(private_key_for_cache.vector() + strlen(private_key_for_cache.vector()) + 1);
518
518
  table_name= str_ref(db.data() + db.size() + 1);
519
519
 
520
520
  getTableMessage()->set_name(identifier_arg.getTableName());