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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
e1bc99c1
Commit
e1bc99c1
authored
Feb 22, 2004
by
monty@mashka.mysql.fi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
After merge fixes
Fixed wrong test of database name (affected optimization of ORDER BY)
parent
494e43c1
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
17 additions
and
11 deletions
+17
-11
VC++Files/client/mysqlclient.dsp
VC++Files/client/mysqlclient.dsp
+4
-0
VC++Files/mysys/mysys.dsp
VC++Files/mysys/mysys.dsp
+4
-0
mysql-test/r/negation_elimination.result
mysql-test/r/negation_elimination.result
+0
-4
sql-common/client.c
sql-common/client.c
+8
-6
sql/sql_base.cc
sql/sql_base.cc
+1
-1
No files found.
VC++Files/client/mysqlclient.dsp
View file @
e1bc99c1
...
...
@@ -358,6 +358,10 @@ SOURCE=..\mysys\my_open.c
# End Source File
# Begin Source File
SOURCE=..\mysys\my_file.c
# End Source File
# Begin Source File
SOURCE=..\mysys\my_pread.c
# End Source File
# Begin Source File
...
...
VC++Files/mysys/mysys.dsp
View file @
e1bc99c1
...
...
@@ -390,6 +390,10 @@ SOURCE=.\my_open.c
# End Source File
# Begin Source File
SOURCE=.\my_file.c
# End Source File
# Begin Source File
SOURCE=.\my_pread.c
# End Source File
# Begin Source File
...
...
mysql-test/r/negation_elimination.result
View file @
e1bc99c1
...
...
@@ -243,10 +243,6 @@ a
3
4
5
6
7
8
9
10
11
12
...
...
sql-common/client.c
View file @
e1bc99c1
...
...
@@ -286,7 +286,7 @@ HANDLE create_named_pipe(NET *net, uint connect_timeout, char **arg_host,
char
**
arg_unix_socket
)
{
HANDLE
hPipe
=
INVALID_HANDLE_VALUE
;
char
szPipeName
[
257
];
char
pipe_name
[
1024
];
DWORD
dwMode
;
int
i
;
my_bool
testing_named_pipes
=
0
;
...
...
@@ -297,13 +297,15 @@ HANDLE create_named_pipe(NET *net, uint connect_timeout, char **arg_host,
if
(
!
host
||
!
strcmp
(
host
,
LOCAL_HOST
))
host
=
LOCAL_HOST_NAMEDPIPE
;
sprintf
(
szPipeName
,
"
\\\\
%s
\\
pipe
\\
%s"
,
host
,
unix_socket
);
DBUG_PRINT
(
"info"
,(
"Server name: '%s'. Named Pipe: %s"
,
host
,
unix_socket
));
pipe_name
[
sizeof
(
pipe_name
)
-
1
]
=
0
;
/* Safety if too long string */
strxnmov
(
pipe_name
,
sizeof
(
pipe_name
)
-
1
,
"
\\\\
"
,
host
,
"
\\
pipe
\\
"
,
unix_socket
,
NullS
);
DBUG_PRINT
(
"info"
,(
"Server name: '%s'. Named Pipe: %s"
,
host
,
unix_socket
));
for
(
i
=
0
;
i
<
100
;
i
++
)
/* Don't retry forever */
{
if
((
hPipe
=
CreateFile
(
szPipeN
ame
,
if
((
hPipe
=
CreateFile
(
pipe_n
ame
,
GENERIC_READ
|
GENERIC_WRITE
,
0
,
NULL
,
...
...
@@ -320,7 +322,7 @@ HANDLE create_named_pipe(NET *net, uint connect_timeout, char **arg_host,
return
INVALID_HANDLE_VALUE
;
}
/* wait for for an other instance */
if
(
!
WaitNamedPipe
(
szPipeN
ame
,
connect_timeout
*
1000
)
)
if
(
!
WaitNamedPipe
(
pipe_n
ame
,
connect_timeout
*
1000
)
)
{
net
->
last_errno
=
CR_NAMEDPIPEWAIT_ERROR
;
strmov
(
net
->
sqlstate
,
unknown_sqlstate
);
...
...
sql/sql_base.cc
View file @
e1bc99c1
...
...
@@ -2038,7 +2038,7 @@ find_item_in_list(Item *find, List<Item> &items, uint *counter,
{
if
(
!
strcmp
(
item_field
->
table_name
,
table_name
)
&&
(
!
db_name
||
(
db_name
&&
item_field
->
db_name
&&
!
strcmp
(
item_field
->
table_name
,
table
_name
))))
!
strcmp
(
item_field
->
db_name
,
db
_name
))))
{
found
=
li
.
ref
();
*
counter
=
i
;
...
...
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