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
ef055c33
Commit
ef055c33
authored
Aug 27, 2005
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge acurtis@bk-internal.mysql.com:/home/bk/mysql-5.0
into xiphis.org:/usr/home/antony/work2/p3-bug9048.2
parents
f0aeadcd
bddf61cf
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
43 additions
and
5 deletions
+43
-5
mysql-test/r/sp.result
mysql-test/r/sp.result
+7
-0
mysql-test/t/sp.test
mysql-test/t/sp.test
+13
-0
sql/sql_yacc.yy
sql/sql_yacc.yy
+23
-5
No files found.
mysql-test/r/sp.result
View file @
ef055c33
...
@@ -3186,4 +3186,11 @@ end|
...
@@ -3186,4 +3186,11 @@ end|
call bug11333(10)|
call bug11333(10)|
drop procedure bug11333|
drop procedure bug11333|
drop table t3|
drop table t3|
drop function if exists bug9048|
create function bug9048(f1 char binary) returns char binary
begin
set f1= concat( 'hello', f1 );
return f1;
end|
drop function bug9048|
drop table t1,t2;
drop table t1,t2;
mysql-test/t/sp.test
View file @
ef055c33
...
@@ -4030,6 +4030,19 @@ call bug11333(10)|
...
@@ -4030,6 +4030,19 @@ call bug11333(10)|
drop
procedure
bug11333
|
drop
procedure
bug11333
|
drop
table
t3
|
drop
table
t3
|
#
# BUG#9048: Creating a function with char binary IN parameter fails
#
--
disable_warnings
drop
function
if
exists
bug9048
|
--
enable_warnings
create
function
bug9048
(
f1
char
binary
)
returns
char
binary
begin
set
f1
=
concat
(
'hello'
,
f1
);
return
f1
;
end
|
drop
function
bug9048
|
#
#
# BUG#NNNN: New bug synopsis
# BUG#NNNN: New bug synopsis
#
#
...
...
sql/sql_yacc.yy
View file @
ef055c33
...
@@ -2874,10 +2874,10 @@ type:
...
@@ -2874,10 +2874,10 @@ type:
$$=FIELD_TYPE_STRING; }
$$=FIELD_TYPE_STRING; }
| char opt_binary { Lex->length=(char*) "1";
| char opt_binary { Lex->length=(char*) "1";
$$=FIELD_TYPE_STRING; }
$$=FIELD_TYPE_STRING; }
| nchar '(' NUM ')'
{ Lex->length=$3.str;
| nchar '(' NUM ')'
opt_bin_mod
{ Lex->length=$3.str;
$$=FIELD_TYPE_STRING;
$$=FIELD_TYPE_STRING;
Lex->charset=national_charset_info; }
Lex->charset=national_charset_info; }
| nchar
{ Lex->length=(char*) "1";
| nchar
opt_bin_mod
{ Lex->length=(char*) "1";
$$=FIELD_TYPE_STRING;
$$=FIELD_TYPE_STRING;
Lex->charset=national_charset_info; }
Lex->charset=national_charset_info; }
| BINARY '(' NUM ')' { Lex->length=$3.str;
| BINARY '(' NUM ')' { Lex->length=$3.str;
...
@@ -2888,7 +2888,7 @@ type:
...
@@ -2888,7 +2888,7 @@ type:
$$=FIELD_TYPE_STRING; }
$$=FIELD_TYPE_STRING; }
| varchar '(' NUM ')' opt_binary { Lex->length=$3.str;
| varchar '(' NUM ')' opt_binary { Lex->length=$3.str;
$$= MYSQL_TYPE_VARCHAR; }
$$= MYSQL_TYPE_VARCHAR; }
| nvarchar '(' NUM ')'
{ Lex->length=$3.str;
| nvarchar '(' NUM ')'
opt_bin_mod
{ Lex->length=$3.str;
$$= MYSQL_TYPE_VARCHAR;
$$= MYSQL_TYPE_VARCHAR;
Lex->charset=national_charset_info; }
Lex->charset=national_charset_info; }
| VARBINARY '(' NUM ')' { Lex->length=$3.str;
| VARBINARY '(' NUM ')' { Lex->length=$3.str;
...
@@ -3077,7 +3077,6 @@ attribute:
...
@@ -3077,7 +3077,6 @@ attribute:
lex->alter_info.flags|= ALTER_ADD_INDEX;
lex->alter_info.flags|= ALTER_ADD_INDEX;
}
}
| COMMENT_SYM TEXT_STRING_sys { Lex->comment= $2; }
| COMMENT_SYM TEXT_STRING_sys { Lex->comment= $2; }
| BINARY { Lex->type|= BINCMP_FLAG; }
| COLLATE_SYM collation_name
| COLLATE_SYM collation_name
{
{
if (Lex->charset && !my_charset_same(Lex->charset,$2))
if (Lex->charset && !my_charset_same(Lex->charset,$2))
...
@@ -3162,8 +3161,27 @@ opt_default:
...
@@ -3162,8 +3161,27 @@ opt_default:
opt_binary:
opt_binary:
/* empty */ { Lex->charset=NULL; }
/* empty */ { Lex->charset=NULL; }
| ASCII_SYM
{ Lex->charset=&my_charset_latin1; }
| ASCII_SYM
opt_bin_mod
{ Lex->charset=&my_charset_latin1; }
| BYTE_SYM { Lex->charset=&my_charset_bin; }
| BYTE_SYM { Lex->charset=&my_charset_bin; }
| UNICODE_SYM opt_bin_mod
{
if (!(Lex->charset=get_charset_by_csname("ucs2",
MY_CS_PRIMARY,MYF(0))))
{
my_error(ER_UNKNOWN_CHARACTER_SET, MYF(0), "ucs2");
YYABORT;
}
}
| charset charset_name opt_bin_mod { Lex->charset=$2; }
| BINARY opt_bin_charset { Lex->type|= BINCMP_FLAG; };
opt_bin_mod:
/* empty */ { }
| BINARY { Lex->type|= BINCMP_FLAG; };
opt_bin_charset:
/* empty */ { }
| ASCII_SYM { Lex->charset=&my_charset_latin1; }
| UNICODE_SYM
| UNICODE_SYM
{
{
if (!(Lex->charset=get_charset_by_csname("ucs2",
if (!(Lex->charset=get_charset_by_csname("ucs2",
...
...
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