Olivier Bertrand
f69980c6df
- Fix errors and warnings occuring in --embedded tests
...
modified:
storage/connect/connect.cc
storage/connect/ha_connect.cc
storage/connect/mysql-test/connect/r/mysql.result
storage/connect/mysql-test/connect/r/unsigned.result
storage/connect/mysql-test/connect/t/mysql.test
storage/connect/mysql-test/connect/t/unsigned.test
2013-12-11 16:52:01 +01:00
Alexander Barkov
57fcf1cbe4
Moving the code checking libxml2 into a *.inc file.
2013-12-10 12:53:46 +04:00
Olivier Bertrand
1e1345c451
- Raise the limit on returned lines for table ODBC catalog tables
...
to 16384 (MDEV-5393)
modified:
storage/connect/odbconn.cpp
- Fix sorting catalog table result set (MDEV-5394)
added:
storage/connect/mysql-test/connect/r/xml_mdev5261.result
storage/connect/mysql-test/connect/t/xml_mdev5261.test
modified:
storage/connect/mysql-test/connect/r/odbc_sqlite3.result
storage/connect/mysql-test/connect/t/odbc_sqlite3.test
storage/connect/table.cpp
storage/connect/tabodbc.cpp
storage/connect/xtable.h
- Remove unnecessary closing of opened table in rnd_init
modified:
storage/connect/ha_connect.cc
2013-12-06 01:37:56 +01:00
Alexander Barkov
37611b2a32
MDEV-5343 ConnectSE: ODBC: CATFUNC=Tables and CATFUNC=Columns crash when
...
running against a data source with many tables
2013-12-05 18:31:14 +04:00
Alexander Barkov
be09466e37
Adding basic ODBC tests that do not need a DSN
2013-12-05 17:26:28 +04:00
Olivier Bertrand
e694ac4193
- Suppress eventual prompting when connecting to an ODBC source
...
modified:
storage/connect/odbconn.cpp
2013-12-05 12:32:06 +01:00
Olivier Bertrand
54d4589dde
- Previous MDEV-5261 was generating wrong warnings
...
modified:
storage/connect/ha_connect.cc
2013-12-05 01:00:28 +01:00
Olivier Bertrand
a8b09c14ef
- Fix bug MDEV-5261
...
modified:
storage/connect/ha_connect.cc
storage/connect/mycat.cc
storage/connect/mycat.h
2013-12-04 23:53:30 +01:00
Olivier Bertrand
41dbe1c96b
- Fix a typo error in tabutil line 213
...
modified:
storage/connect/tabutil.cpp
- Fix test results to reflect the fact that in discovery, column defaults
are now retrieved for the MYSQL table type.
modified:
storage/connect/mysql-test/connect/r/mysql_discovery.result
storage/connect/mysql-test/connect/r/mysql_new.result
- Restore Unix line endings
modified:
storage/connect/value.cpp
2013-12-03 23:34:50 +01:00
Olivier Bertrand
ee2f04450b
- Add support for unsigned numeric types
...
added:
storage/connect/mysql-test/connect/r/unsigned.result
storage/connect/mysql-test/connect/t/unsigned.test
modified:
storage/connect/colblk.cpp
storage/connect/colblk.h
storage/connect/connect.cc
storage/connect/ha_connect.cc
storage/connect/myconn.cpp
storage/connect/mysql-test/connect/r/mysql_discovery.result
storage/connect/mysql-test/connect/r/xml.result
storage/connect/myutil.cpp
storage/connect/myutil.h
storage/connect/plgdbsem.h
storage/connect/tabdos.cpp
storage/connect/tabfix.cpp
storage/connect/tabmysql.cpp
storage/connect/tabutil.cpp
storage/connect/valblk.cpp
storage/connect/valblk.h
storage/connect/value.cpp
storage/connect/value.h
storage/connect/xobject.cpp
storage/connect/xobject.h
2013-12-03 22:59:40 +01:00
Alexander Barkov
d240a0418c
Merge 10.0-connect -> 10.0
2013-12-03 14:12:53 +04:00
Alexander Barkov
5bb01fa1ac
MDEV-5357 REGEXP word boundaries don't work
...
Applied a patch from Philip Hazel implementing the non-standard
syntax for word boundaries in PCRE, for compatibility with the
old Henry Spencer's regex library.
2013-12-02 14:39:08 +04:00
Olivier Bertrand
0d37409fe7
- Fix gcc compiling error
...
modified:
storage/connect/valblk.cpp
2013-11-28 23:37:27 +01:00
Olivier Bertrand
f53ad74cd1
- Fix some wrong changes preparing for unsigned data types
...
modified:
storage/connect/ha_connect.cc
storage/connect/value.cpp
- Fix the way GetPlug works (was not updating xp)
modified:
storage/connect/ha_connect.cc
2013-11-28 01:25:39 +01:00
Olivier Bertrand
385dbaeae0
- Fix gcc compilation warnings
...
modified:
storage/connect/odbconn.cpp
- Prepare Value and Valblk to support unsigned data types
(not operational yet)
modified:
storage/connect/colblk.cpp
storage/connect/filamvct.cpp
storage/connect/myconn.cpp
storage/connect/plgdbutl.cpp
storage/connect/tabdos.cpp
storage/connect/tabodbc.cpp
storage/connect/tabvct.cpp
storage/connect/valblk.cpp
storage/connect/valblk.h
storage/connect/value.cpp
storage/connect/value.h
storage/connect/xindex.cpp
2013-11-26 11:47:48 +01:00
Alexander Barkov
d25d7ec589
Fixing malformed data in mysql-test/std_data/Index.xml
2013-11-26 10:53:21 +04:00
Sergey Vojtovich
e5a80a307c
MDEV-5277 - Ensure that all MySQL 5.6 options are supported by the
...
MariaDB 10.0 server
2013-11-25 18:49:40 +04:00
Olivier Bertrand
aaa982e790
- Fix good recognition of MYSQL table column types.
...
modified:
storage/connect/ha_connect.cc
storage/connect/myconn.cpp
storage/connect/myutil.cpp
storage/connect/odbccat.h
storage/connect/odbconn.cpp
storage/connect/tabmysql.cpp
- Add tests on new MYSQL features
added:
storage/connect/mysql-test/connect/my.cnf
storage/connect/mysql-test/connect/r/mysql_discovery.result
storage/connect/mysql-test/connect/r/mysql_exec.result
storage/connect/mysql-test/connect/r/mysql_new.result
storage/connect/mysql-test/connect/t/myconn.inc
storage/connect/mysql-test/connect/t/myconn_cleanup.inc
storage/connect/mysql-test/connect/t/mysql_discovery.test
storage/connect/mysql-test/connect/t/mysql_exec.test
storage/connect/mysql-test/connect/t/mysql_new.test
2013-11-22 16:03:54 +01:00
Alexander Barkov
8780e1ab24
ConnectSE: Adding CATFUNC=Tables and CATFUC=Columns for the XLS ODBC data source.
2013-11-20 18:27:13 +04:00
Jan Lindström
66612e8fd3
MDEV-5010: InnoDB errors appearing in logs with upgrade from 10.0.0 to 10.0.4.
...
Analysis: In earlier MySQL 5.6 versions this table innodb_index_stats used to have a foreign key referencing to innodb_table_stats. However, in newer MySQL 5.6 versions this foreign key is removed and if you upgrade, your innodb_table_stats is created by the earlier mariadb version, thus a newer version will complain that the table is incorrectly defined.
Added drop foreign key on mysql_system_tables_fix.sql to be executed on mysql_upgrade.
2013-11-20 14:28:07 +02:00
Alexander Barkov
a392a911c2
Adding tests for CATFUC=Tables and CATFUNC=Columns into odbc_sqlite3.test.
2013-11-20 14:50:52 +04:00
Elena Stepanova
888efa0654
Increment the version number
2013-11-19 16:26:40 +04:00
Sergey Vojtovich
1da6d6880b
MDEV-5220 - [PATCH] MariaDB 10.0.4 doesn't compile without perfschema
...
Fixed the following compilation errors and test failures:
- maria SE: "stage_waiting_for_a_resource" wasn't declared w/o PFS
- sql_repl.h: PSI_mutex_key is not available in non-PFS builds
- mysqld.cc: pfs_param is not available in non-PFS builds
- mysqld.cc: init_show_explain_psi_keys() is not available in non-PFS builds
- mysqld.cc: call net_before_header_psi, net_after_header_psi even if PFS
is not available so that thread enters stage_init at proper time. Fixes
sp-threads and a few tests in funcs_1.
- myisam_file_io.opt: added missing loose prefix
2013-11-14 18:00:00 +04:00
Sergei Golubchik
26f56089c7
add missing plugins to deb packages
2013-11-14 19:56:55 +01:00
Alexey Botchkov
b69ed7d621
MDEV-4437 ALTER TABLE .. ADD UNIQUE INDEX IF NOT EXISTS causes syntax error.
...
Added the IF NOT EXISTS option to the CONSTRAINT keyword.
2013-11-14 14:31:30 +04:00
Sergei Golubchik
4157185f24
10.0-base merge
2013-11-13 23:03:48 +01:00
Sergei Golubchik
c155890af9
MDEV-5248 Serious incompatibility and data corruption of DATETIME and DATE types due to get_innobase_type_from_mysql_type refactor combined with InnoDB Online DDL
...
restore old innodb get_innobase_type_from_mysql_type() function,
record all mysql_type->innodb_type mapping
(as generated by mysql-5.6).
add safety code to disable online alter when internal types don't match
storage/innobase/dict/dict0stats.cc:
revert to 5.6 state
2013-11-13 22:58:19 +01:00
Sergei Golubchik
80137baf2f
MDEV-5275 Problems upgrading from MySQL 5.1 to MariaDB
...
correct bugs in mysql_system_tables_fix.sql.
Update system_mysql_db_fix* tests
2013-11-13 22:58:10 +01:00
unknown
db453a99ce
MDEV-5282: mysql_install_db fails to create mysql.gtid_slave_pos
...
Patch by Elena.
Move the table creation to the end of the file, so
mysql.innodb_stats_table has been created and the statement
does not fail.
2013-11-13 15:40:46 +01:00
Sergei Golubchik
bdd883ed9a
5.5. merge
2013-11-13 14:07:58 +01:00
Sergei Golubchik
f3a78f392d
5.3 merge
2013-11-13 13:38:37 +01:00
Sergei Golubchik
b468cd4749
MDEV-5284 Assertion `!(*expr)->fixed' fails in replace_where_subcondition with IN suquery
2013-11-13 12:43:39 +01:00
Sergey Petrunya
86b8ed3eab
Merge
2013-11-13 08:29:12 +04:00
Sergey Petrunya
229aa1d4bf
MDEV-5056: Wrong result (extra rows) with materialization+semijoin, IN subqueries
...
Apply fix suggested by Igor:
- When eliminate_item_equal() generates pair-wise equalities from a
multi-equality, do generate a "bridge" equality between the first
field inside SJM nest and the field that's first in the overall multi-equality.
2013-11-13 07:40:46 +04:00
Olivier Bertrand
793f05c321
- Modify the way UPDATE and DELETE statements are sent to ODBC
...
and MYSQL CONNECT tables to take care of kewords such as IGNORE.
modified:
storage/connect/myconn.cpp
storage/connect/odbconn.cpp
storage/connect/tabmysql.cpp
storage/connect/tabmysql.h
storage/connect/tabodbc.cpp
storage/connect/tabodbc.h
2013-11-13 00:15:38 +01:00
Sergei Golubchik
441192bfb0
MDEV-5113 Wrong result (extra row) and valgrind warnings in Item_maxmin_subselect::any_value on 2nd execution of PS with SELECT subquery
...
When setting Item_func_not_all::test_sum_item or Item_func_not_all::test_sub_item,
reset the other one to NULL - they can never be set both. When a PS is reexecuted,
different executions might be optimized differently and a wrong test_su*_item
might stay set from the previous execution.
2013-11-12 15:02:25 +01:00
Sergey Petrunya
88bf8b9c8f
MDEV-5257: MIN/MAX Optimization (Select tables optimized away) does not work for DateTime
...
- MIN/MAX optimizer does a check whether a "field CMP const" comparison uses a constant
that's longer than the field it is compared to. Make this check only for string columns,
also compare character lengths, not byte lengths.
2013-11-12 17:37:32 +04:00
Sergey Petrunya
2cba9e0cdc
MDEV-407: Print EXPLAIN [ANALYZE] in the slow query log
...
- Address input from the mail list: change how EXPLAIN is
formatted in the slow query log.
2013-11-12 17:13:11 +04:00
Alexander Barkov
fad7371191
Merging xxx_unicode_520_ci and xxx_vietnamese_ci from MySQL-5.6.
2013-11-12 16:48:57 +04:00
Igor Babaev
e0d9a25690
Fixed bug mdev-5160.
...
The used_tables attribute must be recalculated for the HAVING condition
if the condition is applied to the rows read from a temporary table.
2013-11-11 22:21:39 -08:00
Sergei Golubchik
ea78785b8b
MDEV-4723 "State" column of SHOW PROCESSLIST returns wrong values (non-ascii chars) for some states
...
allocate thd_proc_info string in thd memroot, not on the stack, so that it
won't be overwritten while another thread might be printing it
2013-11-11 22:53:40 +01:00
unknown
55de9b0468
merge 10-base->10.0
2013-11-11 23:40:53 +02:00
unknown
3a75900b91
merge 5.5->10.0-base
2013-11-11 22:47:04 +02:00
Alexander Barkov
383de0fd1f
Merge 10.0-monty -> 10.0
2013-11-11 22:46:14 +04:00
unknown
dfed447888
merge 5.3->5.5
2013-11-11 20:38:04 +02:00
Olivier Bertrand
260c0de918
- Add (limited) UPDATE/DELETE support to MYSQL type CONNECT tables
...
modified:
storage/connect/ha_connect.cc
storage/connect/tabmysql.cpp
storage/connect/tabmysql.h
storage/connect/tabodbc.cpp
2013-11-11 18:30:36 +01:00
Sergei Golubchik
1585652862
MDEV-5236 Status variables are not all listed alphabetically
...
sort Com_ counters. No simple fix for Binlog_ variables.
2013-11-11 17:20:18 +01:00
Sergei Golubchik
fb46f35f05
mark ft-index cmake variables as advanced
2013-11-11 17:20:10 +01:00
Alexey Botchkov
06a91b18d7
MDEV-4436 CHANGE COLUMN IF EXISTS does not work and throws wrong warning.
...
Use sql_field->change parameter as the name of the field.
2013-11-11 19:45:55 +04:00
unknown
c98a054fde
MDEV-5153: Server crashes in Item_ref::fix_fields on 2nd execution of PS with LEFT JOIN and MERGE view or SELECT SQ
...
1. Transformation of row IN subquery made the same as single value.
2. replace_where_subcondition() made working on several layers of OR/AND because it called on expression before fix_fields().
2013-11-11 17:28:14 +02:00