~drizzle-trunk/drizzle/development

« back to all changes in this revision

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

A few changes to make the patch smaller/easier.

Show diffs side-by-side

added added

removed removed

Lines of Context:
3733
3733
 
3734
3734
        if (trx->isolation_level <= TRX_ISO_READ_COMMITTED
3735
3735
            && prebuilt->select_lock_type != LOCK_NONE
3736
 
#ifdef BUILD_DRIZZLE
3737
 
            && trx->mysql_session != NULL
3738
 
#else
3739
3736
            && trx->mysql_thd != NULL
3740
 
#endif
3741
3737
            && trx->mysql_query_str != NULL
3742
3738
            && *trx->mysql_query_str != NULL) {
3743
3739
 
3745
3741
                word there */
3746
3742
 
3747
3743
                if (dict_str_starts_with_keyword(
3748
 
                            trx->mysql_session, *trx->mysql_query_str, "SELECT")) {
 
3744
                            trx->mysql_thd, *trx->mysql_query_str, "SELECT")) {
3749
3745
                        /* It is a plain locking SELECT and the isolation
3750
3746
                        level is low: do not lock gaps */
3751
3747