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
b5a4f89e
Commit
b5a4f89e
authored
Mar 06, 2002
by
monty@hundin.mysql.fi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Portability fixes
Fix bug when using option groups
parent
fa38c84b
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
4 deletions
+3
-4
libmysql/libmysql.c
libmysql/libmysql.c
+1
-1
myisam/myisamchk.c
myisam/myisamchk.c
+1
-1
mysys/my_getopt.c
mysys/my_getopt.c
+1
-2
No files found.
libmysql/libmysql.c
View file @
b5a4f89e
...
...
@@ -737,7 +737,7 @@ static void mysql_read_default_options(struct st_mysql_options *options,
*
end
=
0
;
/* Remove '=' */
}
/* Change all '_' in variable name to '-' */
for
(
end
=
*
option
;
(
end
=
strcend
(
end
,
'_'
))
&&
*
end
;
)
for
(
end
=
*
option
;
*
(
end
=
strcend
(
end
,
'_'
))
;
)
*
end
=
'-'
;
switch
(
find_type
(
*
option
+
2
,
&
option_types
,
2
))
{
case
1
:
/* port */
...
...
myisam/myisamchk.c
View file @
b5a4f89e
...
...
@@ -193,7 +193,7 @@ static struct my_option my_long_options[] =
0
,
0
,
0
,
GET_NO_ARG
,
NO_ARG
,
'i'
,
0
,
0
,
0
,
0
,
0
,
0
},
{
"keys-used"
,
"Tell MyISAM to update only some specific keys. # is a bit mask of which keys to use. This can be used to get faster inserts!"
,
(
gptr
*
)
&
check_param
.
keys_in_use
,
(
gptr
*
)
&
check_param
.
keys_in_use
,
0
,
GET_LL
,
REQUIRED_ARG
,
'k'
,
-
1LL
,
0
,
0
,
0
,
0
,
0
},
GET_LL
,
REQUIRED_ARG
,
'k'
,
-
1
,
0
,
0
,
0
,
0
,
0
},
{
"medium-check"
,
"Faster than extended-check, but only finds 99.99% of all errors. Should be good enough for most cases."
,
0
,
0
,
0
,
GET_NO_ARG
,
NO_ARG
,
'm'
,
0
,
0
,
0
,
0
,
0
,
0
},
...
...
mysys/my_getopt.c
View file @
b5a4f89e
...
...
@@ -14,7 +14,6 @@
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
#include <my_config.h>
#include <my_global.h>
#include <m_string.h>
#include <stdlib.h>
...
...
@@ -452,7 +451,7 @@ static void init_variables(const struct my_option *options)
{
if
(
options
->
var_type
==
GET_LONG
)
*
((
long
*
)
options
->
u_max_value
)
=
*
((
long
*
)
options
->
value
)
=
options
->
def_value
;
(
long
)
options
->
def_value
;
else
if
(
options
->
var_type
==
GET_LL
)
*
((
longlong
*
)
options
->
u_max_value
)
=
*
((
longlong
*
)
options
->
value
)
=
options
->
def_value
;
...
...
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