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
69bfcfe3
Commit
69bfcfe3
authored
Jan 18, 2005
by
lenz@mysql.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge lgrimmer@bk-internal.mysql.com:/home/bk/mysql-4.1
into mysql.com:/space/my/mysql-4.1
parents
b9f3f4a2
8f23e902
Changes
10
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
52 additions
and
7 deletions
+52
-7
BitKeeper/etc/logging_ok
BitKeeper/etc/logging_ok
+1
-0
client/mysql.cc
client/mysql.cc
+9
-1
myisam/mi_open.c
myisam/mi_open.c
+1
-1
mysql-test/r/ctype_utf8.result
mysql-test/r/ctype_utf8.result
+12
-0
mysql-test/t/ctype_utf8.test
mysql-test/t/ctype_utf8.test
+12
-0
mysys/my_symlink.c
mysys/my_symlink.c
+6
-3
sql/filesort.cc
sql/filesort.cc
+3
-0
sql/item_strfunc.cc
sql/item_strfunc.cc
+2
-1
sql/sql_lex.cc
sql/sql_lex.cc
+1
-0
sql/sql_yacc.yy
sql/sql_yacc.yy
+5
-1
No files found.
BitKeeper/etc/logging_ok
View file @
69bfcfe3
...
...
@@ -181,6 +181,7 @@ ram@mysql.r18.ru
ram@ram.(none)
ranger@regul.home.lan
rburnett@build.mysql.com
reggie@bob.(none)
root@home.(none)
root@mc04.(none)
root@x3.internalnet
...
...
client/mysql.cc
View file @
69bfcfe3
...
...
@@ -3232,13 +3232,20 @@ static const char* construct_prompt()
break
;
}
case
'p'
:
{
#ifndef EMBEDDED_LIBRARY
if
(
!
connected
)
{
processed_prompt
.
append
(
"not_connected"
);
break
;
}
if
(
strstr
(
mysql_get_host_info
(
&
mysql
),
"TCP/IP"
)
||
const
char
*
host_info
=
mysql_get_host_info
(
&
mysql
);
if
(
strstr
(
host_info
,
"memory"
))
{
processed_prompt
.
append
(
mysql
.
host
);
}
else
if
(
strstr
(
host_info
,
"TCP/IP"
)
||
!
mysql
.
unix_socket
)
add_int_to_prompt
(
mysql
.
port
);
else
...
...
@@ -3247,6 +3254,7 @@ static const char* construct_prompt()
processed_prompt
.
append
(
pos
?
pos
+
1
:
mysql
.
unix_socket
);
}
#endif
}
break
;
case
'U'
:
if
(
!
full_username
)
...
...
myisam/mi_open.c
View file @
69bfcfe3
...
...
@@ -142,7 +142,7 @@ 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
)
||
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_utf8.result
View file @
69bfcfe3
...
...
@@ -849,3 +849,15 @@ utf8_bin 6109
utf8_bin 61
utf8_bin 6120
drop table t1;
CREATE TABLE t1 (
user varchar(255) NOT NULL default ''
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
INSERT INTO t1 VALUES ('one'),('two');
SELECT CHARSET('a');
CHARSET('a')
utf8
SELECT user, CONCAT('<', user, '>') AS c FROM t1;
user c
one <one>
two <two>
DROP TABLE t1;
mysql-test/t/ctype_utf8.test
View file @
69bfcfe3
...
...
@@ -681,3 +681,15 @@ SET collation_connection='utf8_general_ci';
--
source
include
/
ctype_filesort
.
inc
SET
collation_connection
=
'utf8_bin'
;
--
source
include
/
ctype_filesort
.
inc
#
# Bug #7874 CONCAT() gives wrong results mixing
# latin1 field and utf8 string literals
#
CREATE
TABLE
t1
(
user
varchar
(
255
)
NOT
NULL
default
''
)
ENGINE
=
MyISAM
DEFAULT
CHARSET
=
latin1
;
INSERT
INTO
t1
VALUES
(
'one'
),(
'two'
);
SELECT
CHARSET
(
'a'
);
SELECT
user
,
CONCAT
(
'<'
,
user
,
'>'
)
AS
c
FROM
t1
;
DROP
TABLE
t1
;
mysys/my_symlink.c
View file @
69bfcfe3
...
...
@@ -26,8 +26,10 @@
/*
Reads the content of a symbolic link
If the file is not a symbolic link, return the original file name in to.
Returns: 0 if table was a symlink,
1 if table was a normal file
RETURN
0 If filename was a symlink, (to will be set to value of symlink)
1 If filename was a normal file (to will be set to filename)
-1 on error.
*/
...
...
@@ -58,6 +60,7 @@ int my_readlink(char *to, const char *filename, myf MyFlags)
}
else
to
[
length
]
=
0
;
DBUG_PRINT
(
"exit"
,(
"result: %d"
,
result
));
DBUG_RETURN
(
result
);
#endif
/* HAVE_READLINK */
}
...
...
sql/filesort.cc
View file @
69bfcfe3
...
...
@@ -809,7 +809,10 @@ int merge_many_buff(SORTPARAM *param, uchar *sort_buffer,
}
close_cached_file
(
to_file
);
// This holds old result
if
(
to_file
==
t_file
)
{
*
t_file
=
t_file2
;
// Copy result file
setup_io_cache
(
t_file
);
}
DBUG_RETURN
(
*
maxbuffer
>=
MERGEBUFF2
);
/* Return 1 if interrupted */
}
/* merge_many_buff */
...
...
sql/item_strfunc.cc
View file @
69bfcfe3
...
...
@@ -275,7 +275,8 @@ String *Item_func_concat::val_str(String *str)
current_thd
->
variables
.
max_allowed_packet
);
goto
null
;
}
if
(
res
->
alloced_length
()
>=
res
->
length
()
+
res2
->
length
())
if
(
!
args
[
0
]
->
const_item
()
&&
res
->
alloced_length
()
>=
res
->
length
()
+
res2
->
length
())
{
// Use old buffer
res
->
append
(
*
res2
);
}
...
...
sql/sql_lex.cc
View file @
69bfcfe3
...
...
@@ -912,6 +912,7 @@ int yylex(void *arg, void *yythd)
if
((
thd
->
client_capabilities
&
CLIENT_MULTI_STATEMENTS
)
&&
(
thd
->
command
!=
COM_PREPARE
))
{
lex
->
safe_to_cache_query
=
0
;
lex
->
found_colon
=
(
char
*
)
lex
->
ptr
;
thd
->
server_status
|=
SERVER_MORE_RESULTS_EXISTS
;
lex
->
next_state
=
MY_LEX_END
;
...
...
sql/sql_yacc.yy
View file @
69bfcfe3
...
...
@@ -4009,6 +4009,7 @@ insert:
LEX *lex= Lex;
lex->sql_command= SQLCOM_INSERT;
lex->duplicates= DUP_ERROR;
mysql_init_select(lex);
/* for subselects */
lex->lock_option= (using_update_log) ? TL_READ_NO_INSERT : TL_READ;
lex->select_lex.resolve_mode= SELECT_LEX::INSERT_MODE;
...
...
@@ -4028,6 +4029,7 @@ replace:
LEX *lex=Lex;
lex->sql_command = SQLCOM_REPLACE;
lex->duplicates= DUP_REPLACE;
mysql_init_select(lex);
lex->select_lex.resolve_mode= SELECT_LEX::INSERT_MODE;
}
replace_lock_option insert2
...
...
@@ -4229,6 +4231,7 @@ delete:
{
LEX *lex= Lex;
lex->sql_command= SQLCOM_DELETE;
mysql_init_select(lex);
lex->lock_option= lex->thd->update_lock_default;
lex->ignore= 0;
lex->select_lex.init_order();
...
...
@@ -5321,6 +5324,7 @@ set:
{
LEX *lex=Lex;
lex->sql_command= SQLCOM_SET_OPTION;
mysql_init_select(lex);
lex->option_type=OPT_SESSION;
lex->var_list.empty();
lex->one_shot_set= 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