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
f74ffcca
Commit
f74ffcca
authored
Mar 07, 2001
by
tim@threads.polyesthetic.msg
Browse files
Options
Browse Files
Download
Plain Diff
Merge work.mysql.com:/home/bk/mysql
into threads.polyesthetic.msg:/usr/local/src/my/work
parents
6d78974d
496542f2
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
69 additions
and
27 deletions
+69
-27
Build-tools/Do-all-build-steps
Build-tools/Do-all-build-steps
+5
-12
Docs/manual.texi
Docs/manual.texi
+12
-2
acinclude.m4
acinclude.m4
+25
-9
bdb/Makefile.in
bdb/Makefile.in
+2
-1
configure.in
configure.in
+25
-3
No files found.
Build-tools/Do-all-build-steps
View file @
f74ffcca
...
@@ -49,20 +49,12 @@ rm -f NEW-RPMS/*
...
@@ -49,20 +49,12 @@ rm -f NEW-RPMS/*
# Stop on error
# Stop on error
set -e
set -e
# Make everything readable for user and group
# chmod -R u+rw,g+rw .
/bin/rm -f */.deps/*.P
/bin/rm -f */.deps/*.P
/bin/rm -f config.cache
/bin/rm -f config.cache
aclocal; autoheader; aclocal; automake; autoconf
aclocal && autoheader && aclocal && automake && autoconf
cd innobase
(cd innobase && aclocal && autoheader && aclocal && automake && autoconf)
aclocal; autoheader; aclocal; automake; autoconf
(cd bdb/dist && sh s_all)
cd ..
# Since we have moved the configure.in stuff from readline to the
# toplevel why do this? David 990630
# (cd readline; aclocal; autoheader; aclocal; automake; autoconf)
# A normal user starts here. We must use mit-threads. Otherwise it
# A normal user starts here. We must use mit-threads. Otherwise it
# does not end up in the distribution.
# does not end up in the distribution.
...
@@ -71,7 +63,7 @@ cd ..
...
@@ -71,7 +63,7 @@ cd ..
--with-low-memory
\
--with-low-memory
\
--with-mit-threads=yes
$EXTRA_CONFIG
\
--with-mit-threads=yes
$EXTRA_CONFIG
\
--enable-thread-safe-client
\
--enable-thread-safe-client
\
--with
out
-berkeley-db
\
--with-berkeley-db
\
--with-innobase-db
--with-innobase-db
gmake -j 2
gmake -j 2
...
@@ -89,6 +81,7 @@ set -e
...
@@ -89,6 +81,7 @@ set -e
log
=
$WD
/Logs/Log-distcheck-
`
date
+%y%m%d-%H%M
`
log
=
$WD
/Logs/Log-distcheck-
`
date
+%y%m%d-%H%M
`
echo
"Logging script
$TMP_SCRIPT
into
$log
"
echo
"Logging script
$TMP_SCRIPT
into
$log
"
if
test
$to_host
=
"mysql-work"
if
test
$to_host
=
"mysql-work"
then
then
# Try to get the right user for MySQL builds on work so that all
# Try to get the right user for MySQL builds on work so that all
...
...
Docs/manual.texi
View file @
f74ffcca
...
@@ -17919,6 +17919,7 @@ Returns the bitwise @code{AND} of all bits in @code{expr}. The calculation is
...
@@ -17919,6 +17919,7 @@ Returns the bitwise @code{AND} of all bits in @code{expr}. The calculation is
performed with 64-bit (@code{BIGINT}) precision.
performed with 64-bit (@code{BIGINT}) precision.
@end table
@end table
@cindex @code{GROUP BY}, extensions to ANSI SQL
@strong{MySQL} has extended the use of @code{GROUP BY}. You can use columns or
@strong{MySQL} has extended the use of @code{GROUP BY}. You can use columns or
calculations in the @code{SELECT} expressions that don't appear in
calculations in the @code{SELECT} expressions that don't appear in
the @code{GROUP BY} part. This stands for @emph{any possible value for this
the @code{GROUP BY} part. This stands for @emph{any possible value for this
...
@@ -17937,8 +17938,9 @@ In ANSI SQL, you would have to add @code{customer.name} to the @code{GROUP
...
@@ -17937,8 +17938,9 @@ In ANSI SQL, you would have to add @code{customer.name} to the @code{GROUP
BY} clause. In @strong{MySQL}, the name is redundant if you don't run in
BY} clause. In @strong{MySQL}, the name is redundant if you don't run in
ANSI mode.
ANSI mode.
Don't use this feature if the columns you omit from the @code{GROUP BY} part
@strong{Don't use this feature} if the columns you omit from the
aren't unique in the group!
@code{GROUP BY} part aren't unique in the group! You will get
unpredictable results.
In some cases, you can use @code{MIN()} and @code{MAX()} to obtain a specific
In some cases, you can use @code{MIN()} and @code{MAX()} to obtain a specific
column value even if it isn't unique. The following gives the value of
column value even if it isn't unique. The following gives the value of
...
@@ -19292,6 +19294,7 @@ to tell the optimizer that the result set will have many rows. In this case,
...
@@ -19292,6 +19294,7 @@ to tell the optimizer that the result set will have many rows. In this case,
temporary table with a key on the @code{GROUP BY} elements.
temporary table with a key on the @code{GROUP BY} elements.
@item
@item
@cindex @code{GROUP BY}, extensions to ANSI SQL
If you use @code{GROUP BY}, the output rows will be sorted according to the
If you use @code{GROUP BY}, the output rows will be sorted according to the
@code{GROUP BY} as if you would have had an @code{ORDER BY} over all the fields
@code{GROUP BY} as if you would have had an @code{ORDER BY} over all the fields
in the @code{GROUP BY}. @strong{MySQL} has extended the @code{GROUP BY} so that
in the @code{GROUP BY}. @strong{MySQL} has extended the @code{GROUP BY} so that
...
@@ -19301,6 +19304,13 @@ you can also specify @code{ASC} and @code{DESC} to @code{GROUP BY}:
...
@@ -19301,6 +19304,13 @@ you can also specify @code{ASC} and @code{DESC} to @code{GROUP BY}:
SELECT a,COUNT(b) FROM test_table GROUP BY a DESC
SELECT a,COUNT(b) FROM test_table GROUP BY a DESC
@end example
@end example
@item
@strong{MySQL} has extended the use of @code{GROUP BY} to allow you to
select fields which are not mentioned in the @code{GROUP BY} clause.
If you are not getting the results you expect from your query, please
read the @code{GROUP BY} description.
@xref{Group by functions}.
@item
@item
@code{SQL_BUFFER_RESULT} will force the result to be put into a temporary
@code{SQL_BUFFER_RESULT} will force the result to be put into a temporary
table. This will help @strong{MySQL} free the table locks early and will help
table. This will help @strong{MySQL} free the table locks early and will help
acinclude.m4
View file @
f74ffcca
...
@@ -608,8 +608,8 @@ AC_MSG_RESULT($ac_cv_conv_longlong_to_float)
...
@@ -608,8 +608,8 @@ AC_MSG_RESULT($ac_cv_conv_longlong_to_float)
dnl ---------------------------------------------------------------------------
dnl ---------------------------------------------------------------------------
dnl Macro: MYSQL_CHECK_BDB
dnl Macro: MYSQL_CHECK_BDB
dnl Sets HAVE_BERKELEY_DB if inst library is found
dnl Sets HAVE_BERKELEY_DB if inst library is found
dnl Makes sure db version is
>= 3.2.3
dnl Makes sure db version is
correct.
dnl Looks in $srcdir for Berkeley distribution not told otherwise
dnl Looks in $srcdir for Berkeley distribution
if
not told otherwise
dnl ---------------------------------------------------------------------------
dnl ---------------------------------------------------------------------------
AC_DEFUN([MYSQL_CHECK_BDB], [
AC_DEFUN([MYSQL_CHECK_BDB], [
...
@@ -618,7 +618,7 @@ AC_DEFUN([MYSQL_CHECK_BDB], [
...
@@ -618,7 +618,7 @@ AC_DEFUN([MYSQL_CHECK_BDB], [
--with-berkeley-db[=DIR]
--with-berkeley-db[=DIR]
Use BerkeleyDB located in DIR],
Use BerkeleyDB located in DIR],
[bdb="$withval"],
[bdb="$withval"],
[bdb=
default
])
[bdb=
no
])
AC_ARG_WITH([berkeley-db-includes],
AC_ARG_WITH([berkeley-db-includes],
[\
[\
...
@@ -719,8 +719,6 @@ dnl echo "DBG3: [$mode] bdb='$bdb'; incl='$bdb_includes'; lib='$bdb_libs'"
...
@@ -719,8 +719,6 @@ dnl echo "DBG3: [$mode] bdb='$bdb'; incl='$bdb_includes'; lib='$bdb_libs'"
;;
;;
compile )
compile )
have_berkeley_db="$bdb"
have_berkeley_db="$bdb"
dnl Is added to @sql_server_dirs@ in configure.in
MYSQL_TOP_BUILDDIR([have_berkeley_db])
AC_MSG_RESULT([Compiling Berekeley DB in '$have_berkeley_db'])
AC_MSG_RESULT([Compiling Berekeley DB in '$have_berkeley_db'])
;;
;;
* )
* )
...
@@ -791,9 +789,18 @@ AC_DEFUN([MYSQL_SEARCH_FOR_BDB], [
...
@@ -791,9 +789,18 @@ AC_DEFUN([MYSQL_SEARCH_FOR_BDB], [
dnl echo ["MYSQL_SEARCH_FOR_BDB"]
dnl echo ["MYSQL_SEARCH_FOR_BDB"]
bdb_dir_ok="no BerkeleyDB found"
bdb_dir_ok="no BerkeleyDB found"
for test_dir in bdb db-*.*.* ../db-*.*.* /usr/local/BerkeleyDB*; do
for test_dir in $srcdir/bdb $srcdir/db-*.*.* /usr/local/BerkeleyDB*; do
dnl echo "-----------> Looking at ($test_dir; `cd $test_dir && pwd`)"
MYSQL_CHECK_BDB_DIR([$test_dir])
MYSQL_CHECK_BDB_DIR([$test_dir])
if test X"$bdb_dir_ok" = Xsource || test X"$bdb_dir_ok" = Xinstalled; then
if test X"$bdb_dir_ok" = Xsource || test X"$bdb_dir_ok" = Xinstalled; then
dnl echo "-----------> Found it ($bdb), ($srcdir)"
dnl This is needed so that 'make distcheck' works properly (VPATH build).
dnl VPATH build won't work if bdb is not under the source tree; but in
dnl that case, hopefully people will just make and install inside the
dnl tree, or install BDB first, and then use the installed version.
case "$bdb" in
"$srcdir/"* ) bdb=`echo "$bdb" | sed -e "s,^$srcdir/,,"` ;;
esac
break
break
fi
fi
done
done
...
@@ -834,9 +841,18 @@ AC_DEFUN([MYSQL_CHECK_BDB_VERSION], [
...
@@ -834,9 +841,18 @@ AC_DEFUN([MYSQL_CHECK_BDB_VERSION], [
])
])
AC_DEFUN([MYSQL_TOP_BUILDDIR], [
AC_DEFUN([MYSQL_TOP_BUILDDIR], [
case $[$1] in
case "$[$1]" in
/* ) ;; # already an absolute path
/* ) ;; # don't do anything with an absolute path
* ) [$1]="'\$(top_builddir)/'$[$1]" ;;
"$srcdir"/* )
# If BDB is under the source directory, we need to look under the
# build directory for bdb/build_unix.
# NOTE: I'm being lazy, and assuming the user did not specify
# something like --with-berkeley-db=bdb (it would be missing "./").
[$1]="\$(top_builddir)/"`echo "$[$1]" | sed -e "s,^$srcdir/,,"`
;;
* )
AC_MSG_ERROR([The BDB directory must be directly under the MySQL source directory, or be specified using the full path. ('$srcdir'; '$[$1]')])
;;
esac
esac
if test X"$[$1]" != "/"
if test X"$[$1]" != "/"
then
then
...
...
bdb/Makefile.in
View file @
f74ffcca
...
@@ -37,7 +37,7 @@ all:
...
@@ -37,7 +37,7 @@ all:
cd
$(bdb_build)
&&
$(MAKE)
all
cd
$(bdb_build)
&&
$(MAKE)
all
# May want to fix this, and MYSQL/configure, to install things
# May want to fix this, and MYSQL/configure, to install things
install
:
install
dvi check installcheck
:
distdir
:
distdir
:
for
s
in
$(subdirs)
;
do
\
for
s
in
$(subdirs)
;
do
\
...
@@ -47,3 +47,4 @@ distdir:
...
@@ -47,3 +47,4 @@ distdir:
test
-f
$(distdir)
/
$$
f
||
cp
-p
$(srcdir)
/
$$
f
$(distdir)
/
$$
f
;
\
test
-f
$(distdir)
/
$$
f
||
cp
-p
$(srcdir)
/
$$
f
$(distdir)
/
$$
f
;
\
done
done
mkdir
$(distdir)
/
$(bdb_build)
mkdir
$(distdir)
/
$(bdb_build)
cp
-p
$(srcdir)
/
$(bdb_build)
/.IGNORE_ME
$(distdir)
/
$(bdb_build)
configure.in
View file @
f74ffcca
...
@@ -1877,9 +1877,31 @@ then
...
@@ -1877,9 +1877,31 @@ then
then
then
bdb_conf_flags="$bdb_conf_flags --enable-debug --enable-diagnostic"
bdb_conf_flags="$bdb_conf_flags --enable-debug --enable-diagnostic"
fi
fi
(cd $bdb && cd build_unix && sh ../dist/configure $bdb_conf_flags) \
# NOTICE: if you'
re compiling BDB, it needs to be a SUBDIR
|| AC_MSG_ERROR([could not configure Berkeley DB])
# of $srcdir (i.e., you can 'cd $srcdir/$bdb'). It won't
# work otherwise.
if
test
-d
"
$bdb
"
;
then
:
else
# This should only happen when doing a VPATH build
echo
"NOTICE: I have to make the BDB directory:
`
pwd
`
:
$bdb
"
mkdir
"
$bdb
"
||
exit
1
fi
if
test
-d
"
$bdb
"
/build_unix
;
then
:
else
# This should only happen when doing a VPATH build
echo
"NOTICE: I have to make the build_unix directory:
`
pwd
`
:
$bdb
/build_unix"
mkdir
"
$bdb
/build_unix"
||
exit
1
fi
rel_srcdir
=
case
"
$srcdir
"
in
/
*
)
rel_srcdir
=
"
$srcdir
"
;;
*
)
rel_srcdir
=
"../../
$srcdir
"
;;
esac
(
cd
$bdb
/build_unix
&&
\
sh
$rel_srcdir
/
$bdb
/dist/configure
$bdb_conf_flags
)
||
\
AC_MSG_ERROR
([
could not configure Berkeley DB]
)
dnl
echo
"bdb = '
$bdb
'; inc = '
$bdb_includes
', lib = '
$bdb_libs
'"
echo
"END OF BERKELEY DB CONFIGURATION"
echo
"END OF BERKELEY DB CONFIGURATION"
fi
fi
...
...
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