mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Always build thread safe client libraries in the distributed build
Add mysqlmanager to binary distribution.
This commit is contained in:
@ -153,7 +153,7 @@ if ($opt_stage <= 1)
|
|||||||
{
|
{
|
||||||
$opt_config_options.= " --with-innodb"
|
$opt_config_options.= " --with-innodb"
|
||||||
}
|
}
|
||||||
check_system("$opt_config_env ./configure --prefix=/usr/local/mysql \"--with-comment=Official MySQL$version_suffix binary\" --with-extra-charsets=complex \"--with-server-suffix=$version_suffix\" $opt_config_options","Thank you for choosing MySQL");
|
check_system("$opt_config_env ./configure --prefix=/usr/local/mysql \"--with-comment=Official MySQL$version_suffix binary\" --with-extra-charsets=complex \"--with-server-suffix=$version_suffix\" --enable-thread-safe-client $opt_config_options","Thank you for choosing MySQL");
|
||||||
if (-d "$pwd/$host/include-mysql")
|
if (-d "$pwd/$host/include-mysql")
|
||||||
{
|
{
|
||||||
safe_system("cp -r $pwd/$host/include-mysql/* $pwd/$host/$ver/include");
|
safe_system("cp -r $pwd/$host/include-mysql/* $pwd/$host/$ver/include");
|
||||||
@ -317,7 +317,7 @@ exit 0;
|
|||||||
sub usage
|
sub usage
|
||||||
{
|
{
|
||||||
print <<EOF;
|
print <<EOF;
|
||||||
$0 version 1.3
|
$0 version 1.4
|
||||||
|
|
||||||
$0 takes the following options:
|
$0 takes the following options:
|
||||||
|
|
||||||
@ -549,7 +549,8 @@ sub kill_all
|
|||||||
chop($cand);
|
chop($cand);
|
||||||
($pid_user, $pid) = split(' ', $cand);
|
($pid_user, $pid) = split(' ', $cand);
|
||||||
next if $pid == $$;
|
next if $pid == $$;
|
||||||
next process if (! ($cand =~ $pattern) || $pid_user ne $user)
|
next process if (! ($cand =~ $pattern) || $pid_user ne $user);
|
||||||
|
print LOG "Killing $_\n";
|
||||||
&killpid($pid);
|
&killpid($pid);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -4033,8 +4033,13 @@ If the date is totally wrong, MySQL will store the special
|
|||||||
0000-00-00 date value in the column.
|
0000-00-00 date value in the column.
|
||||||
|
|
||||||
@item
|
@item
|
||||||
If you set an @code{enum} to an unsupported value, it will be set to
|
If you set an @code{ENUM} column to an unsupported value, it will be set to
|
||||||
the error value 'empty string', with numeric value 0.
|
the error value 'empty string', with numeric value 0.
|
||||||
|
|
||||||
|
@item
|
||||||
|
If you set an @cod{SET} column to an unsupported value, the value will
|
||||||
|
be ignored. @xref{Bugs}.
|
||||||
|
|
||||||
@end itemize
|
@end itemize
|
||||||
|
|
||||||
@item
|
@item
|
||||||
@ -4934,6 +4939,18 @@ Standard usage in PostgreSQL is closer to ANSI SQL in some cases.
|
|||||||
@item
|
@item
|
||||||
One can speed up PostgreSQL by coding things as stored procedures.
|
One can speed up PostgreSQL by coding things as stored procedures.
|
||||||
|
|
||||||
|
@item
|
||||||
|
For geographical data, R-TREES makes PostgreSQL better than MySQL.
|
||||||
|
|
||||||
|
@item
|
||||||
|
The PostgreSQL optimizer can do some optimization that the current MySQL
|
||||||
|
optimizer can't do. Most notable is doing joins when you don't have the
|
||||||
|
proper keys in place and doing a join where you are using different keys
|
||||||
|
combined with OR. The MySQL benchmark suite at
|
||||||
|
@uref{http://www.mysql.com/information/benchmarks.html} shows you what
|
||||||
|
kind of constructs you should watch out for when using different
|
||||||
|
databases.
|
||||||
|
|
||||||
@item
|
@item
|
||||||
PostgreSQL has a bigger team of developers that contribute to the server.
|
PostgreSQL has a bigger team of developers that contribute to the server.
|
||||||
@end itemize
|
@end itemize
|
||||||
@ -29146,6 +29163,9 @@ specified at table creation time. For example, if a column is specified as
|
|||||||
@code{SET("a","b","c","d")}, then @code{"a,d"}, @code{"d,a"}, and
|
@code{SET("a","b","c","d")}, then @code{"a,d"}, @code{"d,a"}, and
|
||||||
@code{"d,a,a,d,d"} will all appear as @code{"a,d"} when retrieved.
|
@code{"d,a,a,d,d"} will all appear as @code{"a,d"} when retrieved.
|
||||||
|
|
||||||
|
If you set a @code{SET} column to an unsupported value, the value will
|
||||||
|
be ignored.
|
||||||
|
|
||||||
@code{SET} values are sorted numerically. @code{NULL} values sort before
|
@code{SET} values are sorted numerically. @code{NULL} values sort before
|
||||||
non-@code{NULL} @code{SET} values.
|
non-@code{NULL} @code{SET} values.
|
||||||
|
|
||||||
@ -33790,8 +33810,10 @@ column in a table, the default value is the current date and time.
|
|||||||
@xref{Date and time types}.
|
@xref{Date and time types}.
|
||||||
|
|
||||||
@item
|
@item
|
||||||
For string types other than @code{ENUM}, the default value is the empty string.
|
For string types other than @code{ENUM}, the default value is the empty
|
||||||
For @code{ENUM}, the default is the first enumeration value.
|
string. For @code{ENUM}, the default is the first enumeration value (if
|
||||||
|
you haven't explicitely specified another default value with the
|
||||||
|
@code{DEFAULT} directive).
|
||||||
@end itemize
|
@end itemize
|
||||||
|
|
||||||
Default values must be constants. This means, for example, that you cannot
|
Default values must be constants. This means, for example, that you cannot
|
||||||
|
@ -1150,9 +1150,9 @@ static void dumpTable(uint numFields, char *table)
|
|||||||
}
|
}
|
||||||
if (opt_lock)
|
if (opt_lock)
|
||||||
fputs("UNLOCK TABLES;\n", md_result_file);
|
fputs("UNLOCK TABLES;\n", md_result_file);
|
||||||
mysql_free_result(res);
|
|
||||||
if (opt_autocommit)
|
if (opt_autocommit)
|
||||||
fprintf(md_result_file, "commit;\n");
|
fprintf(md_result_file, "commit;\n");
|
||||||
|
mysql_free_result(res);
|
||||||
}
|
}
|
||||||
} /* dumpTable */
|
} /* dumpTable */
|
||||||
|
|
||||||
|
@ -66,9 +66,10 @@ for i in extra/comp_err extra/replace extra/perror extra/resolveip \
|
|||||||
myisam/myisampack sql/mysqld sql/mysqlbinlog \
|
myisam/myisampack sql/mysqld sql/mysqlbinlog \
|
||||||
client/mysql sql/mysqld client/mysqlshow client/mysqlcheck \
|
client/mysql sql/mysqld client/mysqlshow client/mysqlcheck \
|
||||||
client/mysqladmin client/mysqldump client/mysqlimport client/mysqltest \
|
client/mysqladmin client/mysqldump client/mysqlimport client/mysqltest \
|
||||||
|
tools/mysqlmanager \
|
||||||
client/.libs/mysql client/.libs/mysqlshow client/.libs/mysqladmin \
|
client/.libs/mysql client/.libs/mysqlshow client/.libs/mysqladmin \
|
||||||
client/.libs/mysqldump client/.libs/mysqlimport client/.libs/mysqltest \
|
client/.libs/mysqldump client/.libs/mysqlimport client/.libs/mysqltest \
|
||||||
client/.libs/mysqlcheck
|
client/.libs/mysqlcheck tools/.libs/mysqlmanager
|
||||||
do
|
do
|
||||||
if [ -f $i ]
|
if [ -f $i ]
|
||||||
then
|
then
|
||||||
@ -88,7 +89,7 @@ do
|
|||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
for i in libmysql/.libs/libmysqlclient.a libmysql/.libs/libmysqlclient.so* libmysql/libmysqlclient.* libmysql_r/.libs/libmysqlclient_r.a libmysql_r/.libs/libmysqlclient_r.so* libmysql_r/libmysqlclient_r.* mysys/libmysys.a strings/libmystrings.a dbug/libdbug.a libmysqld/.libs/libmysqld.a libmysqld/.libs/libmysqld.so* libmysqld/libmysqld.a libmysqld/libmysqld.a
|
for i in libmysql/.libs/libmysqlclient.a libmysql/.libs/libmysqlclient.so* libmysql/libmysqlclient.* libmysql_r/.libs/libmysqlclient_r.a libmysql_r/.libs/libmysqlclient_r.so* libmysql_r/libmysqlclient_r.* mysys/libmysys.a strings/libmystrings.a dbug/libdbug.a libmysqld/.libs/libmysqld.a libmysqld/.libs/libmysqld.so* libmysqld/libmysqld.a
|
||||||
do
|
do
|
||||||
if [ -f $i ]
|
if [ -f $i ]
|
||||||
then
|
then
|
||||||
|
@ -423,6 +423,7 @@ fi
|
|||||||
%files bench
|
%files bench
|
||||||
%attr(-, root, root) /usr/share/sql-bench
|
%attr(-, root, root) /usr/share/sql-bench
|
||||||
%attr(-, root, root) /usr/share/mysql-test
|
%attr(-, root, root) /usr/share/mysql-test
|
||||||
|
%attr(755, root, root) /usr/bin/mysqlmanager
|
||||||
|
|
||||||
%files Max
|
%files Max
|
||||||
%attr(755, root, root) /usr/sbin/mysqld-max
|
%attr(755, root, root) /usr/sbin/mysqld-max
|
||||||
|
Reference in New Issue
Block a user