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
eb49d011
Commit
eb49d011
authored
Nov 26, 2002
by
serg@serg.mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mysql.cc has to support older readline to compile on FreeBSD :((
parent
b385eb4a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
client/mysql.cc
client/mysql.cc
+9
-1
No files found.
client/mysql.cc
View file @
eb49d011
...
...
@@ -1070,9 +1070,13 @@ static void initialize_readline (char *name)
rl_readline_name
=
name
;
/* Tell the completer that we want a crack first. */
/* rl_attempted_completion_function = (CPPFunction *)mysql_completion;*/
#if RL_READLINE_VERSION > 0x0400
rl_attempted_completion_function
=
&
new_mysql_completion
;
rl_completion_entry_function
=
&
no_completion
;
#else
rl_attempted_completion_function
=
(
CPPFunction
*
)
new_mysql_completion
;
rl_completion_entry_function
=
(
Function
*
)
no_completion
;
#endif
}
/*
...
...
@@ -1087,7 +1091,11 @@ static char **new_mysql_completion (const char *text,
int
end
__attribute__
((
unused
)))
{
if
(
!
status
.
batch
&&
!
quick
)
#if RL_READLINE_VERSION > 0x0400
return
rl_completion_matches
(
text
,
new_command_generator
);
#else
return
completion_matches
((
char
*
)
text
,
(
CPFunction
*
)
new_command_generator
);
#endif
else
return
(
char
**
)
0
;
}
...
...
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