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
f9e73c77
Commit
f9e73c77
authored
Feb 11, 2004
by
pem@mysql.comhem.se
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Post-merge fixes.
parent
c8585f32
Changes
12
Show whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
65 additions
and
67 deletions
+65
-67
mysql-test/r/query_cache.result
mysql-test/r/query_cache.result
+3
-3
mysql-test/r/rpl_until.result
mysql-test/r/rpl_until.result
+1
-1
mysql-test/r/sp-error.result
mysql-test/r/sp-error.result
+2
-2
mysql-test/r/variables.result
mysql-test/r/variables.result
+1
-1
mysql-test/t/sp-error.test
mysql-test/t/sp-error.test
+43
-43
sql/item.h
sql/item.h
+1
-0
sql/item_sum.cc
sql/item_sum.cc
+2
-2
sql/item_sum.h
sql/item_sum.h
+1
-1
sql/lex.h
sql/lex.h
+2
-3
sql/opt_range.h
sql/opt_range.h
+6
-9
sql/sp.cc
sql/sp.cc
+1
-1
sql/sql_yacc.yy
sql/sql_yacc.yy
+2
-1
No files found.
mysql-test/r/query_cache.result
View file @
f9e73c77
...
@@ -828,14 +828,14 @@ DROP DATABASE mysqltest;
...
@@ -828,14 +828,14 @@ DROP DATABASE mysqltest;
SELECT * FROM test.t1;
SELECT * FROM test.t1;
a
a
USE test;
USE test;
drop table
t1;
DROP TABLE
t1;
create table t1 (a int);
create table t1 (a int);
show status like "Qcache_queries_in_cache";
show status like "Qcache_queries_in_cache";
Variable_name Value
Variable_name Value
Qcache_queries_in_cache 0
Qcache_queries_in_cache 0
show status like "Qcache_inserts";
show status like "Qcache_inserts";
Variable_name Value
Variable_name Value
Qcache_inserts
8
Qcache_inserts
9
show status like "Qcache_hits";
show status like "Qcache_hits";
Variable_name Value
Variable_name Value
Qcache_hits 6
Qcache_hits 6
...
@@ -848,7 +848,7 @@ Variable_name Value
...
@@ -848,7 +848,7 @@ Variable_name Value
Qcache_queries_in_cache 1
Qcache_queries_in_cache 1
show status like "Qcache_inserts";
show status like "Qcache_inserts";
Variable_name Value
Variable_name Value
Qcache_inserts
9
Qcache_inserts
10
show status like "Qcache_hits";
show status like "Qcache_hits";
Variable_name Value
Variable_name Value
Qcache_hits 7
Qcache_hits 7
...
...
mysql-test/r/rpl_until.result
View file @
f9e73c77
...
@@ -31,7 +31,7 @@ n
...
@@ -31,7 +31,7 @@ n
4
4
show slave status;
show slave status;
Slave_IO_State Master_Host Master_User Master_Port Connect_Retry Master_Log_File Read_Master_Log_Pos Relay_Log_File Relay_Log_Pos Relay_Master_Log_File Slave_IO_Running Slave_SQL_Running Replicate_Do_DB Replicate_Ignore_DB Replicate_Do_Table Replicate_Ignore_Table Replicate_Wild_Do_Table Replicate_Wild_Ignore_Table Last_Errno Last_Error Skip_Counter Exec_Master_Log_Pos Relay_Log_Space Until_Condition Until_Log_File Until_Log_Pos Master_SSL_Allowed Master_SSL_CA_File Master_SSL_CA_Path Master_SSL_Cert Master_SSL_Cipher Master_SSL_Key Seconds_Behind_Master
Slave_IO_State Master_Host Master_User Master_Port Connect_Retry Master_Log_File Read_Master_Log_Pos Relay_Log_File Relay_Log_Pos Relay_Master_Log_File Slave_IO_Running Slave_SQL_Running Replicate_Do_DB Replicate_Ignore_DB Replicate_Do_Table Replicate_Ignore_Table Replicate_Wild_Do_Table Replicate_Wild_Ignore_Table Last_Errno Last_Error Skip_Counter Exec_Master_Log_Pos Relay_Log_Space Until_Condition Until_Log_File Until_Log_Pos Master_SSL_Allowed Master_SSL_CA_File Master_SSL_CA_Path Master_SSL_Cert Master_SSL_Cipher Master_SSL_Key Seconds_Behind_Master
# 127.0.0.1 root MASTER_MYPORT 1 master-bin.000001
561 slave-relay-bin.000002 # master-bin.000001 Yes No 0 0 244 # Master master-bin.000001 24
4 No #
# 127.0.0.1 root MASTER_MYPORT 1 master-bin.000001
731 slave-relay-bin.000004 # master-bin.000001 Yes No 0 0 304 # Master master-bin.000001 30
4 No #
start slave until master_log_file='master-no-such-bin.000001', master_log_pos=291;
start slave until master_log_file='master-no-such-bin.000001', master_log_pos=291;
select * from t1;
select * from t1;
n
n
...
...
mysql-test/r/sp-error.result
View file @
f9e73c77
...
@@ -35,7 +35,7 @@ call foo()|
...
@@ -35,7 +35,7 @@ call foo()|
ERROR 42000: PROCEDURE foo does not exist
ERROR 42000: PROCEDURE foo does not exist
drop procedure if exists foo|
drop procedure if exists foo|
Warnings:
Warnings:
Warning 12
89
PROCEDURE foo does not exist
Warning 12
92
PROCEDURE foo does not exist
show create procedure foo|
show create procedure foo|
ERROR 42000: PROCEDURE foo does not exist
ERROR 42000: PROCEDURE foo does not exist
create procedure foo()
create procedure foo()
...
@@ -71,7 +71,7 @@ declare y int;
...
@@ -71,7 +71,7 @@ declare y int;
set x = y;
set x = y;
end|
end|
Warnings:
Warnings:
Warning 129
5
Referring to uninitialized variable y
Warning 129
8
Referring to uninitialized variable y
drop procedure foo|
drop procedure foo|
create procedure foo()
create procedure foo()
return 42|
return 42|
...
...
mysql-test/r/variables.result
View file @
f9e73c77
...
@@ -360,7 +360,7 @@ set sql_log_bin=1;
...
@@ -360,7 +360,7 @@ set sql_log_bin=1;
set sql_log_off=1;
set sql_log_off=1;
set sql_log_update=1;
set sql_log_update=1;
Warnings:
Warnings:
Note 1
299
The update log is deprecated and replaced by the binary log. SET SQL_LOG_UPDATE has been ignored.
Note 1
302
The update log is deprecated and replaced by the binary log. SET SQL_LOG_UPDATE has been ignored.
set sql_low_priority_updates=1;
set sql_low_priority_updates=1;
set sql_max_join_size=200;
set sql_max_join_size=200;
select @@sql_max_join_size,@@max_join_size;
select @@sql_max_join_size,@@max_join_size;
...
...
mysql-test/t/sp-error.test
View file @
f9e73c77
...
@@ -32,18 +32,18 @@ create function func1() returns int
...
@@ -32,18 +32,18 @@ create function func1() returns int
return
42
|
return
42
|
# Can't create recursively
# Can't create recursively
--
error
12
87
--
error
12
90
create
procedure
foo
()
create
procedure
foo
()
create
procedure
bar
()
set
@
x
=
3
|
create
procedure
bar
()
set
@
x
=
3
|
--
error
12
87
--
error
12
90
create
procedure
foo
()
create
procedure
foo
()
create
function
bar
()
returns
double
return
2.3
|
create
function
bar
()
returns
double
return
2.3
|
# Already exists
# Already exists
--
error
12
88
--
error
12
91
create
procedure
proc1
()
create
procedure
proc1
()
set
@
x
=
42
|
set
@
x
=
42
|
--
error
12
88
--
error
12
91
create
function
func1
()
returns
int
create
function
func1
()
returns
int
return
42
|
return
42
|
...
@@ -51,39 +51,39 @@ drop procedure proc1|
...
@@ -51,39 +51,39 @@ drop procedure proc1|
drop
function
func1
|
drop
function
func1
|
# Does not exist
# Does not exist
--
error
12
89
--
error
12
92
alter
procedure
foo
|
alter
procedure
foo
|
--
error
12
89
--
error
12
92
alter
function
foo
|
alter
function
foo
|
--
error
12
89
--
error
12
92
drop
procedure
foo
|
drop
procedure
foo
|
--
error
12
89
--
error
12
92
drop
function
foo
|
drop
function
foo
|
--
error
12
89
--
error
12
92
call
foo
()
|
call
foo
()
|
drop
procedure
if
exists
foo
|
drop
procedure
if
exists
foo
|
--
error
12
89
--
error
12
92
show
create
procedure
foo
|
show
create
procedure
foo
|
# LEAVE/ITERATE with no match
# LEAVE/ITERATE with no match
--
error
129
2
--
error
129
5
create
procedure
foo
()
create
procedure
foo
()
foo
:
loop
foo
:
loop
leave
bar
;
leave
bar
;
end
loop
|
end
loop
|
--
error
129
2
--
error
129
5
create
procedure
foo
()
create
procedure
foo
()
foo
:
loop
foo
:
loop
iterate
bar
;
iterate
bar
;
end
loop
|
end
loop
|
--
error
129
2
--
error
129
5
create
procedure
foo
()
create
procedure
foo
()
foo
:
begin
foo
:
begin
iterate
foo
;
iterate
foo
;
end
|
end
|
# Redefining label
# Redefining label
--
error
129
3
--
error
129
6
create
procedure
foo
()
create
procedure
foo
()
foo
:
loop
foo
:
loop
foo
:
loop
foo
:
loop
...
@@ -92,7 +92,7 @@ foo: loop
...
@@ -92,7 +92,7 @@ foo: loop
end
loop
foo
|
end
loop
foo
|
# End label mismatch
# End label mismatch
--
error
129
4
--
error
129
7
create
procedure
foo
()
create
procedure
foo
()
foo
:
loop
foo
:
loop
set
@
x
=
2
;
set
@
x
=
2
;
...
@@ -107,12 +107,12 @@ end|
...
@@ -107,12 +107,12 @@ end|
drop
procedure
foo
|
drop
procedure
foo
|
# RETURN in FUNCTION only
# RETURN in FUNCTION only
--
error
1
297
--
error
1
300
create
procedure
foo
()
create
procedure
foo
()
return
42
|
return
42
|
# Doesn't allow queries in FUNCTIONs (for now :-( )
# Doesn't allow queries in FUNCTIONs (for now :-( )
--
error
1
298
--
error
1
301
create
function
foo
()
returns
int
create
function
foo
()
returns
int
begin
begin
declare
x
int
;
declare
x
int
;
...
@@ -126,19 +126,19 @@ create procedure p(x int)
...
@@ -126,19 +126,19 @@ create procedure p(x int)
create
function
f
(
x
int
)
returns
int
create
function
f
(
x
int
)
returns
int
return
x
+
42
|
return
x
+
42
|
--
error
130
2
--
error
130
5
call
p
()
|
call
p
()
|
--
error
130
2
--
error
130
5
call
p
(
1
,
2
)
|
call
p
(
1
,
2
)
|
--
error
130
2
--
error
130
5
select
f
()
|
select
f
()
|
--
error
130
2
--
error
130
5
select
f
(
1
,
2
)
|
select
f
(
1
,
2
)
|
drop
procedure
p
|
drop
procedure
p
|
drop
function
f
|
drop
function
f
|
--
error
130
3
--
error
130
6
create
procedure
p
(
val
int
,
out
res
int
)
create
procedure
p
(
val
int
,
out
res
int
)
begin
begin
declare
x
int
default
0
;
declare
x
int
default
0
;
...
@@ -152,7 +152,7 @@ begin
...
@@ -152,7 +152,7 @@ begin
end
if
;
end
if
;
end
|
end
|
--
error
130
3
--
error
130
6
create
procedure
p
(
val
int
,
out
res
int
)
create
procedure
p
(
val
int
,
out
res
int
)
begin
begin
declare
x
int
default
0
;
declare
x
int
default
0
;
...
@@ -167,7 +167,7 @@ begin
...
@@ -167,7 +167,7 @@ begin
end
if
;
end
if
;
end
|
end
|
--
error
130
4
--
error
130
7
create
function
f
(
val
int
)
returns
int
create
function
f
(
val
int
)
returns
int
begin
begin
declare
x
int
;
declare
x
int
;
...
@@ -185,12 +185,12 @@ begin
...
@@ -185,12 +185,12 @@ begin
end
if
;
end
if
;
end
|
end
|
--
error
130
5
--
error
130
8
select
f
(
10
)
|
select
f
(
10
)
|
drop
function
f
|
drop
function
f
|
--
error
130
6
--
error
130
9
create
procedure
p
()
create
procedure
p
()
begin
begin
declare
c
cursor
for
insert
into
test
.
t1
values
(
"foo"
,
42
);
declare
c
cursor
for
insert
into
test
.
t1
values
(
"foo"
,
42
);
...
@@ -199,7 +199,7 @@ begin
...
@@ -199,7 +199,7 @@ begin
close
c
;
close
c
;
end
|
end
|
--
error
13
07
--
error
13
10
create
procedure
p
()
create
procedure
p
()
begin
begin
declare
x
int
;
declare
x
int
;
...
@@ -209,7 +209,7 @@ begin
...
@@ -209,7 +209,7 @@ begin
close
c
;
close
c
;
end
|
end
|
--
error
13
08
--
error
13
11
create
procedure
p
()
create
procedure
p
()
begin
begin
declare
c
cursor
for
select
*
from
test
.
t
;
declare
c
cursor
for
select
*
from
test
.
t
;
...
@@ -231,7 +231,7 @@ begin
...
@@ -231,7 +231,7 @@ begin
open
c
;
open
c
;
close
c
;
close
c
;
end
|
end
|
--
error
13
09
--
error
13
12
call
p
()
|
call
p
()
|
drop
procedure
p
|
drop
procedure
p
|
...
@@ -243,11 +243,11 @@ begin
...
@@ -243,11 +243,11 @@ begin
close
c
;
close
c
;
close
c
;
close
c
;
end
|
end
|
--
error
131
0
--
error
131
3
call
p
()
|
call
p
()
|
drop
procedure
p
|
drop
procedure
p
|
--
error
12
89
--
error
12
92
alter
procedure
bar3
sql
security
invoker
|
alter
procedure
bar3
sql
security
invoker
|
--
error
1059
--
error
1059
alter
procedure
bar3
name
alter
procedure
bar3
name
...
@@ -261,7 +261,7 @@ drop table if exists t1|
...
@@ -261,7 +261,7 @@ drop table if exists t1|
create
table
t1
(
val
int
,
x
float
)
|
create
table
t1
(
val
int
,
x
float
)
|
insert
into
t1
values
(
42
,
3.1
),
(
19
,
1.2
)
|
insert
into
t1
values
(
42
,
3.1
),
(
19
,
1.2
)
|
--
error
131
1
--
error
131
4
create
procedure
p
()
create
procedure
p
()
begin
begin
declare
c
cursor
for
select
*
from
t1
;
declare
c
cursor
for
select
*
from
t1
;
...
@@ -281,7 +281,7 @@ begin
...
@@ -281,7 +281,7 @@ begin
fetch
c
into
x
;
fetch
c
into
x
;
close
c
;
close
c
;
end
|
end
|
--
error
131
2
--
error
131
5
call
p
()
|
call
p
()
|
drop
procedure
p
|
drop
procedure
p
|
...
@@ -296,34 +296,34 @@ begin
...
@@ -296,34 +296,34 @@ begin
fetch
c
into
x
,
y
,
z
;
fetch
c
into
x
,
y
,
z
;
close
c
;
close
c
;
end
|
end
|
--
error
131
2
--
error
131
5
call
p
()
|
call
p
()
|
drop
procedure
p
|
drop
procedure
p
|
--
error
131
4
--
error
131
7
create
procedure
p
(
in
x
int
,
x
char
(
10
))
create
procedure
p
(
in
x
int
,
x
char
(
10
))
begin
begin
end
|
end
|
--
error
131
4
--
error
131
7
create
function
p
(
x
int
,
x
char
(
10
))
create
function
p
(
x
int
,
x
char
(
10
))
begin
begin
end
|
end
|
--
error
131
5
--
error
131
8
create
procedure
p
()
create
procedure
p
()
begin
begin
declare
x
float
;
declare
x
float
;
declare
x
int
;
declare
x
int
;
end
|
end
|
--
error
131
6
--
error
131
9
create
procedure
p
()
create
procedure
p
()
begin
begin
declare
c
condition
for
1064
;
declare
c
condition
for
1064
;
declare
c
condition
for
1065
;
declare
c
condition
for
1065
;
end
|
end
|
--
error
13
17
--
error
13
20
create
procedure
p
()
create
procedure
p
()
begin
begin
declare
c
cursor
for
select
*
from
t1
;
declare
c
cursor
for
select
*
from
t1
;
...
@@ -347,13 +347,13 @@ drop procedure bug1965|
...
@@ -347,13 +347,13 @@ drop procedure bug1965|
#
#
# BUG#1966
# BUG#1966
#
#
--
error
131
1
--
error
131
4
select
1
into
a
|
select
1
into
a
|
#
#
# BUG#336
# BUG#336
#
#
--
error
13
19
--
error
13
22
create
procedure
bug336
(
id
char
(
16
))
create
procedure
bug336
(
id
char
(
16
))
begin
begin
declare
x
int
;
declare
x
int
;
...
@@ -363,7 +363,7 @@ end|
...
@@ -363,7 +363,7 @@ end|
#
#
# BUG#1654
# BUG#1654
#
#
--
error
1
298
--
error
1
301
create
function
bug1654
()
create
function
bug1654
()
returns
int
returns
int
return
(
select
sum
(
t
.
data
)
from
test
.
t2
t
)
|
return
(
select
sum
(
t
.
data
)
from
test
.
t2
t
)
|
...
@@ -401,7 +401,7 @@ begin
...
@@ -401,7 +401,7 @@ begin
fetch
c1
into
v1
;
fetch
c1
into
v1
;
end
|
end
|
--
error
131
0
--
error
131
3
call
bug2259
()
|
call
bug2259
()
|
drop
procedure
bug2259
|
drop
procedure
bug2259
|
...
...
sql/item.h
View file @
f9e73c77
...
@@ -236,6 +236,7 @@ class Item {
...
@@ -236,6 +236,7 @@ class Item {
{
{
cleanup
();
cleanup
();
delete
this
;
delete
this
;
}
};
};
...
...
sql/item_sum.cc
View file @
f9e73c77
...
@@ -281,7 +281,7 @@ Item_sum_sum_distinct::Item_sum_sum_distinct(Item *item)
...
@@ -281,7 +281,7 @@ Item_sum_sum_distinct::Item_sum_sum_distinct(Item *item)
Item_sum_sum_distinct
::
Item_sum_sum_distinct
(
THD
*
thd
,
Item_sum_sum_distinct
::
Item_sum_sum_distinct
(
THD
*
thd
,
Item_sum_sum_distinct
&
original
)
Item_sum_sum_distinct
*
original
)
:
Item_sum_num
(
thd
,
original
),
sum
(
0.0
),
tree
(
0
)
:
Item_sum_num
(
thd
,
original
),
sum
(
0.0
),
tree
(
0
)
{
{
quick_group
=
0
;
quick_group
=
0
;
...
@@ -297,7 +297,7 @@ Item_sum_sum_distinct::~Item_sum_sum_distinct()
...
@@ -297,7 +297,7 @@ Item_sum_sum_distinct::~Item_sum_sum_distinct()
Item
*
Item
*
Item_sum_sum_distinct
::
copy_or_same
(
THD
*
thd
)
Item_sum_sum_distinct
::
copy_or_same
(
THD
*
thd
)
{
{
return
new
(
&
thd
->
mem_root
)
Item_sum_sum_distinct
(
thd
,
*
this
);
return
new
(
&
thd
->
mem_root
)
Item_sum_sum_distinct
(
thd
,
this
);
}
}
C_MODE_START
C_MODE_START
...
...
sql/item_sum.h
View file @
f9e73c77
...
@@ -166,7 +166,7 @@ class Item_sum_sum_distinct :public Item_sum_num
...
@@ -166,7 +166,7 @@ class Item_sum_sum_distinct :public Item_sum_num
double
sum
;
double
sum
;
Unique
*
tree
;
Unique
*
tree
;
private:
private:
Item_sum_sum_distinct
(
THD
*
thd
,
Item_sum_sum_distinct
&
item
);
Item_sum_sum_distinct
(
THD
*
thd
,
Item_sum_sum_distinct
*
item
);
public:
public:
Item_sum_sum_distinct
(
Item
*
item_par
);
Item_sum_sum_distinct
(
Item
*
item_par
);
~
Item_sum_sum_distinct
();
~
Item_sum_sum_distinct
();
...
...
sql/lex.h
View file @
f9e73c77
...
@@ -251,7 +251,7 @@ static SYMBOL symbols[] = {
...
@@ -251,7 +251,7 @@ static SYMBOL symbols[] = {
{
"KEY"
,
SYM
(
KEY_SYM
)},
{
"KEY"
,
SYM
(
KEY_SYM
)},
{
"KEYS"
,
SYM
(
KEYS
)},
{
"KEYS"
,
SYM
(
KEYS
)},
{
"KILL"
,
SYM
(
KILL_SYM
)},
{
"KILL"
,
SYM
(
KILL_SYM
)},
{
"LANGUAGE"
,
SYM
(
LANG
AU
GE_SYM
)},
{
"LANGUAGE"
,
SYM
(
LANG
UA
GE_SYM
)},
{
"LAST"
,
SYM
(
LAST_SYM
)},
{
"LAST"
,
SYM
(
LAST_SYM
)},
{
"LEADING"
,
SYM
(
LEADING
)},
{
"LEADING"
,
SYM
(
LEADING
)},
{
"LEAVE"
,
SYM
(
LEAVE_SYM
)},
{
"LEAVE"
,
SYM
(
LEAVE_SYM
)},
...
@@ -721,7 +721,6 @@ static SYMBOL sql_functions[] = {
...
@@ -721,7 +721,6 @@ static SYMBOL sql_functions[] = {
{
"UPPER"
,
F_SYM
(
FUNC_ARG1
),
0
,
CREATE_FUNC
(
create_func_ucase
)},
{
"UPPER"
,
F_SYM
(
FUNC_ARG1
),
0
,
CREATE_FUNC
(
create_func_ucase
)},
{
"VARIANCE"
,
SYM
(
VARIANCE_SYM
)},
{
"VARIANCE"
,
SYM
(
VARIANCE_SYM
)},
{
"VERSION"
,
F_SYM
(
FUNC_ARG0
),
0
,
CREATE_FUNC
(
create_func_version
)},
{
"VERSION"
,
F_SYM
(
FUNC_ARG0
),
0
,
CREATE_FUNC
(
create_func_version
)},
{
"WEEK"
,
SYM
(
WEEK_SYM
)},
{
"WEEKDAY"
,
F_SYM
(
FUNC_ARG1
),
0
,
CREATE_FUNC
(
create_func_weekday
)},
{
"WEEKDAY"
,
F_SYM
(
FUNC_ARG1
),
0
,
CREATE_FUNC
(
create_func_weekday
)},
{
"WEEKOFYEAR"
,
F_SYM
(
FUNC_ARG1
),
0
,
CREATE_FUNC
(
create_func_weekofyear
)},
{
"WEEKOFYEAR"
,
F_SYM
(
FUNC_ARG1
),
0
,
CREATE_FUNC
(
create_func_weekofyear
)},
{
"WITHIN"
,
F_SYM
(
FUNC_ARG2
),
0
,
CREATE_FUNC_GEOM
(
create_func_within
)},
{
"WITHIN"
,
F_SYM
(
FUNC_ARG2
),
0
,
CREATE_FUNC_GEOM
(
create_func_within
)},
...
...
sql/opt_range.h
View file @
f9e73c77
...
@@ -304,17 +304,14 @@ class SQL_SELECT :public Sql_alloc {
...
@@ -304,17 +304,14 @@ class SQL_SELECT :public Sql_alloc {
};
};
class
FT_SELECT
:
public
QUICK_SELECT
{
class
FT_SELECT
:
public
QUICK_
RANGE_
SELECT
{
public:
public:
FT_SELECT
(
THD
*
thd
,
TABLE
*
table
,
uint
key
)
:
FT_SELECT
(
THD
*
thd
,
TABLE
*
table
,
uint
key
)
:
QUICK
_SELECT
(
thd
,
table
,
key
,
1
)
{
init
();
}
QUICK_RANGE
_SELECT
(
thd
,
table
,
key
,
1
)
{
init
();
}
int
init
()
{
return
error
=
file
->
ft_init
();
}
int
init
()
{
return
error
=
file
->
ft_init
();
}
int
get_next
()
{
return
error
=
file
->
ft_read
(
record
);
}
int
get_next
()
{
return
error
=
file
->
ft_read
(
record
);
}
int
get_type
()
{
return
QS_TYPE_FULLTEXT
;
}
};
};
QUICK_RANGE_SELECT
*
get_quick_select_for_ref
(
THD
*
thd
,
TABLE
*
table
,
struct
st_table_ref
*
ref
);
#endif
#endif
sql/sp.cc
View file @
f9e73c77
...
@@ -504,7 +504,7 @@ db_show_routine_status(THD *thd, int type, const char *wild)
...
@@ -504,7 +504,7 @@ db_show_routine_status(THD *thd, int type, const char *wild)
}
}
/* Init fields */
/* Init fields */
setup_tables
(
&
tables
);
setup_tables
(
&
tables
,
0
);
for
(
used_field
=
&
used_fields
[
0
];
for
(
used_field
=
&
used_fields
[
0
];
used_field
->
field_name
;
used_field
->
field_name
;
used_field
++
)
used_field
++
)
...
...
sql/sql_yacc.yy
View file @
f9e73c77
...
@@ -5754,6 +5754,7 @@ simple_ident:
...
@@ -5754,6 +5754,7 @@ simple_ident:
(Item*) new Item_field(NullS,NullS,$1.str) :
(Item*) new Item_field(NullS,NullS,$1.str) :
(Item*) new Item_ref(0,0, NullS,NullS,$1.str);
(Item*) new Item_ref(0,0, NullS,NullS,$1.str);
}
}
}
| simple_ident_q { $$= $1; }
| simple_ident_q { $$= $1; }
;
;
...
@@ -5764,7 +5765,7 @@ simple_ident_nospvar:
...
@@ -5764,7 +5765,7 @@ simple_ident_nospvar:
$$= (sel->parsing_place != SELECT_LEX_NODE::IN_HAVING ||
$$= (sel->parsing_place != SELECT_LEX_NODE::IN_HAVING ||
sel->get_in_sum_expr() > 0) ?
sel->get_in_sum_expr() > 0) ?
(Item*) new Item_field(NullS,NullS,$1.str) :
(Item*) new Item_field(NullS,NullS,$1.str) :
(Item*) new Item_ref(NullS,NullS,$1.str);
(Item*) new Item_ref(
0,0,
NullS,NullS,$1.str);
}
}
| simple_ident_q { $$= $1; }
| simple_ident_q { $$= $1; }
;
;
...
...
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