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
f3171b49
Commit
f3171b49
authored
Aug 19, 2001
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add my_dup.c
sql/sql_parse.cc: cleanup
parent
cfdf5fee
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
40 additions
and
1 deletion
+40
-1
mysys/my_dup.c
mysys/my_dup.c
+40
-0
sql/sql_parse.cc
sql/sql_parse.cc
+0
-1
No files found.
mysys/my_dup.c
0 → 100644
View file @
f3171b49
/* Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Library General Public License for more details.
You should have received a copy of the GNU Library General Public
License along with this library; if not, write to the Free
Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
MA 02111-1307, USA */
#define USES_TYPES
#include "mysys_priv.h"
#include "mysys_err.h"
#include <my_dir.h>
#include <errno.h>
#if defined(MSDOS) || defined(__WIN__) || defined(__EMX__)
#include <share.h>
#endif
/* Open a file */
File
my_dup
(
File
file
,
myf
MyFlags
)
{
File
fd
;
char
*
filename
;
DBUG_ENTER
(
"my_dup"
);
DBUG_PRINT
(
"my"
,(
"file: %d MyFlags: %d"
,
MyFlags
));
fd
=
dup
(
file
);
filename
=
(((
int
)
file
<
MY_NFILE
)
?
my_file_info
[(
int
)
file
].
name
:
"Unknown"
);
DBUG_RETURN
(
my_register_filename
(
fd
,
filename
,
FILE_BY_DUP
,
EE_FILENOTFOUND
,
MyFlags
));
}
/* my_open */
sql/sql_parse.cc
View file @
f3171b49
...
...
@@ -1087,7 +1087,6 @@ mysql_execute_command(void)
select_result
*
result
;
if
(
select_lex
->
options
&
SELECT_DESCRIBE
)
lex
->
exchange
=
0
;
/* Save a call, as it's very uncomon that we use unions */
if
(
tables
)
{
res
=
check_table_access
(
thd
,
...
...
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