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
6e58a7c4
Commit
6e58a7c4
authored
Dec 18, 2003
by
monty@mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Code cleanup
parent
3ce5c56d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
3 deletions
+6
-3
client/mysql.cc
client/mysql.cc
+5
-2
sql/field.cc
sql/field.cc
+1
-1
No files found.
client/mysql.cc
View file @
6e58a7c4
...
...
@@ -2228,8 +2228,11 @@ static int
sql_real_connect
(
char
*
host
,
char
*
database
,
char
*
user
,
char
*
password
,
uint
silent
)
{
mysql_close
(
&
mysql
);
connected
=
0
;
if
(
connected
)
{
connected
=
0
;
mysql_close
(
&
mysql
);
}
mysql_init
(
&
mysql
);
if
(
opt_connect_timeout
)
{
...
...
sql/field.cc
View file @
6e58a7c4
...
...
@@ -4721,7 +4721,7 @@ String *Field_enum::val_str(String *val_buffer __attribute__((unused)),
{
uint
tmp
=
(
uint
)
Field_enum
::
val_int
();
if
(
!
tmp
||
tmp
>
typelib
->
count
)
val_ptr
->
set
(
(
const
char
*
)
""
,
0
);
val_ptr
->
set
(
""
,
0
);
else
val_ptr
->
set
((
const
char
*
)
typelib
->
type_names
[
tmp
-
1
],
(
uint
)
strlen
(
typelib
->
type_names
[
tmp
-
1
]));
...
...
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