~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/utility_functions/schema.cc

  • Committer: Stewart Smith
  • Date: 2010-11-03 03:28:23 UTC
  • mto: (1902.1.1 build) (1910.1.2 build)
  • mto: This revision was merged to the branch mainline in revision 1903.
  • Revision ID: stewart@flamingspork.com-20101103032823-44k21f0njmk97omr
fix docs warning: Title underline (and overline) is too short in brief_history_of_drizzle.rst

Show diffs side-by-side

added added

removed removed

Lines of Context:
32
32
String *Schema::val_str(String *str)
33
33
{
34
34
  assert(fixed == 1);
35
 
  util::string::const_shared_ptr schema= getSession().schema();
36
 
  if (not schema or schema->empty())
 
35
  Session *session= current_session;
 
36
  if (session->db.empty())
37
37
  {
38
38
    null_value= 1;
39
39
    return 0;
40
40
  }
41
 
 
42
 
  str->copy(schema->c_str(), schema->size(), system_charset_info);
43
 
 
 
41
  else
 
42
  {
 
43
    str->copy(session->db.c_str(), session->db.length(), system_charset_info);
 
44
  }
44
45
  return str;
45
46
}
46
47