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
2f00a0ff
Commit
2f00a0ff
authored
Jun 10, 2012
by
Sergey Petrunya
Browse files
Options
Browse Files
Download
Plain Diff
Merge
parents
ce7a3b43
a17faee5
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
55 additions
and
0 deletions
+55
-0
mysql-test/r/connect.result
mysql-test/r/connect.result
+24
-0
mysql-test/t/connect.test
mysql-test/t/connect.test
+30
-0
sql/sql_yacc.yy
sql/sql_yacc.yy
+1
-0
No files found.
mysql-test/r/connect.result
View file @
2f00a0ff
...
@@ -254,3 +254,27 @@ connect(localhost,mysqltest_nouser,,test,MASTER_PORT,MASTER_SOCKET);
...
@@ -254,3 +254,27 @@ connect(localhost,mysqltest_nouser,,test,MASTER_PORT,MASTER_SOCKET);
ERROR 28000: Access denied for user 'mysqltest_nouser'@'localhost' (using password: NO)
ERROR 28000: Access denied for user 'mysqltest_nouser'@'localhost' (using password: NO)
DROP USER mysqltest_up1@'%';
DROP USER mysqltest_up1@'%';
DROP USER mysqltest_up2@'%';
DROP USER mysqltest_up2@'%';
#
# BUG#1010351: New "via" keyword in 5.2+ can't be used as identifier anymore
#
create table t1 (via int);
alter table t1 add key(via);
drop table t1;
create table t1 (col1 int);
alter table t1 add via int not null;
drop table t1;
drop procedure if exists p1;
create procedure p1(x int)
foo: loop
if x = 0 then
leave foo;
end if;
select 'test';
set x = x-1;
end loop foo|
call p1(2);
test
test
test
test
drop procedure p1;
mysql-test/t/connect.test
View file @
2f00a0ff
...
@@ -397,3 +397,33 @@ DROP USER mysqltest_up2@'%';
...
@@ -397,3 +397,33 @@ DROP USER mysqltest_up2@'%';
# Wait till all disconnects are completed
# Wait till all disconnects are completed
--
source
include
/
wait_until_count_sessions
.
inc
--
source
include
/
wait_until_count_sessions
.
inc
--
echo
#
--
echo
# BUG#1010351: New "via" keyword in 5.2+ can't be used as identifier anymore
--
echo
#
create
table
t1
(
via
int
);
alter
table
t1
add
key
(
via
);
drop
table
t1
;
create
table
t1
(
col1
int
);
alter
table
t1
add
via
int
not
null
;
drop
table
t1
;
--
disable_warnings
drop
procedure
if
exists
p1
;
--
enable_warnings
delimiter
|
;
create
procedure
p1
(
x
int
)
foo
:
loop
if
x
=
0
then
leave
foo
;
end
if
;
select
'test'
;
set
x
=
x
-
1
;
end
loop
foo
|
delimiter
;
|
call
p1
(
2
);
drop
procedure
p1
;
sql/sql_yacc.yy
View file @
2f00a0ff
...
@@ -12453,6 +12453,7 @@ keyword_sp:
...
@@ -12453,6 +12453,7 @@ keyword_sp:
| WORK_SYM {}
| WORK_SYM {}
| X509_SYM {}
| X509_SYM {}
| YEAR_SYM {}
| YEAR_SYM {}
| VIA_SYM {}
;
;
/* Option functions */
/* Option functions */
...
...
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