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
15df552e
Commit
15df552e
authored
May 10, 2001
by
sasha@mysql.sashanet.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixes after merge. Now it compiles and passes the test suite
parent
7c9b9f47
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
15 additions
and
4 deletions
+15
-4
Docs/manual.texi
Docs/manual.texi
+1
-1
sql/sql_delete.cc
sql/sql_delete.cc
+3
-1
sql/sql_select.cc
sql/sql_select.cc
+1
-1
sql/sql_update.cc
sql/sql_update.cc
+3
-1
sql/sql_yacc.yy
sql/sql_yacc.yy
+7
-0
No files found.
Docs/manual.texi
View file @
15df552e
...
@@ -22870,7 +22870,7 @@ You can set the default isolation level for @code{mysqld} with
...
@@ -22870,7 +22870,7 @@ You can set the default isolation level for @code{mysqld} with
@findex GRANT
@findex GRANT
@findex REVOKE
@findex REVOKE
@node GRANT,
CREATE INDEX
, SET TRANSACTION, Reference
@node GRANT,
HANDLER
, SET TRANSACTION, Reference
@section @code{GRANT} and @code{REVOKE} Syntax
@section @code{GRANT} and @code{REVOKE} Syntax
@example
@example
sql/sql_delete.cc
View file @
15df552e
...
@@ -205,6 +205,7 @@ int mysql_delete(THD *thd,
...
@@ -205,6 +205,7 @@ int mysql_delete(THD *thd,
TABLE_LIST
tables
;
TABLE_LIST
tables
;
List
<
Item
>
fields
;
List
<
Item
>
fields
;
List
<
Item
>
all_fields
;
List
<
Item
>
all_fields
;
ha_rows
examined_rows
;
bzero
((
char
*
)
&
tables
,
sizeof
(
tables
));
bzero
((
char
*
)
&
tables
,
sizeof
(
tables
));
tables
.
table
=
table
;
tables
.
table
=
table
;
...
@@ -214,7 +215,8 @@ int mysql_delete(THD *thd,
...
@@ -214,7 +215,8 @@ int mysql_delete(THD *thd,
if
(
setup_order
(
thd
,
&
tables
,
fields
,
all_fields
,
order
)
||
if
(
setup_order
(
thd
,
&
tables
,
fields
,
all_fields
,
order
)
||
!
(
sortorder
=
make_unireg_sortorder
(
order
,
&
length
))
||
!
(
sortorder
=
make_unireg_sortorder
(
order
,
&
length
))
||
(
table
->
found_records
=
filesort
(
&
table
,
sortorder
,
length
,
(
table
->
found_records
=
filesort
(
&
table
,
sortorder
,
length
,
(
SQL_SELECT
*
)
0
,
0L
,
HA_POS_ERROR
))
(
SQL_SELECT
*
)
0
,
0L
,
HA_POS_ERROR
,
&
examined_rows
))
==
HA_POS_ERROR
)
==
HA_POS_ERROR
)
{
{
delete
select
;
delete
select
;
...
...
sql/sql_select.cc
View file @
15df552e
...
@@ -800,6 +800,7 @@ mysql_select(THD *thd,TABLE_LIST *tables,List<Item> &fields,COND *conds,
...
@@ -800,6 +800,7 @@ mysql_select(THD *thd,TABLE_LIST *tables,List<Item> &fields,COND *conds,
err:
err:
thd
->
limit_found_rows
=
join
.
send_records
;
thd
->
limit_found_rows
=
join
.
send_records
;
thd
->
examined_row_count
=
join
.
examined_rows
;
thd
->
proc_info
=
"end"
;
thd
->
proc_info
=
"end"
;
join
.
lock
=
0
;
// It's faster to unlock later
join
.
lock
=
0
;
// It's faster to unlock later
join_free
(
&
join
);
join_free
(
&
join
);
...
@@ -2546,7 +2547,6 @@ join_free(JOIN *join)
...
@@ -2546,7 +2547,6 @@ join_free(JOIN *join)
delete
tab
->
select
;
delete
tab
->
select
;
delete
tab
->
quick
;
delete
tab
->
quick
;
x_free
(
tab
->
cache
.
buff
);
x_free
(
tab
->
cache
.
buff
);
end_read_record
(
&
tab
->
read_record
);
if
(
tab
->
table
)
if
(
tab
->
table
)
{
{
if
(
tab
->
table
->
key_read
)
if
(
tab
->
table
->
key_read
)
...
...
sql/sql_update.cc
View file @
15df552e
...
@@ -175,6 +175,7 @@ int mysql_update(THD *thd,
...
@@ -175,6 +175,7 @@ int mysql_update(THD *thd,
TABLE_LIST
tables
;
TABLE_LIST
tables
;
List
<
Item
>
fields
;
List
<
Item
>
fields
;
List
<
Item
>
all_fields
;
List
<
Item
>
all_fields
;
ha_rows
examined_rows
;
bzero
((
char
*
)
&
tables
,
sizeof
(
tables
));
bzero
((
char
*
)
&
tables
,
sizeof
(
tables
));
tables
.
table
=
table
;
tables
.
table
=
table
;
...
@@ -184,7 +185,8 @@ int mysql_update(THD *thd,
...
@@ -184,7 +185,8 @@ int mysql_update(THD *thd,
if
(
setup_order
(
thd
,
&
tables
,
fields
,
all_fields
,
order
)
||
if
(
setup_order
(
thd
,
&
tables
,
fields
,
all_fields
,
order
)
||
!
(
sortorder
=
make_unireg_sortorder
(
order
,
&
length
))
||
!
(
sortorder
=
make_unireg_sortorder
(
order
,
&
length
))
||
(
table
->
found_records
=
filesort
(
&
table
,
sortorder
,
length
,
(
table
->
found_records
=
filesort
(
&
table
,
sortorder
,
length
,
(
SQL_SELECT
*
)
0
,
0L
,
HA_POS_ERROR
))
(
SQL_SELECT
*
)
0
,
0L
,
HA_POS_ERROR
,
&
examined_rows
))
==
HA_POS_ERROR
)
==
HA_POS_ERROR
)
{
{
delete
select
;
delete
select
;
...
...
sql/sql_yacc.yy
View file @
15df552e
...
@@ -72,6 +72,13 @@ bool my_yyoverflow(short **a, YYSTYPE **b,int *yystacksize);
...
@@ -72,6 +72,13 @@ bool my_yyoverflow(short **a, YYSTYPE **b,int *yystacksize);
%token END_OF_INPUT
%token END_OF_INPUT
%token CLOSE_SYM
%token HANDLER_SYM
%token LAST_SYM
%token NEXT_SYM
%token PREV_SYM
%token SQL_CALC_FOUND_ROWS
%token EQ
%token EQ
%token EQUAL_SYM
%token EQUAL_SYM
%token GE
%token GE
...
...
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