Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
b4044128
Commit
b4044128
authored
Nov 18, 2003
by
bell@sanja.is.com.ua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
changed name of bit on more descriptive (after rewie change)
parent
b02af20a
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
14 additions
and
14 deletions
+14
-14
sql/item_create.cc
sql/item_create.cc
+5
-5
sql/item_func.cc
sql/item_func.cc
+2
-2
sql/mysql_priv.h
sql/mysql_priv.h
+1
-1
sql/sql_lex.h
sql/sql_lex.h
+1
-1
sql/sql_yacc.yy
sql/sql_yacc.yy
+5
-5
No files found.
sql/item_create.cc
View file @
b4044128
...
@@ -159,7 +159,7 @@ Item *create_func_from_days(Item* a)
...
@@ -159,7 +159,7 @@ Item *create_func_from_days(Item* a)
Item
*
create_func_get_lock
(
Item
*
a
,
Item
*
b
)
Item
*
create_func_get_lock
(
Item
*
a
,
Item
*
b
)
{
{
current_thd
->
lex
.
uncacheable
(
UNCACHEABLE_
UNCACHEABLE
);
current_thd
->
lex
.
uncacheable
(
UNCACHEABLE_
SIDEEFFECT
);
return
new
Item_func_get_lock
(
a
,
b
);
return
new
Item_func_get_lock
(
a
,
b
);
}
}
...
@@ -324,7 +324,7 @@ Item *create_func_radians(Item *a)
...
@@ -324,7 +324,7 @@ Item *create_func_radians(Item *a)
Item
*
create_func_release_lock
(
Item
*
a
)
Item
*
create_func_release_lock
(
Item
*
a
)
{
{
current_thd
->
lex
.
uncacheable
(
UNCACHEABLE_
UNCACHEABLE
);
current_thd
->
lex
.
uncacheable
(
UNCACHEABLE_
SIDEEFFECT
);
return
new
Item_func_release_lock
(
a
);
return
new
Item_func_release_lock
(
a
);
}
}
...
@@ -445,7 +445,7 @@ Item *create_func_year(Item* a)
...
@@ -445,7 +445,7 @@ Item *create_func_year(Item* a)
Item
*
create_load_file
(
Item
*
a
)
Item
*
create_load_file
(
Item
*
a
)
{
{
current_thd
->
lex
.
uncacheable
(
UNCACHEABLE_
UNCACHEABLE
);
current_thd
->
lex
.
uncacheable
(
UNCACHEABLE_
SIDEEFFECT
);
return
new
Item_load_file
(
a
);
return
new
Item_load_file
(
a
);
}
}
...
@@ -472,13 +472,13 @@ Item *create_func_cast(Item *a, Cast_target cast_type, int len,
...
@@ -472,13 +472,13 @@ Item *create_func_cast(Item *a, Cast_target cast_type, int len,
Item
*
create_func_is_free_lock
(
Item
*
a
)
Item
*
create_func_is_free_lock
(
Item
*
a
)
{
{
current_thd
->
lex
.
uncacheable
(
UNCACHEABLE_
UNCACHEABLE
);
current_thd
->
lex
.
uncacheable
(
UNCACHEABLE_
SIDEEFFECT
);
return
new
Item_func_is_free_lock
(
a
);
return
new
Item_func_is_free_lock
(
a
);
}
}
Item
*
create_func_is_used_lock
(
Item
*
a
)
Item
*
create_func_is_used_lock
(
Item
*
a
)
{
{
current_thd
->
lex
.
uncacheable
(
UNCACHEABLE_
UNCACHEABLE
);
current_thd
->
lex
.
uncacheable
(
UNCACHEABLE_
SIDEEFFECT
);
return
new
Item_func_is_used_lock
(
a
);
return
new
Item_func_is_used_lock
(
a
);
}
}
...
...
sql/item_func.cc
View file @
b4044128
...
@@ -2950,7 +2950,7 @@ Item *get_system_var(THD *thd, enum_var_type var_type, LEX_STRING name,
...
@@ -2950,7 +2950,7 @@ Item *get_system_var(THD *thd, enum_var_type var_type, LEX_STRING name,
}
}
if
(
!
(
item
=
var
->
item
(
thd
,
var_type
,
component_name
)))
if
(
!
(
item
=
var
->
item
(
thd
,
var_type
,
component_name
)))
return
0
;
// Impossible
return
0
;
// Impossible
thd
->
lex
.
uncacheable
(
UNCACHEABLE_
UNCACHEABLE
);
thd
->
lex
.
uncacheable
(
UNCACHEABLE_
SIDEEFFECT
);
buff
[
0
]
=
'@'
;
buff
[
0
]
=
'@'
;
buff
[
1
]
=
'@'
;
buff
[
1
]
=
'@'
;
pos
=
buff
+
2
;
pos
=
buff
+
2
;
...
@@ -2990,7 +2990,7 @@ Item *get_system_var(THD *thd, enum_var_type var_type, const char *var_name,
...
@@ -2990,7 +2990,7 @@ Item *get_system_var(THD *thd, enum_var_type var_type, const char *var_name,
DBUG_ASSERT
(
var
!=
0
);
DBUG_ASSERT
(
var
!=
0
);
if
(
!
(
item
=
var
->
item
(
thd
,
var_type
,
&
null_lex_string
)))
if
(
!
(
item
=
var
->
item
(
thd
,
var_type
,
&
null_lex_string
)))
return
0
;
// Impossible
return
0
;
// Impossible
thd
->
lex
.
uncacheable
(
UNCACHEABLE_
UNCACHEABLE
);
thd
->
lex
.
uncacheable
(
UNCACHEABLE_
SIDEEFFECT
);
item
->
set_name
(
item_name
,
0
,
system_charset_info
);
// Will use original name
item
->
set_name
(
item_name
,
0
,
system_charset_info
);
// Will use original name
return
item
;
return
item
;
}
}
...
...
sql/mysql_priv.h
View file @
b4044128
...
@@ -251,7 +251,7 @@ extern CHARSET_INFO *national_charset_info, *table_alias_charset;
...
@@ -251,7 +251,7 @@ extern CHARSET_INFO *national_charset_info, *table_alias_charset;
// uncachable cause
// uncachable cause
#define UNCACHEABLE_DEPENDENT 1
#define UNCACHEABLE_DEPENDENT 1
#define UNCACHEABLE_RAND 2
#define UNCACHEABLE_RAND 2
#define UNCACHEABLE_
UNCACHEABLE
4
#define UNCACHEABLE_
SIDEEFFECT
4
#ifdef EXTRA_DEBUG
#ifdef EXTRA_DEBUG
/*
/*
...
...
sql/sql_lex.h
View file @
b4044128
...
@@ -231,7 +231,7 @@ public:
...
@@ -231,7 +231,7 @@ public:
result of this query can't be cached, bit field, can be :
result of this query can't be cached, bit field, can be :
UNCACHEABLE_DEPENDENT
UNCACHEABLE_DEPENDENT
UNCACHEABLE_RAND
UNCACHEABLE_RAND
UNCACHEABLE_
UNCACHEABLE
UNCACHEABLE_
SIDEEFFECT
*/
*/
uint8
uncacheable
;
uint8
uncacheable
;
enum
sub_select_type
linkage
;
enum
sub_select_type
linkage
;
...
...
sql/sql_yacc.yy
View file @
b4044128
...
@@ -2893,7 +2893,7 @@ simple_expr:
...
@@ -2893,7 +2893,7 @@ simple_expr:
| BENCHMARK_SYM '(' ULONG_NUM ',' expr ')'
| BENCHMARK_SYM '(' ULONG_NUM ',' expr ')'
{
{
$$=new Item_func_benchmark($3,$5);
$$=new Item_func_benchmark($3,$5);
Lex->uncacheable(UNCACHEABLE_
UNCACHEABLE
);
Lex->uncacheable(UNCACHEABLE_
SIDEEFFECT
);
}
}
| EXTRACT_SYM '(' interval FROM expr ')'
| EXTRACT_SYM '(' interval FROM expr ')'
{ $$=new Item_extract( $3, $5); };
{ $$=new Item_extract( $3, $5); };
...
@@ -3473,7 +3473,7 @@ procedure_clause:
...
@@ -3473,7 +3473,7 @@ procedure_clause:
lex->proc_list.next= (byte**) &lex->proc_list.first;
lex->proc_list.next= (byte**) &lex->proc_list.first;
if (add_proc_to_list(lex->thd, new Item_field(NULL,NULL,$2.str)))
if (add_proc_to_list(lex->thd, new Item_field(NULL,NULL,$2.str)))
YYABORT;
YYABORT;
Lex->uncacheable(UNCACHEABLE_
UNCACHEABLE
);
Lex->uncacheable(UNCACHEABLE_
SIDEEFFECT
);
}
}
'(' procedure_list ')';
'(' procedure_list ')';
...
@@ -3527,7 +3527,7 @@ into:
...
@@ -3527,7 +3527,7 @@ into:
LEX *lex=Lex;
LEX *lex=Lex;
if (!lex->describe)
if (!lex->describe)
{
{
lex->uncacheable(UNCACHEABLE_
UNCACHEABLE
);
lex->uncacheable(UNCACHEABLE_
SIDEEFFECT
);
if (!(lex->exchange= new sql_exchange($3.str,0)))
if (!(lex->exchange= new sql_exchange($3.str,0)))
YYABORT;
YYABORT;
if (!(lex->result= new select_export(lex->exchange)))
if (!(lex->result= new select_export(lex->exchange)))
...
@@ -3540,7 +3540,7 @@ into:
...
@@ -3540,7 +3540,7 @@ into:
LEX *lex=Lex;
LEX *lex=Lex;
if (!lex->describe)
if (!lex->describe)
{
{
lex->uncacheable(UNCACHEABLE_
UNCACHEABLE
);
lex->uncacheable(UNCACHEABLE_
SIDEEFFECT
);
if (!(lex->exchange= new sql_exchange($3.str,1)))
if (!(lex->exchange= new sql_exchange($3.str,1)))
YYABORT;
YYABORT;
if (!(lex->result= new select_dump(lex->exchange)))
if (!(lex->result= new select_dump(lex->exchange)))
...
@@ -3549,7 +3549,7 @@ into:
...
@@ -3549,7 +3549,7 @@ into:
}
}
| INTO select_var_list_init
| INTO select_var_list_init
{
{
Lex->uncacheable(UNCACHEABLE_
UNCACHEABLE
);
Lex->uncacheable(UNCACHEABLE_
SIDEEFFECT
);
}
}
;
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment