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
05793bb9
Commit
05793bb9
authored
Jan 16, 2005
by
guilhem@mysql.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge
parents
1cb5d98d
6412558d
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
20 additions
and
12 deletions
+20
-12
client/mysql.cc
client/mysql.cc
+4
-4
client/mysqldump.c
client/mysqldump.c
+7
-0
myisam/mi_open.c
myisam/mi_open.c
+2
-3
mysql-test/r/ctype_ucs.result
mysql-test/r/ctype_ucs.result
+1
-1
mysql-test/t/user_var.test
mysql-test/t/user_var.test
+2
-1
ndb/docs/Makefile.am
ndb/docs/Makefile.am
+2
-2
sql-common/client.c
sql-common/client.c
+1
-0
sql/log_event.cc
sql/log_event.cc
+1
-1
No files found.
client/mysql.cc
View file @
05793bb9
...
...
@@ -172,7 +172,7 @@ static char *shared_memory_base_name=0;
#endif
static
uint
opt_protocol
=
0
;
static
CHARSET_INFO
*
charset_info
=
&
my_charset_latin1
;
#include "sslopt-vars.h"
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");
j
=
0
;
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
);
add_word
(
&
ht
,
field_names
[
i
][
j
]);
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)
for
(
uint
retry
=
0
;;
retry
++
)
{
if
(
!
mysql_real_query
(
&
mysql
,
buf
,
length
))
return
0
;
return
0
;
int
error
=
put_error
(
&
mysql
);
if
(
mysql_errno
(
&
mysql
)
!=
CR_SERVER_GONE_ERROR
||
retry
>
1
||
!
opt_reconnect
)
...
...
@@ -2526,7 +2526,7 @@ com_connect(String *buffer, char *line)
{
sprintf
(
buff
,
"Connection id: %lu"
,
mysql_thread_id
(
&
mysql
));
put_info
(
buff
,
INFO_INFO
);
sprintf
(
buff
,
"Current database: %s
\n
"
,
sprintf
(
buff
,
"Current database: %
.128
s
\n
"
,
current_db
?
current_db
:
"*** NONE ***"
);
put_info
(
buff
,
INFO_INFO
);
}
...
...
client/mysqldump.c
View file @
05793bb9
...
...
@@ -2308,8 +2308,15 @@ static int start_transaction(MYSQL *mysql_con, my_bool consistent_read_now)
We use BEGIN for old servers. --single-transaction --master-data will fail
on old servers, but that's ok as it was already silently broken (it didn't
do a consistent read, so better tell people frankly, with the error).
We want the first consistent read to be used for all tables to dump so we
need the REPEATABLE READ level (not anything lower, for example READ
COMMITTED would give one new consistent read per dumped table).
*/
return
(
mysql_query_with_error_report
(
mysql_con
,
0
,
"SET SESSION TRANSACTION ISOLATION "
"LEVEL REPEATABLE READ"
)
||
mysql_query_with_error_report
(
mysql_con
,
0
,
consistent_read_now
?
"START TRANSACTION "
"WITH CONSISTENT SNAPSHOT"
:
...
...
myisam/mi_open.c
View file @
05793bb9
...
...
@@ -148,9 +148,8 @@ MI_INFO *mi_open(const char *name, int mode, uint open_flags)
goto
err
;
}
/* Don't call realpath() if the name can't be a link */
if
(
strcmp
(
name_buff
,
org_name
))
(
void
)
my_readlink
(
index_name
,
org_name
,
MYF
(
0
));
else
if
(
strcmp
(
name_buff
,
org_name
)
||
my_readlink
(
index_name
,
org_name
,
MYF
(
0
))
==
-
1
)
(
void
)
strmov
(
index_name
,
org_name
);
(
void
)
fn_format
(
data_name
,
org_name
,
""
,
MI_NAME_DEXT
,
2
+
4
+
16
);
...
...
mysql-test/r/ctype_ucs.result
View file @
05793bb9
...
...
@@ -528,7 +528,7 @@ Log_name Pos Event_type Server_id End_log_pos Info
master-bin.000001 95 User var 1 135 @`v`=_ucs2 0x006100620063 COLLATE ucs2_general_ci
master-bin.000001 135 Query 1 218 use `test`; insert into t2 values (@v)
/*!40019 SET @@session.max_insert_delayed_threads=0*/;
SET @`v`:=_ucs2 0x006100620063 COLLATE
ucs2_general_ci
;
SET @`v`:=_ucs2 0x006100620063 COLLATE
`ucs2_general_ci`
;
use test;
SET TIMESTAMP=10000;
SET @@session.foreign_key_checks=1, @@session.sql_auto_is_null=1, @@session.unique_checks=1;
...
...
mysql-test/t/user_var.test
View file @
05793bb9
...
...
@@ -108,7 +108,8 @@ SET TIMESTAMP=10000;
SET
@
`a b`
=
'hello'
;
INSERT
INTO
t1
VALUES
(
@
`a b`
);
set
@
var1
=
"';aaa"
;
insert
into
t1
values
(
@
var1
);
SET
@
var2
=
char
(
ascii
(
'a'
));
insert
into
t1
values
(
@
var1
),(
@
var2
);
show
binlog
events
from
95
;
# more important than SHOW BINLOG EVENTS, mysqlbinlog (where we
# absolutely need variables names to be quoted and strings to be
...
...
ndb/docs/Makefile.am
View file @
05793bb9
...
...
@@ -43,7 +43,7 @@ ndbapidoc-pdf: ndbapi.pdf
ndbapi.html
:
$(noinst_HEADERS)
@
set
-x
;
\
export
NDB_RELEASE
=
$(NDB_RELEASE)
\
export
NDB_RELEASE
=
$(NDB_RELEASE)
;
\
@RM@
-f
ndbapi.pdf ndbapi.html
;
\
@RM@
-rf
$(DOXYTMP)
$(DOXYOUT)
;
\
mkdir
-p
$(DOXYTMP)
$(DOXYOUT)
;
\
...
...
@@ -70,7 +70,7 @@ mgmapidoc-pdf: mgmapi.pdf
mgmapi.html
:
$(noinst_HEADERS)
@
set
-x
;
\
export
NDB_RELEASE
=
$(NDB_RELEASE)
\
export
NDB_RELEASE
=
$(NDB_RELEASE)
;
\
@RM@
-f
mgmapi.pdf mgmapi.html
;
\
@RM@
-rf
$(DOXYTMP)
$(DOXYOUT)
;
\
mkdir
-p
$(DOXYTMP)
$(DOXYOUT)
;
\
...
...
sql-common/client.c
View file @
05793bb9
...
...
@@ -1424,6 +1424,7 @@ mysql_init(MYSQL *mysql)
bzero
((
char
*
)
(
mysql
),
sizeof
(
*
(
mysql
)));
mysql
->
options
.
connect_timeout
=
CONNECT_TIMEOUT
;
mysql
->
last_used_con
=
mysql
->
next_slave
=
mysql
->
master
=
mysql
;
mysql
->
charset
=
default_charset_info
;
strmov
(
mysql
->
net
.
sqlstate
,
not_error_sqlstate
);
/*
By default, we are a replication pivot. The caller must reset it
...
...
sql/log_event.cc
View file @
05793bb9
...
...
@@ -3201,7 +3201,7 @@ void User_var_log_event::print(FILE* file, bool short_form, LAST_EVENT_INFO* las
*/
fprintf
(
file
,
":=???;
\n
"
);
else
fprintf
(
file
,
":=_%s %s COLLATE
%s
;
\n
"
,
cs
->
csname
,
hex_str
,
cs
->
name
);
fprintf
(
file
,
":=_%s %s COLLATE
`%s`
;
\n
"
,
cs
->
csname
,
hex_str
,
cs
->
name
);
my_afree
(
hex_str
);
}
break
;
...
...
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