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
177eb198
Commit
177eb198
authored
Feb 14, 2004
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge sinisa@bk-internal.mysql.com:/home/bk/mysql-4.0
into sinisa.nasamreza.org:/mnt/work/mysql-4.0
parents
c28249d9
3dd9973e
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
58 additions
and
5 deletions
+58
-5
configure.in
configure.in
+1
-1
mysql-test/r/select_found.result
mysql-test/r/select_found.result
+18
-0
mysql-test/t/select_found.test
mysql-test/t/select_found.test
+28
-0
sql/opt_range.cc
sql/opt_range.cc
+1
-0
support-files/mysql.spec.sh
support-files/mysql.spec.sh
+10
-4
No files found.
configure.in
View file @
177eb198
...
...
@@ -4,7 +4,7 @@ dnl Process this file with autoconf to produce a configure script.
AC_INIT
(
sql/mysqld.cc
)
AC_CANONICAL_SYSTEM
# The Docs Makefile.am parses this line!
AM_INIT_AUTOMAKE
(
mysql, 4.0.1
8
)
AM_INIT_AUTOMAKE
(
mysql, 4.0.1
9
)
AM_CONFIG_HEADER
(
config.h
)
PROTOCOL_VERSION
=
10
...
...
mysql-test/r/select_found.result
View file @
177eb198
...
...
@@ -188,3 +188,21 @@ select FOUND_ROWS();
FOUND_ROWS()
0
drop table t1;
CREATE TABLE t1 ( a int not null, b int not null, KEY ab(a,b) );
INSERT INTO t1 VALUES ( 47, 1 );
INSERT INTO t1 VALUES ( 70, 1 );
SELECT * FROM t1
WHERE
(
( b =1 AND a BETWEEN 14 AND 21 ) OR
( b =2 AND a BETWEEN 16 AND 18 ) OR
( b =3 AND a BETWEEN 15 AND 19 )
);
a b
DROP TABLE t1;
CREATE TABLE t1 ( a integer, u varchar(15), r integer, key uao_idx( r, a, u));
DELETE FROM t1
WHERE ( r = 1 AND a IN ( 1, 2 ) AND ( u = 'w' OR u LIKE 'w/%' ) )
OR ( r = 1 AND a IN ( 3 ) AND ( u = 'w/U' OR u LIKE 'w/U/%' ) )
OR ( r = 1 AND a IN ( 1, 2, 3 ) AND ( u = 'w' ) );
drop table t1;
mysql-test/t/select_found.test
View file @
177eb198
...
...
@@ -99,3 +99,31 @@ select FOUND_ROWS();
select
SQL_CALC_FOUND_ROWS
*
from
t1
where
id
>
6
limit
0
,
1
;
select
FOUND_ROWS
();
drop
table
t1
;
#
# Other bugs with range optimization
#
# bug #2448
CREATE
TABLE
t1
(
a
int
not
null
,
b
int
not
null
,
KEY
ab
(
a
,
b
)
);
INSERT
INTO
t1
VALUES
(
47
,
1
);
INSERT
INTO
t1
VALUES
(
70
,
1
);
SELECT
*
FROM
t1
WHERE
(
(
b
=
1
AND
a
BETWEEN
14
AND
21
)
OR
(
b
=
2
AND
a
BETWEEN
16
AND
18
)
OR
(
b
=
3
AND
a
BETWEEN
15
AND
19
)
);
DROP
TABLE
t1
;
# bug #2698
CREATE
TABLE
t1
(
a
integer
,
u
varchar
(
15
),
r
integer
,
key
uao_idx
(
r
,
a
,
u
));
DELETE
FROM
t1
WHERE
(
r
=
1
AND
a
IN
(
1
,
2
)
AND
(
u
=
'w'
OR
u
LIKE
'w/%'
)
)
OR
(
r
=
1
AND
a
IN
(
3
)
AND
(
u
=
'w/U'
OR
u
LIKE
'w/U/%'
)
)
OR
(
r
=
1
AND
a
IN
(
1
,
2
,
3
)
AND
(
u
=
'w'
)
);
drop
table
t1
;
sql/opt_range.cc
View file @
177eb198
...
...
@@ -488,6 +488,7 @@ SEL_ARG *SEL_ARG::clone(SEL_ARG *new_parent,SEL_ARG **next_arg)
return
0
;
// OOM
}
increment_use_count
(
1
);
tmp
->
color
=
color
;
return
tmp
;
}
...
...
support-files/mysql.spec.sh
View file @
177eb198
...
...
@@ -16,7 +16,7 @@ Summary(pt_BR): MySQL: Um servidor SQL r
Group
(
pt_BR
)
: Aplicaes/Banco_de_Dados
Version: @MYSQL_NO_DASH_VERSION@
Release: %
{
release
}
Copyright
: GPL
License
: GPL
Source: http://www.mysql.com/Downloads/MySQL-@MYSQL_BASE_VERSION@/mysql-%
{
mysql_version
}
.tar.gz
URL: http://www.mysql.com/
Packager: Lenz Grimmer <build@mysql.com>
...
...
@@ -258,10 +258,11 @@ export PATH
# Build the 4.0 Max binary (includes BDB and UDFs and therefore
# cannot be linked statically against the patched glibc)
#
If we want to compile with RAID using gcc 3, we need to use
#
gcc instead of g++ to avoid linking problems (RAID code is written in C++)
test
-z
$CXX
&&
test
-z
$CC
&&
if
gcc
-v
2>&1 |
grep
'gcc version 3'
>
/dev/null 2>&1
#
Use gcc for C and C++ code (to avoid a dependency on libstdc++ and
#
including exceptions into the code
if
[
-z
"
$CXX
"
-a
-z
"
$CC
"
]
then
export
CC
=
"gcc"
export
CXX
=
"gcc"
fi
...
...
@@ -573,6 +574,11 @@ fi
# The spec file changelog only includes changes made to the spec file
# itself
%changelog
*
Thu Feb 12 2004 Lenz Grimmer <lenz@mysql.com>
- when using gcc, _always_ use
CXX
=
gcc
- replaced Copyright with License field
(
Copyright is obsolete
)
*
Tue Feb 03 2004 Lenz Grimmer <lenz@mysql.com>
- added myisam_ftdump to the Server package
...
...
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