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
aac3a1ea
Commit
aac3a1ea
authored
Jul 12, 2011
by
Sergei Golubchik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix misplaced and non-working if() in the grammar
few small post-merge fixes
parent
c97f938b
Changes
11
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
18 additions
and
49 deletions
+18
-49
mysql-test/r/mysqld--help-notwin.result
mysql-test/r/mysqld--help-notwin.result
+4
-0
mysql-test/r/plugin_auth_qa_1.result
mysql-test/r/plugin_auth_qa_1.result
+2
-4
mysql-test/r/ps_grant.result
mysql-test/r/ps_grant.result
+1
-2
mysql-test/suite/innodb/r/innodb_bug46000.result
mysql-test/suite/innodb/r/innodb_bug46000.result
+0
-1
mysql-test/suite/innodb/r/innodb_bug53591.result
mysql-test/suite/innodb/r/innodb_bug53591.result
+0
-1
mysql-test/t/plugin_auth_qa_1.test
mysql-test/t/plugin_auth_qa_1.test
+3
-6
mysql-test/t/ps_grant.test
mysql-test/t/ps_grant.test
+1
-2
sql/item.cc
sql/item.cc
+0
-15
sql/mysqld.cc
sql/mysqld.cc
+1
-2
sql/sql_table.cc
sql/sql_table.cc
+1
-3
sql/sql_yacc.yy
sql/sql_yacc.yy
+5
-13
No files found.
mysql-test/r/mysqld--help-notwin.result
View file @
aac3a1ea
...
...
@@ -733,6 +733,9 @@ The following options may be given as the first argument:
Synchronously flush relay log info to disk after every
#th transaction. Use 0 (default) to disable synchronous
flushing
--sync-sys Enable system sync calls. Disable only when running tests
or debugging!
(Defaults to on; use --skip-sync-sys to disable.)
--sysdate-is-now Non-default option to alias SYSDATE() to NOW() to make it
safe-replicable. Since 5.0, SYSDATE() returns a `dynamic'
value different for different invocations, even within
...
...
@@ -1005,6 +1008,7 @@ sync-frm FALSE
sync-master-info 0
sync-relay-log 0
sync-relay-log-info 0
sync-sys TRUE
sysdate-is-now FALSE
table-cache 400
table-definition-cache 400
...
...
mysql-test/r/plugin_auth_qa_1.result
View file @
aac3a1ea
...
...
@@ -29,8 +29,7 @@ user()
plug_user@localhost
Tables_in_test_user_db
t1
REVOKE ALL PRIVILEGES ON test_user_db.* FROM 'plug_user'
IDENTIFIED WITH test_plugin_server AS 'plug_dest';
REVOKE ALL PRIVILEGES ON test_user_db.* FROM 'plug_user';
2)
current_user()
plug_dest@%
...
...
@@ -55,8 +54,7 @@ user()
plug_user@localhost
Tables_in_test_user_db
t1
REVOKE ALL PRIVILEGES ON test_user_db.* FROM 'plug_user'
IDENTIFIED WITH test_plugin_server AS 'plug_dest';
REVOKE ALL PRIVILEGES ON test_user_db.* FROM 'plug_user';
DROP USER plug_user,plug_dest;
========== test 1.2 ========================================
GRANT ALL PRIVILEGES ON test_user_db.* TO plug_user
...
...
mysql-test/r/ps_grant.result
View file @
aac3a1ea
...
...
@@ -55,8 +55,7 @@ my_col
execute s_t9 ;
ERROR 42S02: Table 'mysqltest.t9' doesn't exist
deallocate prepare s_t9;
revoke all privileges on mysqltest.t1 from second_user@localhost
identified by 'looser' ;
revoke all privileges on mysqltest.t1 from second_user@localhost;
show grants for second_user@localhost ;
Grants for second_user@localhost
GRANT USAGE ON *.* TO 'second_user'@'localhost' IDENTIFIED BY PASSWORD '*13843FE600B19A81E32AF50D4A6FED25875FF1F3'
...
...
mysql-test/suite/innodb/r/innodb_bug46000.result
View file @
aac3a1ea
...
...
@@ -14,6 +14,5 @@ show warnings;
Level Code Message
Warning 1280 Cannot Create Index with name 'GEN_CLUST_INDEX'. The name is reserved for the system default primary index.
Error 1280 Incorrect index name 'GEN_CLUST_INDEX'
Error 1030 Got error -1 from storage engine
create index idx on bug46000(id);
drop table bug46000;
mysql-test/suite/innodb/r/innodb_bug53591.result
View file @
aac3a1ea
...
...
@@ -9,7 +9,6 @@ SHOW WARNINGS;
Level Code Message
Error 139 Too big row
Error 1118 Row size too large. The maximum row size for the used table type, not counting BLOBs, is 8126. You have to change some columns to TEXT or BLOBs
Error 1030 Got error 139 from storage engine
DROP TABLE bug53591;
SET GLOBAL innodb_file_format=Antelope;
SET GLOBAL innodb_file_format_max=Antelope;
...
...
mysql-test/t/plugin_auth_qa_1.test
View file @
aac3a1ea
...
...
@@ -32,8 +32,7 @@ SELECT user,plugin,authentication_string FROM mysql.user WHERE user != 'root';
--
echo
1
)
--
replace_result
$MASTER_MYSOCK
MASTER_MYSOCK
--
exec
$MYSQL
-
S
$MASTER_MYSOCK
-
u
plug_user
--
password
=
plug_dest
-
e
"SELECT current_user();SELECT user();USE test_user_db;CREATE TABLE t1(a int);SHOW TABLES;DROP TABLE t1;"
2
>&
1
REVOKE
ALL
PRIVILEGES
ON
test_user_db
.*
FROM
'plug_user'
IDENTIFIED
WITH
test_plugin_server
AS
'plug_dest'
;
REVOKE
ALL
PRIVILEGES
ON
test_user_db
.*
FROM
'plug_user'
;
--
echo
2
)
--
replace_result
$MASTER_MYSOCK
MASTER_MYSOCK
--
exec
$MYSQL
-
S
$MASTER_MYSOCK
-
u
plug_user
--
password
=
plug_dest
-
e
"SELECT current_user();SELECT user();USE test_user_db;CREATE TABLE t1(a int);SHOW TABLES;DROP TABLE t1;"
2
>&
1
...
...
@@ -54,10 +53,8 @@ GRANT PROXY ON plug_dest TO plug_user;
--
echo
2
)
--
replace_result
$MASTER_MYSOCK
MASTER_MYSOCK
--
exec
$MYSQL
-
S
$MASTER_MYSOCK
-
u
plug_user
--
password
=
plug_dest
-
e
"SELECT current_user();SELECT user();USE test_user_db;CREATE TABLE t1(a int);SHOW TABLES;DROP TABLE t1;"
2
>&
1
REVOKE
ALL
PRIVILEGES
ON
test_user_db
.*
FROM
'plug_user'
IDENTIFIED
WITH
test_plugin_server
AS
'plug_dest'
;
#REVOKE ALL PRIVILEGES ON test_user_db.* FROM 'plug_dest'
# IDENTIFIED BY 'plug_dest_passwd';
REVOKE
ALL
PRIVILEGES
ON
test_user_db
.*
FROM
'plug_user'
;
#REVOKE ALL PRIVILEGES ON test_user_db.* FROM 'plug_dest'';
DROP
USER
plug_user
,
plug_dest
;
--
echo
==========
test
1.2
========================================
...
...
mysql-test/t/ps_grant.test
View file @
aac3a1ea
...
...
@@ -85,8 +85,7 @@ deallocate prepare s_t9;
#### revoke the access rights to t1
## switch back to the first session
connection
default
;
revoke
all
privileges
on
mysqltest
.
t1
from
second_user
@
localhost
identified
by
'looser'
;
revoke
all
privileges
on
mysqltest
.
t1
from
second_user
@
localhost
;
show
grants
for
second_user
@
localhost
;
#### check the access as new user
...
...
sql/item.cc
View file @
aac3a1ea
...
...
@@ -1886,21 +1886,6 @@ bool agg_item_set_converter(DTCollation &coll, const char *fname,
if
(
!
(
conv
=
(
*
arg
)
->
safe_charset_converter
(
coll
.
collation
))
&&
((
*
arg
)
->
collation
.
repertoire
==
MY_REPERTOIRE_ASCII
))
#if 0
{
/*
We should disable const subselect item evaluation because
subselect transformation does not happen in view_prepare_mode
and thus val_...() methods can not be called for const items.
*/
bool resolve_const= (((*arg)->type() == Item::SUBSELECT_ITEM ||
((*arg)->get_cached_item() &&
(*arg)->get_cached_item()->type() ==
Item::SUBSELECT_ITEM)) &&
thd->lex->view_prepare_mode) ? FALSE : TRUE;
conv= new Item_func_conv_charset(*arg, coll.collation, resolve_const);
}
#endif
conv
=
new
Item_func_conv_charset
(
*
arg
,
coll
.
collation
,
1
);
if
(
!
conv
)
...
...
sql/mysqld.cc
View file @
aac3a1ea
...
...
@@ -6181,8 +6181,7 @@ struct my_option my_long_options[]=
*/
IF_VALGRIND
(
0
,
1
),
0
,
0
,
0
,
0
,
0
},
{
"sync_sys"
,
0
,
"Enable/disable system sync calls. Should only be turned off when running "
"tests or debugging!!"
,
"Enable system sync calls. Disable only when running tests or debugging!"
,
&
opt_sync
,
&
opt_sync
,
0
,
GET_BOOL
,
NO_ARG
,
1
,
0
,
0
,
0
,
0
,
0
},
{
"sysdate-is-now"
,
0
,
"Non-default option to alias SYSDATE() to NOW() to make it safe-replicable. "
...
...
sql/sql_table.cc
View file @
aac3a1ea
...
...
@@ -6598,10 +6598,8 @@ bool mysql_alter_table(THD *thd,char *new_db, char *new_name,
if
((
error
=
table
->
file
->
add_index
(
table
,
key_info
,
index_add_count
,
&
add
)))
{
#ifdef MERGE_MONTY_ADDITION_THAT_BREAKS_5_5_TESTS
/* Only report error if handler has not already reported an error */
if
(
!
thd
->
main_da
.
is_error
())
#endif
if
(
!
thd
->
is_error
())
{
/*
Exchange the key_info for the error message. If we exchange
...
...
sql/sql_yacc.yy
View file @
aac3a1ea
...
...
@@ -13563,13 +13563,13 @@ revoke:
;
revoke_command:
grant_privileges ON opt_table grant_ident FROM
grant
_list
grant_privileges ON opt_table grant_ident FROM
user
_list
{
LEX *lex= Lex;
lex->sql_command= SQLCOM_REVOKE;
lex->type= 0;
}
| grant_privileges ON FUNCTION_SYM grant_ident FROM
grant
_list
| grant_privileges ON FUNCTION_SYM grant_ident FROM
user
_list
{
LEX *lex= Lex;
if (lex->columns.elements)
...
...
@@ -13580,7 +13580,7 @@ revoke_command:
lex->sql_command= SQLCOM_REVOKE;
lex->type= TYPE_ENUM_FUNCTION;
}
| grant_privileges ON PROCEDURE_SYM grant_ident FROM
grant
_list
| grant_privileges ON PROCEDURE_SYM grant_ident FROM
user
_list
{
LEX *lex= Lex;
if (lex->columns.elements)
...
...
@@ -13591,11 +13591,11 @@ revoke_command:
lex->sql_command= SQLCOM_REVOKE;
lex->type= TYPE_ENUM_PROCEDURE;
}
| ALL opt_privileges ',' GRANT OPTION FROM
grant
_list
| ALL opt_privileges ',' GRANT OPTION FROM
user
_list
{
Lex->sql_command = SQLCOM_REVOKE_ALL;
}
| PROXY_SYM ON user FROM
grant
_list
| PROXY_SYM ON user FROM
user
_list
{
LEX *lex= Lex;
lex->users_list.push_front ($3);
...
...
@@ -13844,8 +13844,6 @@ grant_user:
user IDENTIFIED_SYM BY TEXT_STRING
{
$$=$1; $1->password=$4;
if (Lex->sql_command == SQLCOM_REVOKE)
MYSQL_YYABORT;
if ($4.length)
{
if (YYTHD->variables.old_passwords)
...
...
@@ -13872,23 +13870,17 @@ grant_user:
}
| user IDENTIFIED_SYM BY PASSWORD TEXT_STRING
{
if (Lex->sql_command == SQLCOM_REVOKE)
MYSQL_YYABORT;
$$= $1;
$1->password= $5;
}
| user IDENTIFIED_SYM via_or_with ident_or_text
{
if (Lex->sql_command == SQLCOM_REVOKE)
MYSQL_YYABORT;
$$= $1;
$1->plugin= $4;
$1->auth= empty_lex_str;
}
| user IDENTIFIED_SYM via_or_with ident_or_text using_or_as TEXT_STRING_sys
{
if (Lex->sql_command == SQLCOM_REVOKE)
MYSQL_YYABORT;
$$= $1;
$1->plugin= $4;
$1->auth= $6;
...
...
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