~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/cursor.cc

  • Committer: Brian Aker
  • Date: 2010-03-31 05:53:34 UTC
  • Revision ID: brian@gaz-20100331055334-yqqmzlgqb2xq1p5b
Mass overhaul to use schema_identifier.

Show diffs side-by-side

added added

removed removed

Lines of Context:
206
206
  assert(table->s == table_share);
207
207
  assert(alloc_root_inited(&table->mem_root));
208
208
 
209
 
  if ((error=open(name,mode,test_if_locked)))
 
209
  if ((error=open(name, mode, test_if_locked)))
210
210
  {
211
211
    if ((error == EACCES || error == EROFS) && mode == O_RDWR &&
212
 
        (table->db_stat & HA_TRY_READ_ONLY))
 
212
        (table->db_stat & HA_TRY_READ_ONLY))
213
213
    {
214
214
      table->db_stat|=HA_READ_ONLY;
215
215
      error=open(name,O_RDONLY,test_if_locked);