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
13af4d54
Commit
13af4d54
authored
Mar 19, 2007
by
Kristofer.Pettersson@naruto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Manual merge
parent
ab23aa25
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
15 deletions
+16
-15
mysql-test/r/sp.result
mysql-test/r/sp.result
+10
-10
sql/item_func.cc
sql/item_func.cc
+6
-5
No files found.
mysql-test/r/sp.result
View file @
13af4d54
...
@@ -5899,16 +5899,16 @@ insert into examplebug20777 values (1, 9223372036854775806, 9223372036854775807,
...
@@ -5899,16 +5899,16 @@ insert into examplebug20777 values (1, 9223372036854775806, 9223372036854775807,
show create table examplebug20777;
show create table examplebug20777;
Table Create Table
Table Create Table
examplebug20777 CREATE TABLE `examplebug20777` (
examplebug20777 CREATE TABLE `examplebug20777` (
`i` int(1) NOT NULL
default
'0',
`i` int(1) NOT NULL
DEFAULT
'0',
`2**63-2` bigint(20) unsigned
default
NULL,
`2**63-2` bigint(20) unsigned
DEFAULT
NULL,
`2**63-1` bigint(20) unsigned
default
NULL,
`2**63-1` bigint(20) unsigned
DEFAULT
NULL,
`2**63` bigint(20) unsigned
default
NULL,
`2**63` bigint(20) unsigned
DEFAULT
NULL,
`2**63+1` bigint(20) unsigned
default
NULL,
`2**63+1` bigint(20) unsigned
DEFAULT
NULL,
`2**64-2` bigint(20) unsigned
default
NULL,
`2**64-2` bigint(20) unsigned
DEFAULT
NULL,
`2**64-1` bigint(20) unsigned
default
NULL,
`2**64-1` bigint(20) unsigned
DEFAULT
NULL,
`2**64` bigint(20) unsigned
default
NULL,
`2**64` bigint(20) unsigned
DEFAULT
NULL,
`0` bigint(20) unsigned
default
NULL,
`0` bigint(20) unsigned
DEFAULT
NULL,
`-1` bigint(20) unsigned
default
NULL
`-1` bigint(20) unsigned
DEFAULT
NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1
) ENGINE=MyISAM DEFAULT CHARSET=latin1
select * from examplebug20777 order by i;
select * from examplebug20777 order by i;
i 2**63-2 2**63-1 2**63 2**63+1 2**64-2 2**64-1 2**64 0 -1
i 2**63-2 2**63-1 2**63 2**63+1 2**64-2 2**64-1 2**64 0 -1
...
...
sql/item_func.cc
View file @
13af4d54
...
@@ -5009,7 +5009,7 @@ Item_func_sp::cleanup()
...
@@ -5009,7 +5009,7 @@ Item_func_sp::cleanup()
sp_result_field
=
NULL
;
sp_result_field
=
NULL
;
}
}
m_sp
=
NULL
;
m_sp
=
NULL
;
dummy_table
->
s
=
NULL
;
dummy_table
->
alia
s
=
NULL
;
Item_func
::
cleanup
();
Item_func
::
cleanup
();
}
}
...
@@ -5058,12 +5058,12 @@ Item_func_sp::init_result_field(THD *thd)
...
@@ -5058,12 +5058,12 @@ Item_func_sp::init_result_field(THD *thd)
{
{
DBUG_ENTER
(
"Item_func_sp::init_result_field"
);
DBUG_ENTER
(
"Item_func_sp::init_result_field"
);
char
*
empty_name
=
(
char
*
)
""
;
LEX_STRING
empty_name
=
{
STRING_WITH_LEN
(
""
)
};
TABLE_SHARE
*
share
;
TABLE_SHARE
*
share
;
DBUG_ASSERT
(
m_sp
==
NULL
);
DBUG_ASSERT
(
m_sp
==
NULL
);
DBUG_ASSERT
(
sp_result_field
==
NULL
);
DBUG_ASSERT
(
sp_result_field
==
NULL
);
DBUG_ASSERT
(
dummy_table
->
s
==
NULL
);
if
(
!
(
m_sp
=
sp_find_routine
(
thd
,
TYPE_ENUM_FUNCTION
,
m_name
,
if
(
!
(
m_sp
=
sp_find_routine
(
thd
,
TYPE_ENUM_FUNCTION
,
m_name
,
&
thd
->
sp_func_cache
,
TRUE
)))
&
thd
->
sp_func_cache
,
TRUE
)))
...
@@ -5078,8 +5078,9 @@ Item_func_sp::init_result_field(THD *thd)
...
@@ -5078,8 +5078,9 @@ Item_func_sp::init_result_field(THD *thd)
Below we "create" a dummy table by initializing
Below we "create" a dummy table by initializing
the needed pointers.
the needed pointers.
*/
*/
dummy_table
->
s
=
share
=
&
dummy_table
->
share_not_to_be_used
;
dummy_table
->
alias
=
empty_name
;
share
=
dummy_table
->
s
;
dummy_table
->
alias
=
""
;
dummy_table
->
maybe_null
=
maybe_null
;
dummy_table
->
maybe_null
=
maybe_null
;
dummy_table
->
in_use
=
thd
;
dummy_table
->
in_use
=
thd
;
dummy_table
->
copy_blobs
=
TRUE
;
dummy_table
->
copy_blobs
=
TRUE
;
...
...
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