219
219
#define MY_CHARSET_BIN_MB_MAXLEN 1
221
221
// uncachable cause
222
#define UNCACHEABLE_DEPENDENT 1
223
#define UNCACHEABLE_RAND 2
224
#define UNCACHEABLE_SIDEEFFECT 4
222
static const uint32_t UNCACHEABLE_DEPENDENT= 1;
223
static const uint32_t UNCACHEABLE_RAND= 2;
224
static const uint32_t UNCACHEABLE_SIDEEFFECT= 3;
225
225
/// forcing to save JOIN for explain
226
#define UNCACHEABLE_EXPLAIN 8
226
static const uint32_t UNCACHEABLE_EXPLAIN= 4;
227
227
/** Don't evaluate subqueries in prepare even if they're not correlated */
228
#define UNCACHEABLE_PREPARE 16
228
static const uint32_t UNCACHEABLE_PREPARE= 5;
229
229
/* For uncorrelated SELECT in an UNION with some correlated SELECTs */
230
#define UNCACHEABLE_UNITED 32
230
static const uint32_t UNCACHEABLE_UNITED= 6;
232
232
/* Used to check GROUP BY list in the MODE_ONLY_FULL_GROUP_BY mode */
233
233
#define UNDEF_POS (-1)
235
235
/* Options to add_table_to_list() */
236
#define TL_OPTION_UPDATING 1
237
#define TL_OPTION_FORCE_INDEX 2
238
#define TL_OPTION_IGNORE_LEAVES 4
239
#define TL_OPTION_ALIAS 8
236
static const uint32_t TL_OPTION_UPDATING= 0;
237
static const uint32_t TL_OPTION_FORCE_INDEX= 1;
238
static const uint32_t TL_OPTION_IGNORE_LEAVES= 2;
239
static const uint32_t TL_OPTION_ALIAS= 3;
240
static const uint32_t NUM_OF_TABLE_OPTIONS= 4;
241
242
/* Some portable defines */