~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/statement/insert_select.cc

  • Committer: Olaf van der Spek
  • Date: 2011-04-04 23:52:30 UTC
  • mto: (2268.1.1 build) (2278.1.2 build)
  • mto: This revision was merged to the branch mainline in revision 2269.
  • Revision ID: olafvdspek@gmail.com-20110404235230-6as2txm60zrm5d3s
UseĀ open_tables

Show diffs side-by-side

added added

removed removed

Lines of Context:
83
83
         TODO: this is a workaround. right way will be move invalidating in
84
84
         the unlock procedure.
85
85
       */
86
 
      if (first_table->lock_type == TL_WRITE_CONCURRENT_INSERT && session().lock)
 
86
      if (first_table->lock_type == TL_WRITE_CONCURRENT_INSERT && session().open_tables.lock)
87
87
      {
88
88
        /* INSERT ... SELECT should invalidate only the very first table */
89
89
        TableList *save_table= first_table->next_local;