Alexander Barkov
539b3ca87d
- Moving Item_func_spatial_mbr_rel from Item_bool_func2 to Item_bool_func,
...
as Item_func_spatial_mbr_rel needs nothing from Item_bool_func2.
- Renaming Item_func_spacial_rel (the class that implements precise spacial
relations) to Item_func_spatial_precise_rel
- Adding a new abstract class Item_func_spatial_rel as a common parent
for Item_func_spatial_precise_rel and Item_func_spatial_mbr_rel.
2015-05-05 09:30:17 +04: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
Alexander Barkov
7f613ebdb6
MDEV-7284 INDEX: CREATE OR REPLACE
2015-04-03 15:43:55 +04: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
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
Sergei Golubchik
f62c12b405
Merge 10.0.14 into 10.1
2014-10-15 12:59:13 +02:00
Igor Babaev
3c4bb0e872
MDEV-334: Backport of UNION ALL optimization from mysql-5.7.
...
Although the original code of mysql-5.7 was adjusted
to the current MariaDB code the main ideas of the optimization
were preserved.
2014-10-14 09:36:50 -07:00
Sergei Golubchik
7f5e51b940
MDEV-34 delete storage/ndb and sql/*ndb* (and collateral changes)
...
remove:
* NDB from everywhere
* IM from mtr-v1
* packaging/rpm-oel and packaging/rpm-uln
* few unused spec files
* plug.in file
* .bzrignore
2014-10-11 18:53:06 +02:00
Sergei Golubchik
db8af31831
SHOW and FLUSH for I_S tables.
...
Extend existing plugins to support
* SHOW QUERY_RESPONSE_TIME
* FLUSH QUERY_RESPONSE_TIME
* SHOW LOCALE
move userstat tables to use the new API instead of
hand-coded syntax
2014-10-11 18:53:04 +02:00
Sergei Golubchik
8f15bf9d0c
cleanup: remove hidden I_S.VARIABLES and I_S.STATUS tables
...
their only purpose was to distinguish between
SHOW and SELECT and there are cleaner ways of doing it.
2014-10-10 22:27:40 +02:00
Sergei Golubchik
686f102eb9
MDEV-6609 SQL inside an anonymous block is executed with wrong SQL_MODE
...
MDEV-6606 Server crashes in String::append on selecting sql_mode inside anonymous block
2014-10-10 22:27:40 +02:00