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
cded64f5
Commit
cded64f5
authored
Sep 04, 2002
by
Sinisa@sinisa.nasamreza.org
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
a small bug fix
parent
816d03e0
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
1 deletion
+13
-1
Docs/manual.texi
Docs/manual.texi
+4
-0
mysql-test/r/create.result
mysql-test/r/create.result
+5
-0
mysql-test/t/create.test
mysql-test/t/create.test
+3
-0
sql/item_func.cc
sql/item_func.cc
+1
-1
No files found.
Docs/manual.texi
View file @
cded64f5
...
...
@@ -50364,6 +50364,10 @@ each individual 4.0.x release.
@itemize @bullet
@item
Fixed a bug in guessing a field type out of the function. The error was
introduced in 4.0.3 so that field type depended on the first argument to
the function instead of the function itself
@item
Fixed a bug with wildcarded fields in select list, which led to the wrong
number of elements in a list containing all fields
@item
mysql-test/r/create.result
View file @
cded64f5
...
...
@@ -136,3 +136,8 @@ t1 CREATE TABLE `t1` (
drop table t1;
create table t1 select if(1,'1','0'), month("2002-08-02");
drop table t1;
create table t1 select if('2002'='2002','Y','N');
select * from t1;
if('2002'='2002','Y','N')
Y
drop table if exists t1;
mysql-test/t/create.test
View file @
cded64f5
...
...
@@ -91,3 +91,6 @@ show create table t1;
drop
table
t1
;
create
table
t1
select
if
(
1
,
'1'
,
'0'
),
month
(
"2002-08-02"
);
drop
table
t1
;
create
table
t1
select
if
(
'2002'
=
'2002'
,
'Y'
,
'N'
);
select
*
from
t1
;
drop
table
if
exists
t1
;
sql/item_func.cc
View file @
cded64f5
...
...
@@ -173,7 +173,7 @@ Field *Item_func::tmp_table_field(TABLE *t_arg)
if
(
!
t_arg
)
return
result_field
;
switch
(
args
[
0
]
->
result_type
())
{
switch
(
result_type
())
{
case
INT_RESULT
:
if
(
max_length
>
11
)
res
=
new
Field_longlong
(
max_length
,
maybe_null
,
name
,
t_arg
,
...
...
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