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
70048318
Commit
70048318
authored
Mar 06, 2002
by
paul@teton.kitebird.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge paul@work.mysql.com:/home/bk/mysql-4.0
into teton.kitebird.com:/home/paul/mysql-4.0
parents
98aec317
c00ddbab
Changes
7
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
98 additions
and
38 deletions
+98
-38
Docs/manual.texi
Docs/manual.texi
+60
-30
heap/hp_rnext.c
heap/hp_rnext.c
+6
-0
mysql-test/mysql-test-run.sh
mysql-test/mysql-test-run.sh
+2
-0
mysql-test/r/select_found.result
mysql-test/r/select_found.result
+6
-0
mysql-test/t/select_found.test
mysql-test/t/select_found.test
+2
-0
scripts/mysqld_multi.sh
scripts/mysqld_multi.sh
+19
-5
sql/sql_select.cc
sql/sql_select.cc
+3
-3
No files found.
Docs/manual.texi
View file @
70048318
This diff is collapsed.
Click to expand it.
heap/hp_rnext.c
View file @
70048318
...
...
@@ -24,6 +24,12 @@ int heap_rnext(HP_INFO *info, byte *record)
HP_SHARE
*
share
=
info
->
s
;
DBUG_ENTER
(
"heap_rnext"
);
if
(
!
(
info
->
s
->
records
))
{
my_errno
=
HA_ERR_END_OF_FILE
;
DBUG_RETURN
(
my_errno
);
}
if
(
info
->
lastinx
<
0
)
DBUG_RETURN
(
my_errno
=
HA_ERR_WRONG_INDEX
);
...
...
mysql-test/mysql-test-run.sh
View file @
70048318
...
...
@@ -730,6 +730,7 @@ start_master()
--server-id=1
\
--basedir=
$MY_BASEDIR
\
--port=
$MASTER_MYPORT
\
--local-infile
\
--exit-info=256
\
--core
\
--datadir=
$MASTER_MYDDIR
\
...
...
@@ -749,6 +750,7 @@ start_master()
--server-id=1 --rpl-recovery-rank=1
\
--basedir=
$MY_BASEDIR
--init-rpl-role=master
\
--port=
$MASTER_MYPORT
\
--local-infile
\
--datadir=
$MASTER_MYDDIR
\
--pid-file=
$MASTER_MYPID
\
--socket=
$MASTER_MYSOCK
\
...
...
mysql-test/r/select_found.result
View file @
70048318
...
...
@@ -20,6 +20,12 @@ a b
select found_rows();
FOUND_ROWS()
8
select SQL_BUFFER_RESULT SQL_CALC_FOUND_ROWS * from t1 limit 1;
a b
1 2
select found_rows();
FOUND_ROWS()
8
select SQL_CALC_FOUND_ROWS * from t1 order by b desc limit 1;
a b
8 9
...
...
mysql-test/t/select_found.test
View file @
70048318
...
...
@@ -9,6 +9,8 @@ select SQL_CALC_FOUND_ROWS * from t1;
select
found_rows
();
select
SQL_CALC_FOUND_ROWS
*
from
t1
limit
1
;
select
found_rows
();
select
SQL_BUFFER_RESULT
SQL_CALC_FOUND_ROWS
*
from
t1
limit
1
;
select
found_rows
();
select
SQL_CALC_FOUND_ROWS
*
from
t1
order
by
b
desc
limit
1
;
select
found_rows
();
select
SQL_CALC_FOUND_ROWS
distinct
b
from
t1
limit
1
;
...
...
scripts/mysqld_multi.sh
View file @
70048318
...
...
@@ -4,7 +4,7 @@ use Getopt::Long;
use POSIX qw
(
strftime
)
;
$|
=
1
;
$VER
=
"2.
2
"
;
$VER
=
"2.
3
"
;
$opt_config_file
=
undef
()
;
$opt_example
=
0
;
...
...
@@ -183,7 +183,7 @@ sub report_mysqlds
sub start_mysqlds
()
{
my
(
@groups,
$com
,
$i
, @options,
$j
)
;
my
(
@groups,
$com
,
$
tmp
,
$
i
, @options,
$j
)
;
if
(!
$opt_no_log
)
{
...
...
@@ -202,11 +202,20 @@ sub start_mysqlds()
@options
=
`
$com
`
;
chop @options
;
$com
=
"
$mysqld
"
;
for
(
$j
=
0
;
defined
(
$options
[
$j
])
;
$j
++
)
$com
=
"
$mysqld
"
;
for
(
$j
=
0
,
$tmp
=
""
;
defined
(
$options
[
$j
])
;
$j
++
)
{
$com
.
=
"
$options
[
$j
]"
;
if
(
"--mysqld="
eq substr
(
$options
[
$j
]
, 0, 9
))
{
$options
[
$j
]=
~ s/
\-\-
mysqld
\=
//
;
$com
=
$options
[
$j
]
;
}
else
{
$tmp
.
=
"
$options
[
$j
]"
;
}
}
$com
.
=
$tmp
;
$com
.
=
" >>
$opt_log
2>&1"
if
(!
$opt_no_log
)
;
$com
.
=
" &"
;
system
(
$com
)
;
...
...
@@ -595,6 +604,11 @@ Options:
to this option also. The options are passed to mysqld. Just
make sure you have mysqld in your PATH or fix mysqld_safe.
Using:
$mysqld
Please note: Since mysqld_multi version 2.3 you can also
give this option in groups [mysqld#]! This will be
recognized as a special option and will not be passed
to the mysqld. This will allow one to start different
mysqld versions with mysqld_multi.
--no-log Print to stdout instead of the log file. By default the log
file is turned on.
--password=... Password for user for mysqladmin.
...
...
sql/sql_select.cc
View file @
70048318
...
...
@@ -187,7 +187,7 @@ mysql_select(THD *thd,TABLE_LIST *tables,List<Item> &fields,COND *conds,
TABLE
*
tmp_table
;
int
error
,
tmp_error
;
bool
need_tmp
,
hidden_group_fields
;
bool
simple_order
,
simple_group
,
no_order
,
skip_sort_order
;
bool
simple_order
,
simple_group
,
no_order
,
skip_sort_order
,
buffer_result
;
Item
::
cond_result
cond_value
;
SQL_SELECT
*
select
;
DYNAMIC_ARRAY
keyuse
;
...
...
@@ -201,6 +201,7 @@ mysql_select(THD *thd,TABLE_LIST *tables,List<Item> &fields,COND *conds,
/* Check that all tables, fields, conds and order are ok */
select_distinct
=
test
(
select_options
&
SELECT_DISTINCT
);
buffer_result
=
test
(
select_options
&
OPTION_BUFFER_RESULT
)
&&
!
test
(
select_options
&
OPTION_FOUND_ROWS
);
tmp_table
=
0
;
select
=
0
;
no_order
=
skip_sort_order
=
0
;
...
...
@@ -546,8 +547,7 @@ mysql_select(THD *thd,TABLE_LIST *tables,List<Item> &fields,COND *conds,
need_tmp
=
(
join
.
const_tables
!=
join
.
tables
&&
((
select_distinct
||
!
simple_order
||
!
simple_group
)
||
(
group
&&
order
)
||
test
(
select_options
&
OPTION_BUFFER_RESULT
)));
(
group
&&
order
)
||
buffer_result
));
// No cache for MATCH
make_join_readinfo
(
&
join
,
...
...
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