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
30cddcc1
Commit
30cddcc1
authored
Jan 16, 2005
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge gbichot@bk-internal.mysql.com:/home/bk/mysql-4.1
into mysql.com:/home/mysql_src/mysql-4.1-clean
parents
11dacd12
0de6a426
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
9 deletions
+9
-9
client/mysql.cc
client/mysql.cc
+4
-4
myisam/mi_open.c
myisam/mi_open.c
+2
-3
ndb/docs/Makefile.am
ndb/docs/Makefile.am
+2
-2
sql-common/client.c
sql-common/client.c
+1
-0
No files found.
client/mysql.cc
View file @
30cddcc1
...
@@ -172,7 +172,7 @@ static char *shared_memory_base_name=0;
...
@@ -172,7 +172,7 @@ static char *shared_memory_base_name=0;
#endif
#endif
static
uint
opt_protocol
=
0
;
static
uint
opt_protocol
=
0
;
static
CHARSET_INFO
*
charset_info
=
&
my_charset_latin1
;
static
CHARSET_INFO
*
charset_info
=
&
my_charset_latin1
;
#include "sslopt-vars.h"
#include "sslopt-vars.h"
const
char
*
default_dbug_option
=
"d:t:o,/tmp/mysql.trace"
;
const
char
*
default_dbug_option
=
"d:t:o,/tmp/mysql.trace"
;
...
@@ -1520,7 +1520,7 @@ You can turn off this feature to get a quicker startup with -A\n\n");
...
@@ -1520,7 +1520,7 @@ You can turn off this feature to get a quicker startup with -A\n\n");
j
=
0
;
j
=
0
;
while
((
sql_field
=
mysql_fetch_field
(
fields
)))
while
((
sql_field
=
mysql_fetch_field
(
fields
)))
{
{
sprintf
(
buf
,
"%
s.%
s"
,
table_row
[
0
],
sql_field
->
name
);
sprintf
(
buf
,
"%
.64s.%.64
s"
,
table_row
[
0
],
sql_field
->
name
);
field_names
[
i
][
j
]
=
strdup_root
(
&
hash_mem_root
,
buf
);
field_names
[
i
][
j
]
=
strdup_root
(
&
hash_mem_root
,
buf
);
add_word
(
&
ht
,
field_names
[
i
][
j
]);
add_word
(
&
ht
,
field_names
[
i
][
j
]);
field_names
[
i
][
num_fields
+
j
]
=
strdup_root
(
&
hash_mem_root
,
field_names
[
i
][
num_fields
+
j
]
=
strdup_root
(
&
hash_mem_root
,
...
@@ -1597,7 +1597,7 @@ int mysql_real_query_for_lazy(const char *buf, int length)
...
@@ -1597,7 +1597,7 @@ int mysql_real_query_for_lazy(const char *buf, int length)
for
(
uint
retry
=
0
;;
retry
++
)
for
(
uint
retry
=
0
;;
retry
++
)
{
{
if
(
!
mysql_real_query
(
&
mysql
,
buf
,
length
))
if
(
!
mysql_real_query
(
&
mysql
,
buf
,
length
))
return
0
;
return
0
;
int
error
=
put_error
(
&
mysql
);
int
error
=
put_error
(
&
mysql
);
if
(
mysql_errno
(
&
mysql
)
!=
CR_SERVER_GONE_ERROR
||
retry
>
1
||
if
(
mysql_errno
(
&
mysql
)
!=
CR_SERVER_GONE_ERROR
||
retry
>
1
||
!
opt_reconnect
)
!
opt_reconnect
)
...
@@ -2526,7 +2526,7 @@ com_connect(String *buffer, char *line)
...
@@ -2526,7 +2526,7 @@ com_connect(String *buffer, char *line)
{
{
sprintf
(
buff
,
"Connection id: %lu"
,
mysql_thread_id
(
&
mysql
));
sprintf
(
buff
,
"Connection id: %lu"
,
mysql_thread_id
(
&
mysql
));
put_info
(
buff
,
INFO_INFO
);
put_info
(
buff
,
INFO_INFO
);
sprintf
(
buff
,
"Current database: %s
\n
"
,
sprintf
(
buff
,
"Current database: %
.128
s
\n
"
,
current_db
?
current_db
:
"*** NONE ***"
);
current_db
?
current_db
:
"*** NONE ***"
);
put_info
(
buff
,
INFO_INFO
);
put_info
(
buff
,
INFO_INFO
);
}
}
...
...
myisam/mi_open.c
View file @
30cddcc1
...
@@ -142,9 +142,8 @@ MI_INFO *mi_open(const char *name, int mode, uint open_flags)
...
@@ -142,9 +142,8 @@ MI_INFO *mi_open(const char *name, int mode, uint open_flags)
goto
err
;
goto
err
;
}
}
/* Don't call realpath() if the name can't be a link */
/* Don't call realpath() if the name can't be a link */
if
(
strcmp
(
name_buff
,
org_name
))
if
(
strcmp
(
name_buff
,
org_name
)
||
(
void
)
my_readlink
(
index_name
,
org_name
,
MYF
(
0
));
my_readlink
(
index_name
,
org_name
,
MYF
(
0
))
==
-
1
)
else
(
void
)
strmov
(
index_name
,
org_name
);
(
void
)
strmov
(
index_name
,
org_name
);
(
void
)
fn_format
(
data_name
,
org_name
,
""
,
MI_NAME_DEXT
,
2
+
4
+
16
);
(
void
)
fn_format
(
data_name
,
org_name
,
""
,
MI_NAME_DEXT
,
2
+
4
+
16
);
...
...
ndb/docs/Makefile.am
View file @
30cddcc1
...
@@ -38,7 +38,7 @@ ndbapidoc: ndbapi.pdf
...
@@ -38,7 +38,7 @@ ndbapidoc: ndbapi.pdf
ndbapi.pdf
:
$(noinst_HEADERS)
ndbapi.pdf
:
$(noinst_HEADERS)
@
set
-x
;
\
@
set
-x
;
\
export
NDB_RELEASE
=
$(NDB_RELEASE)
\
export
NDB_RELEASE
=
$(NDB_RELEASE)
;
\
@RM@
-f
ndbapi.pdf ndbapi.html
;
\
@RM@
-f
ndbapi.pdf ndbapi.html
;
\
@RM@
-rf
$(DOXYTMP)
$(DOXYOUT)
;
\
@RM@
-rf
$(DOXYTMP)
$(DOXYOUT)
;
\
mkdir
-p
$(DOXYTMP)
$(DOXYOUT)
;
\
mkdir
-p
$(DOXYTMP)
$(DOXYOUT)
;
\
...
@@ -62,7 +62,7 @@ mgmapidoc: mgmapi.pdf
...
@@ -62,7 +62,7 @@ mgmapidoc: mgmapi.pdf
mgmapi.pdf
:
$(noinst_HEADERS)
mgmapi.pdf
:
$(noinst_HEADERS)
@
set
-x
;
\
@
set
-x
;
\
export
NDB_RELEASE
=
$(NDB_RELEASE)
\
export
NDB_RELEASE
=
$(NDB_RELEASE)
;
\
@RM@
-f
mgmapi.pdf mgmapi.html
;
\
@RM@
-f
mgmapi.pdf mgmapi.html
;
\
@RM@
-rf
$(DOXYTMP)
$(DOXYOUT)
;
\
@RM@
-rf
$(DOXYTMP)
$(DOXYOUT)
;
\
mkdir
-p
$(DOXYTMP)
$(DOXYOUT)
;
\
mkdir
-p
$(DOXYTMP)
$(DOXYOUT)
;
\
...
...
sql-common/client.c
View file @
30cddcc1
...
@@ -1422,6 +1422,7 @@ mysql_init(MYSQL *mysql)
...
@@ -1422,6 +1422,7 @@ mysql_init(MYSQL *mysql)
bzero
((
char
*
)
(
mysql
),
sizeof
(
*
(
mysql
)));
bzero
((
char
*
)
(
mysql
),
sizeof
(
*
(
mysql
)));
mysql
->
options
.
connect_timeout
=
CONNECT_TIMEOUT
;
mysql
->
options
.
connect_timeout
=
CONNECT_TIMEOUT
;
mysql
->
last_used_con
=
mysql
->
next_slave
=
mysql
->
master
=
mysql
;
mysql
->
last_used_con
=
mysql
->
next_slave
=
mysql
->
master
=
mysql
;
mysql
->
charset
=
default_charset_info
;
strmov
(
mysql
->
net
.
sqlstate
,
not_error_sqlstate
);
strmov
(
mysql
->
net
.
sqlstate
,
not_error_sqlstate
);
/*
/*
By default, we are a replication pivot. The caller must reset it
By default, we are a replication pivot. The caller must reset it
...
...
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