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
414e1c67
Commit
414e1c67
authored
Feb 22, 2005
by
joreland@mysql.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge joreland@bk-internal.mysql.com:/home/bk/mysql-4.1
into mysql.com:/home/jonas/src/mysql-4.1
parents
d31fbe17
c0230f6f
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
38 additions
and
6 deletions
+38
-6
mysql-test/r/ctype_latin1.result
mysql-test/r/ctype_latin1.result
+5
-0
mysql-test/r/ctype_utf8.result
mysql-test/r/ctype_utf8.result
+3
-0
mysql-test/t/ctype_latin1.test
mysql-test/t/ctype_latin1.test
+9
-0
mysql-test/t/ctype_utf8.test
mysql-test/t/ctype_utf8.test
+5
-0
mysys/charset.c
mysys/charset.c
+1
-1
sql/field.cc
sql/field.cc
+11
-1
sql/sql_parse.cc
sql/sql_parse.cc
+2
-2
strings/ctype-utf8.c
strings/ctype-utf8.c
+2
-2
No files found.
mysql-test/r/ctype_latin1.result
View file @
414e1c67
...
...
@@ -325,3 +325,8 @@ latin1_bin 6109
latin1_bin 61
latin1_bin 6120
drop table t1;
CREATE TABLE a (a int);
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'a (a int)' at line 1
SELECT 'a' as str;
str
a
mysql-test/r/ctype_utf8.result
View file @
414e1c67
...
...
@@ -861,3 +861,6 @@ user c
one <one>
two <two>
DROP TABLE t1;
select convert(_koi8r'' using utf8) < convert(_koi8r'' using utf8);
convert(_koi8r'' using utf8) < convert(_koi8r'' using utf8)
1
mysql-test/t/ctype_latin1.test
View file @
414e1c67
...
...
@@ -66,3 +66,12 @@ SET collation_connection='latin1_swedish_ci';
--
source
include
/
ctype_filesort
.
inc
SET
collation_connection
=
'latin1_bin'
;
--
source
include
/
ctype_filesort
.
inc
#
# Bug#8041
# An unknown character (e.g. 0x84) should result in ERROR,
# It was treated like a space character earlier.
# Howerver, it should still work fine as a string part.
--
error
1064
CREATE
TABLE
a
(
a
int
);
SELECT
'a'
as
str
;
mysql-test/t/ctype_utf8.test
View file @
414e1c67
...
...
@@ -693,3 +693,8 @@ INSERT INTO t1 VALUES ('one'),('two');
SELECT
CHARSET
(
'a'
);
SELECT
user
,
CONCAT
(
'<'
,
user
,
'>'
)
AS
c
FROM
t1
;
DROP
TABLE
t1
;
#
# Bug#8385: utf8_general_ci treats Cyrillic letters I and SHORT I as the same
#
select
convert
(
_koi8r
''
using
utf8
)
<
convert
(
_koi8r
''
using
utf8
);
mysys/charset.c
View file @
414e1c67
...
...
@@ -64,7 +64,7 @@ static my_bool init_state_maps(CHARSET_INFO *cs)
else
if
(
my_mbcharlen
(
cs
,
i
)
>
1
)
state_map
[
i
]
=
(
uchar
)
MY_LEX_IDENT
;
#endif
else
if
(
!
my_isgraph
(
cs
,
i
))
else
if
(
my_isspace
(
cs
,
i
))
state_map
[
i
]
=
(
uchar
)
MY_LEX_SKIP
;
else
state_map
[
i
]
=
(
uchar
)
MY_LEX_CHAR
;
...
...
sql/field.cc
View file @
414e1c67
...
...
@@ -1776,13 +1776,23 @@ void Field_medium::sql_type(String &res) const
** long int
****************************************************************************/
/*
A helper function to check whether the next character
in the string "s" is MINUS SIGN.
*/
#ifdef HAVE_CHARSET_ucs2
static
bool
test_if_minus
(
CHARSET_INFO
*
cs
,
const
char
*
s
,
const
char
*
e
)
{
my_wc_t
wc
;
return
cs
->
cset
->
mb_wc
(
cs
,
&
wc
,
(
uchar
*
)
s
,
(
uchar
*
)
e
)
>
0
&&
wc
==
'-'
;
}
#else
/*
If not UCS2 support is compiled then it is easier
*/
#define test_if_minus(cs, s, e) (*s == '-')
#endif
int
Field_long
::
store
(
const
char
*
from
,
uint
len
,
CHARSET_INFO
*
cs
)
...
...
sql/sql_parse.cc
View file @
414e1c67
...
...
@@ -2780,8 +2780,8 @@ unsent_create_error:
TABLE
*
table
=
tables
->
table
;
/* Skip first table, which is the table we are inserting in */
tables
=
(
TABLE_LIST
*
)
lex
->
select_lex
.
table_list
.
first
=
(
byte
*
)
first_local_table
->
nex
t
;
lex
->
select_lex
.
table_list
.
first
=
(
byte
*
)
first_local_table
->
next
;
tables
=
(
TABLE_LIST
*
)
lex
->
select_lex
.
table_list
.
firs
t
;
first_local_table
->
next
=
0
;
if
(
!
(
res
=
mysql_prepare_insert
(
thd
,
tables
,
first_local_table
,
...
...
strings/ctype-utf8.c
View file @
414e1c67
...
...
@@ -578,7 +578,7 @@ static MY_UNICASE_INFO plane04[]={
{
0x0412
,
0x0432
,
0x0412
},
{
0x0413
,
0x0433
,
0x0413
},
{
0x0414
,
0x0434
,
0x0414
},
{
0x0415
,
0x0435
,
0x0415
},
{
0x0416
,
0x0436
,
0x0416
},
{
0x0417
,
0x0437
,
0x0417
},
{
0x0418
,
0x0438
,
0x0418
},
{
0x0419
,
0x0439
,
0x041
8
},
{
0x0418
,
0x0438
,
0x0418
},
{
0x0419
,
0x0439
,
0x041
9
},
{
0x041A
,
0x043A
,
0x041A
},
{
0x041B
,
0x043B
,
0x041B
},
{
0x041C
,
0x043C
,
0x041C
},
{
0x041D
,
0x043D
,
0x041D
},
{
0x041E
,
0x043E
,
0x041E
},
{
0x041F
,
0x043F
,
0x041F
},
...
...
@@ -594,7 +594,7 @@ static MY_UNICASE_INFO plane04[]={
{
0x0412
,
0x0432
,
0x0412
},
{
0x0413
,
0x0433
,
0x0413
},
{
0x0414
,
0x0434
,
0x0414
},
{
0x0415
,
0x0435
,
0x0415
},
{
0x0416
,
0x0436
,
0x0416
},
{
0x0417
,
0x0437
,
0x0417
},
{
0x0418
,
0x0438
,
0x0418
},
{
0x0419
,
0x0439
,
0x041
8
},
{
0x0418
,
0x0438
,
0x0418
},
{
0x0419
,
0x0439
,
0x041
9
},
{
0x041A
,
0x043A
,
0x041A
},
{
0x041B
,
0x043B
,
0x041B
},
{
0x041C
,
0x043C
,
0x041C
},
{
0x041D
,
0x043D
,
0x041D
},
{
0x041E
,
0x043E
,
0x041E
},
{
0x041F
,
0x043F
,
0x041F
},
...
...
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