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
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
Sergei Golubchik
30ea6ddda0
MDEV-6603 SBR failure upon executing a prepared statement with input placeholder under anonymous block
...
Normally, Prepared_statement object rewrites the query on execution
to replace ?-placeholders with values. The rewritten query may be written
to logs (including binlog) or stored in the query cache.
But for compound statements, the whole block is prepared and executed,
while contained statements are logged individually. So it doesn't make
sense to rewrite the original statement block. Instead, we need to rewrite
every contained statement. SP is already doing it to replace SP variables
with values. Let it rewrite PS parameters too in the same loop.
2014-10-10 22:27:39 +02:00
Sergei Golubchik
d7c1e0ebbd
MDEV-5317 Compound statement / anonymous blocks
...
originally based on the patch by Antony T Curtis
2014-10-10 22:27:39 +02:00
Sergei Golubchik
a99af484cd
MDEV-5317 out parameters in PREPARE "SELECT ... INTO"
...
originally based on the patch by Antony T Curtis
2014-10-10 22:27:39 +02:00
Sergei Golubchik
278f7fdd7e
cleanup: get rid of (Item_splocal*)item downcast
2014-10-10 22:27:39 +02:00
Sergei Golubchik
932100c813
cleanup sql_yacc.yy: remove redundant ev_sql_stmt_inner rule
2014-10-10 22:27:39 +02:00
Sergei Golubchik
60475b8f27
cleanup sql_yacc.yy: rules for the CASE ... END CASE statement
2014-10-10 22:27:38 +02:00
Sergei Golubchik
319f206d01
cleanup sql_yacc.yy: s/IF/IF_SYM/
2014-10-10 22:27:38 +02:00
Sergei Golubchik
09c1af9364
cleanup sql_yacc.yy: reduce code duplication in rules for BEGIN...END with and without label
2014-10-10 22:27:38 +02:00
Sergei Golubchik
d49e11834a
cleanup sql_yacc.yy: factor out duplicate code in PROCEDURE/FUNCTION/TRIGGER/EVENT grammar
2014-10-10 22:27:38 +02:00
Sergei Golubchik
352723cd90
cleanup sql_yacc.yy: rename rules for loops with and without label to follow BEGIN...END rule naming
2014-10-10 22:27:38 +02:00
Sergei Golubchik
45907bec50
cleanup sql_yacc.yy: remove duplicate code in opt_union rule
2014-10-10 22:27:38 +02:00
Sergei Golubchik
71485e7c7b
cleanup sql_yacc: introduce opt_not rule, combine otherwise duplicate rules
2014-10-10 22:27:38 +02:00
Sergei Golubchik
c655609d1e
cleanup sql_yacc.yy: s/YYABORT/MYSQL_YYABORT/
2014-10-10 22:27:37 +02:00