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
61ec2511
Commit
61ec2511
authored
Feb 06, 2007
by
ramil/ram@ramil.myoffice.izhnet.ru
Browse files
Options
Browse Files
Download
Plain Diff
Merge mysql.com:/home/ram/work/b23782/b23782.5.0
into mysql.com:/home/ram/work/b23782/b23782.5.1
parents
9e36baa9
85f2f924
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
sql/sql_analyse.cc
sql/sql_analyse.cc
+10
-0
No files found.
sql/sql_analyse.cc
View file @
61ec2511
...
@@ -86,6 +86,11 @@ proc_analyse_init(THD *thd, ORDER *param, select_result *result,
...
@@ -86,6 +86,11 @@ proc_analyse_init(THD *thd, ORDER *param, select_result *result,
else
if
(
param
->
next
)
else
if
(
param
->
next
)
{
{
// first parameter
// first parameter
if
(
!
(
*
param
->
item
)
->
fixed
&&
(
*
param
->
item
)
->
fix_fields
(
thd
,
param
->
item
))
{
DBUG_PRINT
(
"info"
,
(
"fix_fields() for the first parameter failed"
));
goto
err
;
}
if
((
*
param
->
item
)
->
type
()
!=
Item
::
INT_ITEM
||
if
((
*
param
->
item
)
->
type
()
!=
Item
::
INT_ITEM
||
(
*
param
->
item
)
->
val_real
()
<
0
)
(
*
param
->
item
)
->
val_real
()
<
0
)
{
{
...
@@ -100,6 +105,11 @@ proc_analyse_init(THD *thd, ORDER *param, select_result *result,
...
@@ -100,6 +105,11 @@ proc_analyse_init(THD *thd, ORDER *param, select_result *result,
goto
err
;
goto
err
;
}
}
// second parameter
// second parameter
if
(
!
(
*
param
->
item
)
->
fixed
&&
(
*
param
->
item
)
->
fix_fields
(
thd
,
param
->
item
))
{
DBUG_PRINT
(
"info"
,
(
"fix_fields() for the second parameter failed"
));
goto
err
;
}
if
((
*
param
->
item
)
->
type
()
!=
Item
::
INT_ITEM
||
if
((
*
param
->
item
)
->
type
()
!=
Item
::
INT_ITEM
||
(
*
param
->
item
)
->
val_real
()
<
0
)
(
*
param
->
item
)
->
val_real
()
<
0
)
{
{
...
...
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