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
f183b1be
Commit
f183b1be
authored
Jun 14, 2005
by
hf@deer.(none)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Final patch to the bug #11314 (HAVING DEFAULT hangs)
parent
8cc5f88b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
sql/item.cc
sql/item.cc
+4
-3
No files found.
sql/item.cc
View file @
f183b1be
...
...
@@ -4443,6 +4443,7 @@ bool Item_default_value::fix_fields(THD *thd,
struct
st_table_list
*
table_list
,
Item
**
items
)
{
Item
*
real_arg
;
Item_field
*
field_arg
;
Field
*
def_field
;
DBUG_ASSERT
(
fixed
==
0
);
...
...
@@ -4455,14 +4456,14 @@ bool Item_default_value::fix_fields(THD *thd,
if
(
!
arg
->
fixed
&&
arg
->
fix_fields
(
thd
,
table_list
,
&
arg
))
return
TRUE
;
arg
=
arg
->
real_item
();
if
(
arg
->
type
()
!=
FIELD_ITEM
)
real_
arg
=
arg
->
real_item
();
if
(
real_
arg
->
type
()
!=
FIELD_ITEM
)
{
my_error
(
ER_NO_DEFAULT_FOR_FIELD
,
MYF
(
0
),
arg
->
name
);
return
TRUE
;
}
field_arg
=
(
Item_field
*
)
arg
;
field_arg
=
(
Item_field
*
)
real_
arg
;
if
(
field_arg
->
field
->
flags
&
NO_DEFAULT_VALUE_FLAG
)
{
my_error
(
ER_NO_DEFAULT_FOR_FIELD
,
MYF
(
0
),
field_arg
->
field
->
field_name
);
...
...
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