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
e44b6be9
Commit
e44b6be9
authored
Jun 02, 2006
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge mysqldev@production.mysql.com:my/mysql-5.1-release
into mysql.com:/home/hf/work/mysql-5.1-release
parents
bd1d3ebb
81467f2b
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
24 additions
and
38 deletions
+24
-38
mysql-test/r/ctype_sjis.result
mysql-test/r/ctype_sjis.result
+2
-2
mysql-test/r/innodb.result
mysql-test/r/innodb.result
+1
-1
mysql-test/t/ctype_sjis.test
mysql-test/t/ctype_sjis.test
+1
-1
sql/mysqld.cc
sql/mysqld.cc
+1
-1
sql/sql_lex.cc
sql/sql_lex.cc
+5
-26
tests/mysql_client_test.c
tests/mysql_client_test.c
+14
-7
No files found.
mysql-test/r/ctype_sjis.result
View file @
e44b6be9
...
@@ -172,6 +172,6 @@ c2h
...
@@ -172,6 +172,6 @@ c2h
ab_def
ab_def
drop table t1;
drop table t1;
SET NAMES sjis;
SET NAMES sjis;
SELECT HEX('佐淘
\
圭') FROM DUAL;
SELECT HEX('@\') FROM DUAL;
HEX('佐淘
\
圭')
HEX('@\')
8DB2939181408C5C
8DB2939181408C5C
mysql-test/r/innodb.result
View file @
e44b6be9
...
@@ -1822,7 +1822,7 @@ Variable_name Value
...
@@ -1822,7 +1822,7 @@ Variable_name Value
innodb_sync_spin_loops 20
innodb_sync_spin_loops 20
show variables like "innodb_thread_concurrency";
show variables like "innodb_thread_concurrency";
Variable_name Value
Variable_name Value
innodb_thread_concurrency
20
innodb_thread_concurrency
8
set global innodb_thread_concurrency=1001;
set global innodb_thread_concurrency=1001;
show variables like "innodb_thread_concurrency";
show variables like "innodb_thread_concurrency";
Variable_name Value
Variable_name Value
...
...
mysql-test/t/ctype_sjis.test
View file @
e44b6be9
...
@@ -78,6 +78,6 @@ SET collation_connection='sjis_bin';
...
@@ -78,6 +78,6 @@ SET collation_connection='sjis_bin';
--
character_set
sjis
--
character_set
sjis
SET
NAMES
sjis
;
SET
NAMES
sjis
;
SELECT
HEX
(
'@\\'
)
FROM
DUAL
;
SELECT
HEX
(
'
@
\'
)
FROM
DUAL
;
# End of 4.1 tests
# End of 4.1 tests
sql/mysqld.cc
View file @
e44b6be9
...
@@ -5842,7 +5842,7 @@ log and this option does nothing anymore.",
...
@@ -5842,7 +5842,7 @@ log and this option does nothing anymore.",
{
"innodb_thread_concurrency"
,
OPT_INNODB_THREAD_CONCURRENCY
,
{
"innodb_thread_concurrency"
,
OPT_INNODB_THREAD_CONCURRENCY
,
"Helps in performance tuning in heavily concurrent environments."
,
"Helps in performance tuning in heavily concurrent environments."
,
(
gptr
*
)
&
srv_thread_concurrency
,
(
gptr
*
)
&
srv_thread_concurrency
,
(
gptr
*
)
&
srv_thread_concurrency
,
(
gptr
*
)
&
srv_thread_concurrency
,
0
,
GET_LONG
,
REQUIRED_ARG
,
20
,
1
,
1000
,
0
,
1
,
0
},
0
,
GET_LONG
,
REQUIRED_ARG
,
8
,
1
,
1000
,
0
,
1
,
0
},
{
"innodb_thread_sleep_delay"
,
OPT_INNODB_THREAD_SLEEP_DELAY
,
{
"innodb_thread_sleep_delay"
,
OPT_INNODB_THREAD_SLEEP_DELAY
,
"Time of innodb thread sleeping before joining InnoDB queue (usec). Value 0"
"Time of innodb thread sleeping before joining InnoDB queue (usec). Value 0"
" disable a sleep"
,
" disable a sleep"
,
...
...
sql/sql_lex.cc
View file @
e44b6be9
...
@@ -319,17 +319,6 @@ static char *get_text(LEX *lex)
...
@@ -319,17 +319,6 @@ static char *get_text(LEX *lex)
found_escape
=
1
;
found_escape
=
1
;
if
(
lex
->
ptr
==
lex
->
end_of_query
)
if
(
lex
->
ptr
==
lex
->
end_of_query
)
return
0
;
return
0
;
#ifdef USE_MB
int
l
;
if
(
use_mb
(
cs
)
&&
(
l
=
my_ismbchar
(
cs
,
(
const
char
*
)
lex
->
ptr
,
(
const
char
*
)
lex
->
end_of_query
)))
{
lex
->
ptr
+=
l
;
continue
;
}
else
#endif
yySkip
();
yySkip
();
}
}
else
if
(
c
==
sep
)
else
if
(
c
==
sep
)
...
@@ -360,9 +349,6 @@ static char *get_text(LEX *lex)
...
@@ -360,9 +349,6 @@ static char *get_text(LEX *lex)
{
{
uchar
*
to
;
uchar
*
to
;
/* Re-use found_escape for tracking state of escapes */
found_escape
=
0
;
for
(
to
=
start
;
str
!=
end
;
str
++
)
for
(
to
=
start
;
str
!=
end
;
str
++
)
{
{
#ifdef USE_MB
#ifdef USE_MB
...
@@ -376,8 +362,7 @@ static char *get_text(LEX *lex)
...
@@ -376,8 +362,7 @@ static char *get_text(LEX *lex)
continue
;
continue
;
}
}
#endif
#endif
if
(
!
found_escape
&&
if
(
!
(
lex
->
thd
->
variables
.
sql_mode
&
MODE_NO_BACKSLASH_ESCAPES
)
&&
!
(
lex
->
thd
->
variables
.
sql_mode
&
MODE_NO_BACKSLASH_ESCAPES
)
&&
*
str
==
'\\'
&&
str
+
1
!=
end
)
*
str
==
'\\'
&&
str
+
1
!=
end
)
{
{
switch
(
*++
str
)
{
switch
(
*++
str
)
{
...
@@ -404,20 +389,14 @@ static char *get_text(LEX *lex)
...
@@ -404,20 +389,14 @@ static char *get_text(LEX *lex)
*
to
++=
'\\'
;
// remember prefix for wildcard
*
to
++=
'\\'
;
// remember prefix for wildcard
/* Fall through */
/* Fall through */
default:
default:
found_escape
=
1
;
*
to
++=
*
str
;
str
--
;
break
;
break
;
}
}
}
}
else
if
(
!
found_escape
&&
*
str
==
sep
)
else
if
(
*
str
==
sep
)
{
*
to
++=
*
str
++
;
// Two ' or "
found_escape
=
1
;
}
else
else
{
*
to
++
=
*
str
;
*
to
++
=
*
str
;
found_escape
=
0
;
}
}
}
*
to
=
0
;
*
to
=
0
;
lex
->
yytoklen
=
(
uint
)
(
to
-
start
);
lex
->
yytoklen
=
(
uint
)
(
to
-
start
);
...
...
tests/mysql_client_test.c
View file @
e44b6be9
...
@@ -12794,25 +12794,26 @@ from t2);");
...
@@ -12794,25 +12794,26 @@ from t2);");
static
void
test_bug8378
()
static
void
test_bug8378
()
{
{
#if defined(HAVE_CHARSET_gbk) && !defined(EMBEDDED_LIBRARY)
#if defined(HAVE_CHARSET_gbk) && !defined(EMBEDDED_LIBRARY)
MYSQL
*
l
mysql
;
MYSQL
*
old_mysql
=
mysql
;
char
out
[
9
];
/* strlen(TEST_BUG8378)*2+1 */
char
out
[
9
];
/* strlen(TEST_BUG8378)*2+1 */
int
len
;
char
buf
[
256
];
int
len
,
rc
;
myheader
(
"test_bug8378"
);
myheader
(
"test_bug8378"
);
if
(
!
opt_silent
)
if
(
!
opt_silent
)
fprintf
(
stdout
,
"
\n
Establishing a test connection ..."
);
fprintf
(
stdout
,
"
\n
Establishing a test connection ..."
);
if
(
!
(
l
mysql
=
mysql_init
(
NULL
)))
if
(
!
(
mysql
=
mysql_init
(
NULL
)))
{
{
myerror
(
"mysql_init() failed"
);
myerror
(
"mysql_init() failed"
);
exit
(
1
);
exit
(
1
);
}
}
if
(
mysql_options
(
l
mysql
,
MYSQL_SET_CHARSET_NAME
,
"gbk"
))
if
(
mysql_options
(
mysql
,
MYSQL_SET_CHARSET_NAME
,
"gbk"
))
{
{
myerror
(
"mysql_options() failed"
);
myerror
(
"mysql_options() failed"
);
exit
(
1
);
exit
(
1
);
}
}
if
(
!
(
mysql_real_connect
(
l
mysql
,
opt_host
,
opt_user
,
if
(
!
(
mysql_real_connect
(
mysql
,
opt_host
,
opt_user
,
opt_password
,
current_db
,
opt_port
,
opt_password
,
current_db
,
opt_port
,
opt_unix_socket
,
0
)))
opt_unix_socket
,
0
)))
{
{
...
@@ -12822,12 +12823,18 @@ static void test_bug8378()
...
@@ -12822,12 +12823,18 @@ static void test_bug8378()
if
(
!
opt_silent
)
if
(
!
opt_silent
)
fprintf
(
stdout
,
" OK"
);
fprintf
(
stdout
,
" OK"
);
len
=
mysql_real_escape_string
(
l
mysql
,
out
,
TEST_BUG8378_IN
,
4
);
len
=
mysql_real_escape_string
(
mysql
,
out
,
TEST_BUG8378_IN
,
4
);
/* No escaping should have actually happened. */
/* No escaping should have actually happened. */
DIE_UNLESS
(
memcmp
(
out
,
TEST_BUG8378_OUT
,
len
)
==
0
);
DIE_UNLESS
(
memcmp
(
out
,
TEST_BUG8378_OUT
,
len
)
==
0
);
mysql_close
(
lmysql
);
sprintf
(
buf
,
"SELECT '%s'"
,
out
);
rc
=
mysql_real_query
(
mysql
,
buf
,
strlen
(
buf
));
myquery
(
rc
);
mysql_close
(
mysql
);
mysql
=
old_mysql
;
#endif
#endif
}
}
...
...
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