~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/session.h

  • Committer: Brian Aker
  • Date: 2009-09-26 02:16:50 UTC
  • mfrom: (1124.2.11 bug-fixes)
  • Revision ID: brian@gaz-20090926021650-u2pc495bh4vpjt7i
Merge for bug fixes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
786
786
  /** Returns the length of the current query text */
787
787
  inline size_t getQueryLength() const
788
788
  {
789
 
    return strlen(query);
 
789
    if (query != NULL)
 
790
      return strlen(query);
 
791
    else
 
792
      return 0;
790
793
  }
791
794
 
792
795
  /** Accessor method returning the session's ID. */