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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
eb3c9009
Commit
eb3c9009
authored
Nov 05, 2003
by
konstantin@mysql.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge kosipov@bk-internal.mysql.com:/home/bk/mysql-4.1
into mysql.com:/home/kostja/mysql/mysql-4.1-root
parents
f277c9f8
e3bf30fd
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
13 deletions
+8
-13
sql/item.cc
sql/item.cc
+1
-1
sql/item_cmpfunc.cc
sql/item_cmpfunc.cc
+2
-3
sql/item_func.cc
sql/item_func.cc
+5
-9
No files found.
sql/item.cc
View file @
eb3c9009
...
@@ -938,7 +938,7 @@ bool Item_field::fix_fields(THD *thd, TABLE_LIST *tables, Item **ref)
...
@@ -938,7 +938,7 @@ bool Item_field::fix_fields(THD *thd, TABLE_LIST *tables, Item **ref)
set_field
(
tmp
);
set_field
(
tmp
);
}
}
else
if
(
thd
&&
thd
->
set_query_id
&&
field
->
query_id
!=
thd
->
query_id
)
else
if
(
thd
->
set_query_id
&&
field
->
query_id
!=
thd
->
query_id
)
{
{
/* We only come here in unions */
/* We only come here in unions */
TABLE
*
table
=
field
->
table
;
TABLE
*
table
=
field
->
table
;
...
...
sql/item_cmpfunc.cc
View file @
eb3c9009
...
@@ -1667,7 +1667,7 @@ Item_cond::fix_fields(THD *thd, TABLE_LIST *tables, Item **ref)
...
@@ -1667,7 +1667,7 @@ Item_cond::fix_fields(THD *thd, TABLE_LIST *tables, Item **ref)
*/
*/
and_tables_cache
=
~
(
table_map
)
0
;
and_tables_cache
=
~
(
table_map
)
0
;
if
(
thd
&&
check_stack_overrun
(
thd
,
buff
))
if
(
check_stack_overrun
(
thd
,
buff
))
return
1
;
// Fatal error flag is set!
return
1
;
// Fatal error flag is set!
while
((
item
=
li
++
))
while
((
item
=
li
++
))
{
{
...
@@ -1696,8 +1696,7 @@ Item_cond::fix_fields(THD *thd, TABLE_LIST *tables, Item **ref)
...
@@ -1696,8 +1696,7 @@ Item_cond::fix_fields(THD *thd, TABLE_LIST *tables, Item **ref)
if
(
item
->
maybe_null
)
if
(
item
->
maybe_null
)
maybe_null
=
1
;
maybe_null
=
1
;
}
}
if
(
thd
)
thd
->
lex
.
current_select
->
cond_count
+=
list
.
elements
;
thd
->
lex
.
current_select
->
cond_count
+=
list
.
elements
;
fix_length_and_dec
();
fix_length_and_dec
();
fixed
=
1
;
fixed
=
1
;
return
0
;
return
0
;
...
...
sql/item_func.cc
View file @
eb3c9009
...
@@ -197,7 +197,7 @@ Item_func::fix_fields(THD *thd, TABLE_LIST *tables, Item **ref)
...
@@ -197,7 +197,7 @@ Item_func::fix_fields(THD *thd, TABLE_LIST *tables, Item **ref)
used_tables_cache
=
not_null_tables_cache
=
0
;
used_tables_cache
=
not_null_tables_cache
=
0
;
const_item_cache
=
1
;
const_item_cache
=
1
;
if
(
thd
&&
check_stack_overrun
(
thd
,
buff
))
if
(
check_stack_overrun
(
thd
,
buff
))
return
1
;
// Fatal error if flag is set!
return
1
;
// Fatal error if flag is set!
if
(
arg_count
)
if
(
arg_count
)
{
// Print purify happy
{
// Print purify happy
...
@@ -219,7 +219,7 @@ Item_func::fix_fields(THD *thd, TABLE_LIST *tables, Item **ref)
...
@@ -219,7 +219,7 @@ Item_func::fix_fields(THD *thd, TABLE_LIST *tables, Item **ref)
}
}
}
}
fix_length_and_dec
();
fix_length_and_dec
();
if
(
thd
&&
thd
->
net
.
last_errno
)
// An error inside fix_length_and_dec a
ccured
if
(
thd
->
net
.
last_errno
)
// An error inside fix_length_and_dec o
ccured
return
1
;
return
1
;
fixed
=
1
;
fixed
=
1
;
return
0
;
return
0
;
...
@@ -1435,13 +1435,9 @@ udf_handler::fix_fields(THD *thd, TABLE_LIST *tables, Item_result_field *func,
...
@@ -1435,13 +1435,9 @@ udf_handler::fix_fields(THD *thd, TABLE_LIST *tables, Item_result_field *func,
#endif
#endif
DBUG_ENTER
(
"Item_udf_func::fix_fields"
);
DBUG_ENTER
(
"Item_udf_func::fix_fields"
);
if
(
thd
)
if
(
check_stack_overrun
(
thd
,
buff
))
{
DBUG_RETURN
(
1
);
// Fatal error flag is set!
if
(
check_stack_overrun
(
thd
,
buff
))
DBUG_RETURN
(
1
);
// Fatal error flag is set!
}
else
thd
=
current_thd
;
// In WHERE / const clause
udf_func
*
tmp_udf
=
find_udf
(
u_d
->
name
.
str
,(
uint
)
u_d
->
name
.
length
,
1
);
udf_func
*
tmp_udf
=
find_udf
(
u_d
->
name
.
str
,(
uint
)
u_d
->
name
.
length
,
1
);
if
(
!
tmp_udf
)
if
(
!
tmp_udf
)
...
...
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