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
2e2b146b
Commit
2e2b146b
authored
Apr 02, 2002
by
monty@hundin.mysql.fi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix for HAVE_QUERY_CACHE
Remove not used flag CLIENT_CHANGE_USER
parent
d80ebc17
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
26 additions
and
19 deletions
+26
-19
Docs/manual.texi
Docs/manual.texi
+10
-4
acconfig.h
acconfig.h
+3
-0
configure.in
configure.in
+5
-6
include/my_global.h
include/my_global.h
+1
-1
include/mysql_com.h
include/mysql_com.h
+0
-1
libmysqld/libmysqld.c
libmysqld/libmysqld.c
+7
-7
No files found.
Docs/manual.texi
View file @
2e2b146b
...
...
@@ -33543,8 +33543,10 @@ If you want to use an @code{ORDER BY} for the total @code{UNION} result,
you should use parentheses:
@example
(SELECT a FROM table_name WHERE a=10 AND B=1 ORDER BY a LIMIT 10) UNION
(SELECT a FROM table_name WHERE a=11 AND B=2 ORDER BY a LIMIT 10) ORDER BY a;
(SELECT a FROM table_name WHERE a=10 AND B=1 ORDER BY a LIMIT 10)
UNION
(SELECT a FROM table_name WHERE a=11 AND B=2 ORDER BY a LIMIT 10)
ORDER BY a;
@end example
@findex HANDLER
...
...
@@ -33553,8 +33555,12 @@ you should use parentheses:
@example
HANDLER table OPEN [ AS alias ]
HANDLER table READ index @{ = | >= | <= | < @} (value1, value2, ... ) [ WHERE ... ] [LIMIT ... ]
HANDLER table READ index @{ FIRST | NEXT | PREV | LAST @} [ WHERE ... ] [LIMIT ... ]
HANDLER table READ index @{ = | >= | <= | < @} (value1, value2, ... )
[ WHERE ... ] [LIMIT ... ]
HANDLER table READ index @{ FIRST | NEXT | PREV | LAST @}
[ WHERE ... ] [LIMIT ... ]
HANDLER table READ @{ FIRST | NEXT @} [ WHERE ... ] [LIMIT ... ]
HANDLER table CLOSE
@end example
acconfig.h
View file @
2e2b146b
...
...
@@ -148,6 +148,9 @@
/* crypt */
#undef HAVE_CRYPT
/* If we want to have query cache */
#undef HAVE_QUERY_CACHE
/* Solaris define gethostbyaddr_r with 7 arguments. glibc2 defines
this with 8 arguments */
#undef HAVE_SOLARIS_STYLE_GETHOST
...
...
configure.in
View file @
2e2b146b
...
...
@@ -1827,15 +1827,14 @@ AC_ARG_WITH(embedded-server,
)
AC_ARG_WITH
(
query_cache,
[
--without-query-cache
Don
'
t build query cache in embedded server.],
[with_
embedded_server
=$withval],
[with_
embedded_server
=yes]
[
--without-query-cache
Don
no
t build query cache
in
embedded server.],
[
with_
query_cache
=
$withval
]
,
[
with_
query_cache
=
yes
]
)
if test "$with_
embedded_server
" = "yes"
if
test
"
$with_
query_cache
"
=
"yes"
then
CFLAGS="$CFLAGS -DHAVE_QUERY_CACHE"
CXXFLAGS="$CXXFLAGS -DHAVE_QUERY_CACHE"
AC_DEFINE
(
HAVE_QUERY_CACHE
)
fi
AC_ARG_WITH
(
extra-tools,
...
...
include/my_global.h
View file @
2e2b146b
...
...
@@ -1027,7 +1027,7 @@ typedef union {
Now if query is taken off then tests with query cache fails
SANJA TODO: remove this when problem with mysql-test will be solved
*/
#if
def MYSQL_SERVER
#if
defined(MYSQL_SERVER) && !defined(HAVE_QUERY_CACHE)
#define HAVE_QUERY_CACHE
#endif
...
...
include/mysql_com.h
View file @
2e2b146b
...
...
@@ -91,7 +91,6 @@ enum enum_server_command {COM_SLEEP,COM_QUIT,COM_INIT_DB,COM_QUERY,
#define CLIENT_ODBC 64
/* Odbc client */
#define CLIENT_LOCAL_FILES 128
/* Can use LOAD DATA LOCAL */
#define CLIENT_IGNORE_SPACE 256
/* Ignore spaces before '(' */
#define CLIENT_CHANGE_USER 512
/* Support the mysql_change_user() */
#define CLIENT_INTERACTIVE 1024
/* This is an interactive client */
#define CLIENT_SSL 2048
/* Switch to SSL after handshake */
#define CLIENT_IGNORE_SIGPIPE 4096
/* IGNORE sigpipes */
...
...
libmysqld/libmysqld.c
View file @
2e2b146b
...
...
@@ -1719,7 +1719,7 @@ mysql_dump_debug_info(MYSQL *mysql)
DBUG_RETURN
(
simple_command
(
mysql
,
COM_DEBUG
,
""
,
0
,
0
));
}
char
*
STDCALL
c
onst
c
har
*
STDCALL
mysql_stat
(
MYSQL
*
mysql
)
{
DBUG_ENTER
(
"mysql_stat"
);
...
...
@@ -1744,14 +1744,14 @@ mysql_ping(MYSQL *mysql)
}
char
*
STDCALL
c
onst
c
har
*
STDCALL
mysql_get_server_info
(
MYSQL
*
mysql
)
{
return
((
char
*
)
mysql
->
server_version
);
}
char
*
STDCALL
c
onst
c
har
*
STDCALL
mysql_get_host_info
(
MYSQL
*
mysql
)
{
return
(
mysql
->
host_info
);
...
...
@@ -1764,10 +1764,10 @@ mysql_get_proto_info(MYSQL *mysql)
return
(
mysql
->
protocol_version
);
}
char
*
STDCALL
c
onst
c
har
*
STDCALL
mysql_get_client_info
(
void
)
{
return
(
char
*
)
MYSQL_SERVER_VERSION
;
return
MYSQL_SERVER_VERSION
;
}
...
...
@@ -1875,12 +1875,12 @@ uint STDCALL mysql_errno(MYSQL *mysql)
return
(
mysql
)
->
net
.
last_errno
;
}
char
*
STDCALL
mysql_error
(
MYSQL
*
mysql
)
c
onst
c
har
*
STDCALL
mysql_error
(
MYSQL
*
mysql
)
{
return
(
mysql
)
->
net
.
last_error
;
}
char
*
STDCALL
mysql_info
(
MYSQL
*
mysql
)
c
onst
c
har
*
STDCALL
mysql_info
(
MYSQL
*
mysql
)
{
return
(
mysql
)
->
info
;
}
...
...
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