~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/innobase/row/row0sel.c

  • Committer: Tim Penhey
  • Date: 2010-01-20 02:39:01 UTC
  • mto: This revision was merged to the branch mainline in revision 1275.
  • Revision ID: tim.penhey@canonical.com-20100120023901-8teeunid6gwlthzx
Add in a rot 13 function.

Show diffs side-by-side

added added

removed removed

Lines of Context:
3352
3352
        }
3353
3353
 
3354
3354
#if 0
 
3355
        /* August 19, 2005 by Heikki: temporarily disable this error
 
3356
        print until the cursor lock count is done correctly.
 
3357
        See bugs #12263 and #12456!*/
 
3358
 
 
3359
        if (trx->n_mysql_tables_in_use == 0
 
3360
            && UNIV_UNLIKELY(prebuilt->select_lock_type == LOCK_NONE)) {
 
3361
                /* Note that if MySQL uses an InnoDB temp table that it
 
3362
                created inside LOCK TABLES, then n_mysql_tables_in_use can
 
3363
                be zero; in that case select_lock_type is set to LOCK_X in
 
3364
                ::start_stmt. */
 
3365
 
 
3366
                fputs("InnoDB: Error: MySQL is trying to perform a SELECT\n"
 
3367
                      "InnoDB: but it has not locked"
 
3368
                      " any tables in ::external_lock()!\n",
 
3369
                      stderr);
 
3370
                trx_print(stderr, trx, 600);
 
3371
                fputc('\n', stderr);
 
3372
        }
 
3373
#endif
 
3374
 
 
3375
#if 0
3355
3376
        fprintf(stderr, "Match mode %lu\n search tuple ",
3356
3377
                (ulong) match_mode);
3357
3378
        dtuple_print(search_tuple);
3473
3494
 
3474
3495
                /* Even if the condition is unique, MySQL seems to try to
3475
3496
                retrieve also a second row if a primary key contains more than
3476
 
                1 column.*/
 
3497
                1 column. Return immediately if this is not a HANDLER
 
3498
                command. */
3477
3499
 
3478
 
                if (UNIV_UNLIKELY(direction != 0)) {
 
3500
                if (UNIV_UNLIKELY(direction != 0
 
3501
                                  && !prebuilt->used_in_HANDLER)) {
3479
3502
 
3480
3503
                        err = DB_RECORD_NOT_FOUND;
3481
3504
                        goto func_exit;
3497
3520
            && unique_search
3498
3521
            && dict_index_is_clust(index)
3499
3522
            && !prebuilt->templ_contains_blob
 
3523
            && !prebuilt->used_in_HANDLER
3500
3524
            && (prebuilt->mysql_row_len < UNIV_PAGE_SIZE / 8)) {
3501
3525
 
3502
3526
                mode = PAGE_CUR_GE;
4280
4304
            && prebuilt->select_lock_type == LOCK_NONE
4281
4305
            && !prebuilt->templ_contains_blob
4282
4306
            && !prebuilt->clust_index_was_generated
 
4307
            && !prebuilt->used_in_HANDLER
4283
4308
            && prebuilt->template_type
4284
4309
            != ROW_MYSQL_DUMMY_TEMPLATE) {
4285
4310
 
4338
4363
        even after a unique search. */
4339
4364
 
4340
4365
        if (!unique_search_from_clust_index
4341
 
            || prebuilt->select_lock_type != LOCK_NONE) {
 
4366
            || prebuilt->select_lock_type != LOCK_NONE
 
4367
            || prebuilt->used_in_HANDLER) {
4342
4368
 
4343
4369
                /* Inside an update always store the cursor position */
4344
4370