mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
Fixing a few problems found by Build Bot after merging the CONNECT engine.
modified: @ mysql-test/r/mysqld--help.result @ mysql-test/t/mysqld--help.test Supressing information about "--connect" in "mysqld --help" output, as it depends on the build parameters. As a side effect information about --connect-timeout is now also suppressed :( @ storage/connect/CMakeLists.txt Removing gcc warning switches that do not exists in some older gcc versions. @ storage/connect/ha_connect.cc Adding a quick fix: cast from "const char *" to "char *". Olivier should do a better fix eventually.
This commit is contained in:
@@ -108,8 +108,6 @@ The following options may be given as the first argument:
|
|||||||
--concurrent-insert[=name]
|
--concurrent-insert[=name]
|
||||||
Use concurrent insert with MyISAM. Possible values are
|
Use concurrent insert with MyISAM. Possible values are
|
||||||
NEVER, AUTO, ALWAYS
|
NEVER, AUTO, ALWAYS
|
||||||
--connect-timeout=# The number of seconds the mysqld server is waiting for a
|
|
||||||
connect packet before responding with 'Bad handshake'
|
|
||||||
--console Write error output on screen; don't remove the console
|
--console Write error output on screen; don't remove the console
|
||||||
window on windows.
|
window on windows.
|
||||||
--core-file Write core on errors.
|
--core-file Write core on errors.
|
||||||
@@ -1003,7 +1001,6 @@ chroot (No default value)
|
|||||||
collation-server latin1_swedish_ci
|
collation-server latin1_swedish_ci
|
||||||
completion-type NO_CHAIN
|
completion-type NO_CHAIN
|
||||||
concurrent-insert AUTO
|
concurrent-insert AUTO
|
||||||
connect-timeout 10
|
|
||||||
console FALSE
|
console FALSE
|
||||||
date-format %Y-%m-%d
|
date-format %Y-%m-%d
|
||||||
datetime-format %Y-%m-%d %H:%i:%s
|
datetime-format %Y-%m-%d %H:%i:%s
|
||||||
|
@@ -26,7 +26,7 @@ perl;
|
|||||||
@plugins=qw/innodb ndb archive blackhole federated partition ndbcluster
|
@plugins=qw/innodb ndb archive blackhole federated partition ndbcluster
|
||||||
feedback debug temp-pool ssl des-key-file xtradb sequence
|
feedback debug temp-pool ssl des-key-file xtradb sequence
|
||||||
thread-concurrency super-large-pages mutex-deadlock-detector
|
thread-concurrency super-large-pages mutex-deadlock-detector
|
||||||
null-audit aria pbxt oqgraph sphinx thread-handling
|
connect null-audit aria pbxt oqgraph sphinx thread-handling
|
||||||
test-sql-discovery rpl-semi-sync query-cache-info/;
|
test-sql-discovery rpl-semi-sync query-cache-info/;
|
||||||
|
|
||||||
# And substitute the content some environment variables with their
|
# And substitute the content some environment variables with their
|
||||||
|
@@ -44,20 +44,24 @@ add_definitions( -DHUGE_SUPPORT -DZIP_SUPPORT )
|
|||||||
#
|
#
|
||||||
IF(UNIX)
|
IF(UNIX)
|
||||||
if(WITH_WARNINGS)
|
if(WITH_WARNINGS)
|
||||||
add_definitions(-Wall -Wfatal-errors -Wextra -Wmissing-declarations)
|
# Bar: -Wfatal-errors removed (does not present in gcc on solaris10)
|
||||||
|
add_definitions(-Wall -Wextra -Wmissing-declarations)
|
||||||
add_definitions(-Wno-non-virtual-dtor)
|
add_definitions(-Wno-non-virtual-dtor)
|
||||||
message(STATUS "CONNECT: GCC: All warnings enabled")
|
message(STATUS "CONNECT: GCC: All warnings enabled")
|
||||||
else()
|
else()
|
||||||
add_definitions(-Wall -Wfatal-errors -Wmissing-declarations)
|
add_definitions(-Wall -Wfatal-errors -Wmissing-declarations)
|
||||||
add_definitions(-Wno-write-strings)
|
add_definitions(-Wno-write-strings)
|
||||||
add_definitions(-Wno-unused-variable)
|
add_definitions(-Wno-unused-variable)
|
||||||
add_definitions(-Wno-unused-but-set-variable)
|
# Bar: -Wno-unused-but-set-variables commented (does not present on sol10)
|
||||||
|
# add_definitions(-Wno-unused-but-set-variable)
|
||||||
add_definitions(-Wno-unused-value)
|
add_definitions(-Wno-unused-value)
|
||||||
add_definitions(-Wno-unused-function)
|
add_definitions(-Wno-unused-function)
|
||||||
add_definitions(-Wno-parentheses)
|
add_definitions(-Wno-parentheses)
|
||||||
add_definitions(-Wno-missing-declarations)
|
add_definitions(-Wno-missing-declarations)
|
||||||
add_definitions(-Wno-int-to-pointer-cast)
|
# Bar: -Wno-int-to-pointer-cast commended (does not present in gcc on sol10)
|
||||||
add_definitions(-Wno-narrowing)
|
# add_definitions(-Wno-int-to-pointer-cast)
|
||||||
|
# Bar: -Wno-narrowing commented (does not present in gcc on solaris10)
|
||||||
|
# add_definitions(-Wno-narrowing)
|
||||||
add_definitions(-Wno-non-virtual-dtor)
|
add_definitions(-Wno-non-virtual-dtor)
|
||||||
|
|
||||||
# This switch is for pure C only:
|
# This switch is for pure C only:
|
||||||
|
@@ -3475,10 +3475,10 @@ static int connect_assisted_discovery(handlerton *hton, THD* thd,
|
|||||||
switch (fnc) {
|
switch (fnc) {
|
||||||
case FNC_NO:
|
case FNC_NO:
|
||||||
case FNC_COL:
|
case FNC_COL:
|
||||||
qrp= ODBCColumns(g, dsn, tab, NULL, fnc == FNC_COL);
|
qrp= ODBCColumns(g, dsn, (char *) tab, NULL, fnc == FNC_COL);
|
||||||
break;
|
break;
|
||||||
case FNC_TABLE:
|
case FNC_TABLE:
|
||||||
qrp= ODBCTables(g, dsn, tab, true);
|
qrp= ODBCTables(g, dsn, (char *) tab, true);
|
||||||
break;
|
break;
|
||||||
case FNC_DSN:
|
case FNC_DSN:
|
||||||
qrp= ODBCDataSources(g, true);
|
qrp= ODBCDataSources(g, true);
|
||||||
|
Reference in New Issue
Block a user