Sergei Golubchik
6f17e233bf
post-merge fixes
2015-04-29 12:40:52 +02:00
Sergei Golubchik
f9c02d7c29
Merge branch 'openquery/MDEV-6916-maria-5.5-check_view-r4408' into 5.5
2015-04-28 21:11:49 +02:00
Sergei Golubchik
0f12ada6b6
Merge remote-tracking branch 'mysql/5.5' into 5.5
2015-04-27 21:04:06 +02:00
Alexander Barkov
46816996c8
Moving members' initialization from LEX::init_last_field
...
to constructor Create_field::Create_field().
2015-04-26 01:46:55 +04:00
Alexander Barkov
c6d08ecce3
Merge commit 'bc902a2bfc46add0708896c07621e3707f66d95f' into 10.1
2015-04-20 11:45:22 +04:00
Daniel Black
28b173134e
Allow REPAIR NO_WRITE_TO_BINLOG as per serg's review
...
> + if (lex->no_write_to_binlog && lex->only_view)
> + {
> + my_parse_error(ER(ER_SYNTAX_ERROR));
> + MYSQL_YYABORT;
Why? REPAIR NO_WRITE_TO_BINLOG VIEW makes perfect sense to me, why did
you want to disallow it?
2015-04-13 21:12:23 +10:00
Oleksandr Byelkin
c8dbef22ad
MDEV-6916 REPAIR VIEW / mysql migration
...
from: r4407
2015-04-12 20:41:28 +10:00
Alexander Barkov
7f613ebdb6
MDEV-7284 INDEX: CREATE OR REPLACE
2015-04-03 15:43:55 +04:00
Jan Lindström
86f46a3da4
MDEV-7301: Unknown column quoted with backticks in HAVING clause
...
when using function.
Merged upstream fix to Bug#16221433 MYSQL REJECTS QUERY DUE TO BAD
RESOLUTION OF NAMES IN HAVING; VIEW UNREADABLE
authored by Guilhem Bichot <guilhem.bichot@oracle.com>.
2015-03-23 09:49:32 +02:00
Alexander Barkov
0c26c0032c
A preparatory patch for MDEV-7284 INDEX: CREATE OR REPLACE.
...
Removing "bool Key::create_if_not_exists" and deriving Key from
DDL_options instead.
2015-03-20 13:51:41 +04:00
Alexander Barkov
2a2cc16478
Refactoring in sql_yacc.yy. A pre-requirement patch for
...
MDEV-7801 Unexpected syntax error in ALTER TABLE t1 ADD INDEX TYPE BTREE
MDEV-7284 INDEX: CREATE OR REPLACE
2015-03-20 11:46:44 +04:00
Alexander Barkov
e6f67c64cd
MDEV-6572 "USE dbname" with a bad sequence erroneously connects to a wrong database
2015-03-16 21:55:10 +04:00
Alexander Barkov
bc902a2bfc
MDEV-7387 [PATCH] Alter table xxx CHARACTER SET utf8, CONVERT TO CHARACTER SET latin1 should fail
...
A contribution from Daniel Black, with minor additional enhancements.
2015-03-13 16:12:54 +04:00
Oleksandr Byelkin
dab12366b1
MDEV-6956:SET STATEMENT default_master_connection = ... has no effect
...
the problem was in assigning default value during parsing.
2015-03-12 09:47:36 +01:00
Oleksandr Byelkin
be73c7ee44
MDEV-6951: Erroneous SET STATEMENT produces two identical errors
...
Double error reporting removed.
2015-03-11 14:57:30 +01:00
Sergei Golubchik
5bff6c5d57
bison warning: clash on default action: <NONE> != <object_ddl_options>
2015-03-07 15:32:52 +01:00
Sergei Golubchik
2db62f686e
Merge branch '10.0' into 10.1
2015-03-07 13:21:02 +01:00
Alexander Barkov
87b0cc9912
MDEV-7286 TRIGGER: CREATE OR REPLACE, CREATE IF NOT EXISTS
...
Based on the patch by Sriram Patil, made under terms of GSoC 2014.
2015-03-04 09:52:01 +04:00
Alexander Barkov
2d01907c1d
MDEV-7281 EVENT: CREATE OR REPLACE
2015-02-27 13:34:18 +04:00
Alexander Barkov
f825b5a4ee
MDEV-7629 Regression: Bit and hex string literals changed column names in 10.0.14
2015-02-25 14:13:32 +04:00
Mithun C Y
c9f7948bc4
Bug #19892803 : ASSERTION FAILED: N < M_SIZE WITH DISTINCT TIME
...
ISSUE:
------
We pre-allocate the ref_pointer_array before we resolve outer
references. This means that in some cases the
ref_pointer_array may not be large enough to hold all
references created. One such case is aggregate functions in
having clause of a subquery which may add items to select list
of outer query. So it is necessary to consider
select_n_having_items for subqueries while allocating
ref_pointer_array else we will get buffer overflow.
SOLUTION:
---------
Allocate a larger ref_pointer_array by aggregating
select_n_having_items for subqueries.
The fix in sql_yacc.yy is a backport from bug fix 18782905.
2015-01-30 16:36:23 +05:30
Alexander Barkov
1f0ad6c6b3
MDEV-7288 USER/ROLE: CREATE OR REPLACE, CREATE IF NOT EXISTS, DROP IF EXISTS
2015-01-13 11:50:33 +04:00
Alexander Barkov
2dbd26932d
MDEV-7283 UDF: CREATE OR REPLACE, CREATE IF NOT EXISTS, DROP IF EXISTS
...
MDEV-7282 SP: CREATE OR REPLACE, CREATE IF NOT EXISTS
2014-12-15 17:41:15 +04:00
Alexander Barkov
822eb6ca3d
MDEV-7285 SERVER: CREATE OR REPLACE and CREATE IF NOT EXISTS
2014-12-10 13:41:14 +04:00
Alexander Barkov
60277b8b3c
MDEV-7287 VIEW: CREATE IF NOT EXISTS
...
Forgot to do "git add" for a number of files in the previous commit.
2014-12-10 11:32:52 +04:00
Alexander Barkov
dd270e43bf
MDEV-7280 DATABASE: CREATE OR REPLACE
2014-12-10 08:13:08 +04:00
Alexander Barkov
c6d3f8058d
MDEV-7112 Split HA_CREATE_INFO
2014-12-08 10:56:08 +04:00
Alexey Botchkov
c4cb15e87b
MDEV-60 Support for Spatial Reference systems for the GIS data.
...
The GEOMETRY field metadata is stored in the FRM file.
SRID for a spatial column now can be stored, it was added to the CREATE TABLE syntax,
so the AddGeometryData() stored procedure is now possible. Script adding the required Add/DropGeometryColumn sp-s added.
2014-12-04 16:09:34 +01:00
Sergei Golubchik
65f0a8d487
cleanup: sort and reorder %union elements in sql_yacc.yy
2014-12-04 16:09:34 +01:00
Sergei Golubchik
227510e039
parser cleanup: don't store field properties in LEX, use Create_field directly
...
length/dec/charset are still in LEX, because they're also used
for CAST and dynamic columns.
also
1. fix "MDEV-7041 COLLATION(CAST('a' AS CHAR BINARY)) returns a wrong result"
2. allow BINARY modifier in stored function RETURN clause
3. allow "COLLATION without CHARSET" in SP/SF (parameters, RETURN, DECLARE)
4. print correct variable name in error messages for stored routine parameters
2014-12-04 16:09:34 +01:00
Sergei Golubchik
b814046719
validate SET PASSWORD
2014-12-04 10:41:55 +01:00
Sergei Golubchik
dccd85e7c7
cleanup: s/(OLD_)?PASSWORD/&_SYM/g
2014-12-04 10:41:54 +01:00
Sergei Golubchik
b5357f025b
GRANT: calculate pasword hash in sql_acl.cc
...
don't do it in the parser, one should not make run-time
decisions (like, checking thd->variables.old_passwords variable)
during parsing.
2014-12-04 10:41:54 +01:00
Sergei Golubchik
7bd9eb1f41
parser: store the password hash in LEX_USER::auth, not in ::password
...
* indeed, "username IDENTIFIED BY PASSWORD hash" is the same
as "username IDENTIFIED VIA mysql_native_password USING hash"
* LEX_USER::password can now be used for plain-text passwords
2014-12-04 10:41:54 +01:00
Sergei Golubchik
91ad0cd580
sql_acl.cc: better recognize the context to tell the role from a user
...
REQUIRE and MAX_QUERIES_PER_HOUR can not possibly apply to a role
2014-12-04 10:41:54 +01:00
Sergei Golubchik
0438f12540
MDEV-6980 OUT parameters in PREPARE
...
revert the patch for "out parameters in prepare"
2014-12-04 10:41:52 +01:00
Sergei Golubchik
97a913e31c
cleanup: freshen up CREATE SERVER code
...
* pass LEX_STRING's from the parser, don't ignore the length only to strlen later
* init LEX::server_options only for SERVER commands, not for every statement
* don't put temporary values into a global persistent memroot
but really it's just scratching a surface
2014-12-04 10:41:51 +01:00
Nirbhay Choubey
a50ddebb5c
MDEV-6593 : domain_id based replication filters
...
Implementation for domain ID based filtering of replication events.
2014-12-03 22:30:48 -05:00
Sergei Golubchik
316d8c7fc8
compiler warning
2014-12-03 11:58:33 +01:00
Sergei Golubchik
ec4137c62b
Merge branch '10.1' into bb-10.1-merge
2014-12-03 11:37:26 +01:00
Sergei Golubchik
853077ad7e
Merge branch '10.0' into bb-10.1-merge
...
Conflicts:
.bzrignore
VERSION
cmake/plugin.cmake
debian/dist/Debian/control
debian/dist/Ubuntu/control
mysql-test/r/join_outer.result
mysql-test/r/join_outer_jcl6.result
mysql-test/r/null.result
mysql-test/r/old-mode.result
mysql-test/r/union.result
mysql-test/t/join_outer.test
mysql-test/t/null.test
mysql-test/t/old-mode.test
mysql-test/t/union.test
packaging/rpm-oel/mysql.spec.in
scripts/mysql_config.sh
sql/ha_ndbcluster.cc
sql/ha_ndbcluster_binlog.cc
sql/ha_ndbcluster_cond.cc
sql/item_cmpfunc.h
sql/lock.cc
sql/sql_select.cc
sql/sql_show.cc
sql/sql_update.cc
sql/sql_yacc.yy
storage/innobase/buf/buf0flu.cc
storage/innobase/fil/fil0fil.cc
storage/innobase/include/srv0srv.h
storage/innobase/lock/lock0lock.cc
storage/tokudb/CMakeLists.txt
storage/xtradb/buf/buf0flu.cc
storage/xtradb/fil/fil0fil.cc
storage/xtradb/include/srv0srv.h
storage/xtradb/lock/lock0lock.cc
support-files/mysql.spec.sh
2014-12-02 22:25:16 +01:00
Oleksandr Byelkin
3502d74121
MDEV-7015: SET STATEMENT old_passwords has no effect
...
Decision about algorihtm moved on prepare phase.
Made possible to add mpore password algorithms.
2014-12-02 10:59:44 +01:00
Oleksandr Byelkin
53ff66fe31
MDEV-6996: SET STATEMENT default_week_format = .. has no effect
...
Change constant with a system variable.
2014-12-02 09:29:53 +01:00
Sergei Petrunia
3d5f97fd70
Merge ../10.1-explain-json-r4 into 10.1
2014-11-27 00:51:54 +03:00
Sergei Golubchik
3495801e2e
5.5 merge
2014-11-19 17:23:39 +01:00
Oleksandr Byelkin
1827d9e6d1
MDEV-5231: Per query variables from Percona Server (rewritten)
2014-11-11 11:48:50 +01:00
Sergei Golubchik
360c49c1b9
MDEV-6179: dynamic columns functions/cast()/convert() doesn't play nice with CREATE/ALTER TABLE
...
When parsing a field declaration, grab type information from LEX before it's overwritten
by further rules. Pass type information through the parser stack to the rule that needs it.
2014-11-08 19:54:42 +01:00
Alexander Barkov
43f185e171
MDEV-5528 Command line variable to choose MariaDB-5.3 vs MySQL-5.6 temporal data formats
2014-11-03 21:45:06 +04:00
Sergei Golubchik
1e79138459
Merge branch 'bb-10.1-merge' into 10.1
2014-10-16 00:30:29 +02:00
Sergei Petrunia
be1c17669c
Merge ../10.1 into bb-10.1-explain-json
2014-10-15 17:21:59 +04:00