Olivier Bertrand
9dee994d99
Get rid of GCC warnings about unused parameters
...
modified: storage/connect/array.cpp
modified: storage/connect/blkfil.cpp
modified: storage/connect/block.h
modified: storage/connect/catalog.h
modified: storage/connect/colblk.cpp
modified: storage/connect/colblk.h
modified: storage/connect/connect.cc
modified: storage/connect/filamap.cpp
modified: storage/connect/filamdbf.cpp
modified: storage/connect/filamfix.cpp
modified: storage/connect/filamtxt.cpp
modified: storage/connect/filamtxt.h
modified: storage/connect/filamvct.cpp
modified: storage/connect/filamzip.cpp
modified: storage/connect/filter.h
modified: storage/connect/ha_connect.c
modified: storage/connect/jsonudf.cpp
modified: storage/connect/mycat.h
modified: storage/connect/myconn.cpp
modified: storage/connect/plgdbutl.cpp
modified: storage/connect/reldef.cpp
modified: storage/connect/reldef.h
modified: storage/connect/tabcol.cpp
modified: storage/connect/tabdos.cpp
modified: storage/connect/tabdos.h
modified: storage/connect/tabfix.cpp
modified: storage/connect/tabfmt.cpp
modified: storage/connect/tabfmt.h
modified: storage/connect/tabjson.cpp
modified: storage/connect/tabjson.h
modified: storage/connect/table.cpp
modified: storage/connect/tabmul.cpp
modified: storage/connect/tabmysql.cpp
modified: storage/connect/tabmysql.h
modified: storage/connect/taboccur.cpp
modified: storage/connect/tabpivot.cpp
modified: storage/connect/tabsys.cpp
modified: storage/connect/tabtbl.cpp
modified: storage/connect/tabtbl.h
modified: storage/connect/tabutil.cpp
modified: storage/connect/tabutil.h
modified: storage/connect/tabvct.cpp
modified: storage/connect/tabvir.cpp
modified: storage/connect/tabvir.h
modified: storage/connect/tabxcl.cpp
modified: storage/connect/tabxcl.h
modified: storage/connect/tabxml.cpp
modified: storage/connect/tabxml.h
modified: storage/connect/valblk.cpp
modified: storage/connect/valblk.h
modified: storage/connect/value.cpp
modified: storage/connect/value.h
modified: storage/connect/xindex.cpp
modified: storage/connect/xindex.h
modified: storage/connect/xobject.h
modified: storage/connect/xtable.h
2015-05-10 11:58:23 +02:00
Olivier Bertrand
f5d0c77062
Get rid of GCC warnings about unused parameters
...
modified: storage/connect/array.cpp
modified: storage/connect/blkfil.cpp
modified: storage/connect/block.h
modified: storage/connect/catalog.h
modified: storage/connect/colblk.cpp
modified: storage/connect/colblk.h
modified: storage/connect/connect.cc
modified: storage/connect/filamap.cpp
modified: storage/connect/filamdbf.cpp
modified: storage/connect/filamfix.cpp
modified: storage/connect/filamtxt.cpp
modified: storage/connect/filamtxt.h
modified: storage/connect/filamvct.cpp
modified: storage/connect/filamzip.cpp
modified: storage/connect/filter.h
modified: storage/connect/ha_connect.c
modified: storage/connect/jsonudf.cpp
modified: storage/connect/mycat.h
modified: storage/connect/myconn.cpp
modified: storage/connect/plgdbutl.cpp
modified: storage/connect/reldef.cpp
modified: storage/connect/reldef.h
modified: storage/connect/tabcol.cpp
modified: storage/connect/tabdos.cpp
modified: storage/connect/tabdos.h
modified: storage/connect/tabfix.cpp
modified: storage/connect/tabfmt.cpp
modified: storage/connect/tabfmt.h
modified: storage/connect/tabjson.cpp
modified: storage/connect/tabjson.h
modified: storage/connect/table.cpp
modified: storage/connect/tabmul.cpp
modified: storage/connect/tabmysql.cpp
modified: storage/connect/tabmysql.h
modified: storage/connect/taboccur.cpp
modified: storage/connect/tabpivot.cpp
modified: storage/connect/tabsys.cpp
modified: storage/connect/tabtbl.cpp
modified: storage/connect/tabtbl.h
modified: storage/connect/tabutil.cpp
modified: storage/connect/tabutil.h
modified: storage/connect/tabvct.cpp
modified: storage/connect/tabvir.cpp
modified: storage/connect/tabvir.h
modified: storage/connect/tabxcl.cpp
modified: storage/connect/tabxcl.h
modified: storage/connect/tabxml.cpp
modified: storage/connect/tabxml.h
modified: storage/connect/valblk.cpp
modified: storage/connect/valblk.h
modified: storage/connect/value.cpp
modified: storage/connect/value.h
modified: storage/connect/xindex.cpp
modified: storage/connect/xindex.h
modified: storage/connect/xobject.h
modified: storage/connect/xtable.h
2015-05-09 17:30:20 +02:00
Olivier Bertrand
6b56e8998b
Typo to check buildbot
2015-05-08 13:21:42 +02:00
Sergei Golubchik
b5c5f3176a
convert files from CRLF to LF line endings
2015-05-08 11:48:16 +02:00
Olivier Bertrand
3a889b1f90
Fix a bug in init_table_share that caused syntax error with Boolean options:
...
oom|= sql->append(vull ? "ON" : "OFF");
replaced by:
oom|= sql->append(vull ? "YES" : "NO");
modified:
ha_connect.cc
Make DBF tables to be usable in big-endian machines (test version)
modified:
filamdbf.cpp
2015-05-07 16:59:25 +02:00
Alexander Barkov
a1ad712152
Fixing connect.dbf test failures on big endian machines.
2015-05-07 07:39:45 +04:00
Sergei Golubchik
b9c89ad038
Merge branch 'Buggynours:10.0' into 10.0
2015-05-05 22:37:00 +02:00
Olivier Bertrand
a82f475bdd
- Fix a regression bug on (XML) HTML tables.
...
modified:
tabxml.cpp
added:
xml_html.test
xml_html.result
beers.xml
coffee.htm
- Fix MDEV-7935 by suppressing error resetting code in delete_or_rename_table.
However, the issue is that this code was added because without it an assertion
was raised in some cases. Unfortunately I can't remember what were these cases.
Therefore fixing it in this case will perhaps make a new crash happening on another cases.
modified:
ha_connect.cc
- Add the UDF Json_Array_Delete.
modified:
jsonudf.cpp
2015-05-05 22:05:09 +02:00
Sergei Golubchik
c09c265ac4
Fix MDEV-8090 in tabmysql.cpp
2015-05-05 22:05:05 +02:00
Olivier Bertrand
1db5b849ab
- Fix a regression bug on (XML) HTML tables.
...
modified:
tabxml.cpp
added:
xml_html.test
xml_html.result
beers.xml
coffee.htm
- Fix MDEV-7935 by suppressing error resetting code in delete_or_rename_table.
However, the issue is that this code was added because without it an assertion
was raised in some cases. Unfortunately I can't remember what were these cases.
Therefore fixing it in this case will perhaps make a new crash happening on another cases.
modified:
ha_connect.cc
- Add the UDF Json_Array_Delete.
modified:
jsonudf.cpp
2015-05-05 18:38:54 +02:00
Olivier Bertrand
12bebceb8e
- Fix a regression bug on (XML) HTML tables.
...
modified:
tabxml.cpp
added:
xml_html.test
xml_html.result
beers.xml
coffee.htm
- Fix MDEV-7935 by suppressing error resetting code in delete_or_rename_table.
However, the issue is that this code was added because without it an assertion
was raised in some cases. Unfortunately I can't remember what were these cases.
Therefore fixing it in this case will perhaps make a new crash happening on another cases.
modified:
ha_connect.cc
- Add the UDF Json_Array_Delete.
modified:
jsonudf.cpp
2015-05-05 11:37:21 +02:00
Sergei Golubchik
5dcb111c38
Merge branch 'Buggynours:10.0' into 10.0
2015-05-05 07:50:31 +02:00
Olivier Bertrand
13c0a60677
Fix MDEV-8090 in tabmysql.cpp
2015-05-02 15:49:02 +02:00
Olivier Bertrand
1b07ba57a4
Fix MDEV-8090 in tabmysql.cpp
2015-05-02 15:36:33 +02:00
Olivier Bertrand
6dda9e04fa
Same as last 10.0 commit
2015-05-01 18:53:50 +02:00
Olivier Bertrand
f5b05a11c1
- Fix bug on updating JSON expanded values
...
modified:
json.result
tabjson.cpp
tabjson.h
- Fix bug on multiple tables (directories must be eliminated from file list)
modified:
tabmul.cpp
- Update version
modified:
ha_connect.cc
- Typo
modified:
global.h
ha_connect.cc
tabtbl.cpp
tabutil.cpp
value.cpp
2015-05-01 15:59:12 +02:00
Olivier Bertrand
b3f9838f5b
Update 10.1 with changes from 10.0
2015-04-19 12:15:58 +02:00
Olivier Bertrand
eae8318b19
- Fix Catalog JSON table crash when no Jpath
...
- Added JSON OBJECT specification for pretty != 2.
- Fix NULL values not recognized for nullable JSON columns
- Issue an error message when a JSON table is created without specifying LRECL if PRETTY != 2.
- Make JSONColumns use a TDBJSON class.
- Make JSON table using MAPFAM
modified:
filamap.h
filamtxt.h
ha_connect.cc
json.result
tabjson.cpp
tabjson.h
table.cpp
- Implementing Discovery for the XML table type.
modified:
domdoc.cpp
domdoc.h
ha_connect.cc
libdoc.cpp
plgxml.cpp
plgxml.h
reldef.cpp
reldef.h
tabxml.cpp
tabxml.h
- Providing an error message when creating an ODBC table via discovery returns
columns of more than one table.
modified:
ha_connect.cc
- TableOptionStruct declaration moved from ha_connect.h to mycat.h
To make it easier to use by other classes.
modified:
ha_connect.cc
ha_connect.h
mycat.cc
mycat.h
reldef.cpp
tabmysql.cpp
taboccur.cpp
tabpivot.cpp
tabtbl.cpp
tabutil.cpp
tabxcl.cpp
2015-04-17 20:05:41 +02:00
Olivier Bertrand
48a77e6188
Make this repository aligned with 10.0 one
2015-04-05 14:03:35 +02:00
Olivier Bertrand
05b30fbcc3
Fix MDEV-7890
2015-04-04 19:29:34 +02:00
Olivier Bertrand
836740cd8f
Correct a typo that made multiple 1 tables to return 0 lines on Linux
2015-04-02 11:36:53 +02:00
Olivier Bertrand
8721d20fb1
- Fix MDEV-7879 by adding a test in all SetValue_pval function to return when valp == this.
...
- Fix MDEV-7840 by making proper datetime constant in ha_connect::CheckCond on a second place.
2015-03-30 19:03:57 +02:00
Olivier Bertrand
daa8b6b5ba
D:\Ber\Develop\git3.msg
2015-03-28 20:18:46 +01:00
Olivier Bertrand
9cace9932f
- Fix a bug that caused a crash when doing delete on a json table with wrong syntax file
...
- Suppress MYSQL_SUPPORT preprocessor variable
2015-03-22 11:34:29 +01:00
Olivier Bertrand
464947e632
- Fix a bug that caused a crash when doing delete on a json table with wrong syntax file
...
- Suppress MYSQL_SUPPORT preprocessor variable
2015-03-22 11:31:10 +01:00
Olivier Bertrand
7733b247e1
Same changes than in version 10.0.17
2015-03-19 12:21:08 +01:00
Olivier Bertrand
2bb42803df
This commit includes changes done in a previous (deleted) branch plus new ones.
...
From the previous branch:
commit eda4928ff122a0845baf5ade83b4aa29244a3a89
Author: Olivier Bertrand <bertrandop@gmail.com>
Date: Mon Mar 9 22:34:56 2015 +0100
- Add discovery to JSON tables
When columns are not defined, CONNECT analyses the json file to find column definitions.
This wors only on table that are an array of objects. Pair keys are used to generate the
column names and pair values are used for its definition. When the LEVEL option is defined
as a not null integer, the eventual JPATH is scanned up to the LEVEL value.
From the current one:
- Fix MDEV-7521 when column names are utf8 encoded (not a general multi-charset fix)
- Adds more to JSON discovery processing and UDF's
- Use PlugDup everywhere it replaces PlugSubAlloc + strcpy.
2015-03-18 13:30:14 +01:00
Sergei Golubchik
2db62f686e
Merge branch '10.0' into 10.1
2015-03-07 13:21:02 +01:00
Sergei Golubchik
d61573d3e5
fix connect.json_udf test for static builds
2015-03-06 20:49:48 +01:00
Sergei Golubchik
c06c465a96
10.0-connect merge
2015-03-02 16:45:44 +01:00
Olivier Bertrand
b9a9b82f9e
- Make json_udf test work on Windows
...
modified:
storage/connect/mysql-test/connect/t/json_udf.inc
2015-03-02 00:35:56 +01:00
Olivier Bertrand
5f4909b31d
- Making json_udf test working on linux
...
added:
storage/connect/mysql-test/connect/t/json_udf.inc
modified:
storage/connect/mysql-test/connect/r/json_udf.result
storage/connect/mysql-test/connect/t/json_udf.test
2015-03-01 23:55:09 +01:00
Olivier Bertrand
34c89597ef
- Remove a signed/unsigned warning.
...
modified:
storage/connect/jsonudf.cpp
2015-03-01 19:29:56 +01:00
Olivier Bertrand
5c8862ee19
- Fix crash when Json_Value was called without arguments.
...
Correct memory calculation in Serialize.
Correct some UDF's messages.
Add and modify the json tests
removed:
storage/connect/mysql-test/connect/std_data/biblio.jsn
storage/connect/mysql-test/connect/std_data/expense.jsn
storage/connect/mysql-test/connect/std_data/mulexp3.jsn
storage/connect/mysql-test/connect/std_data/mulexp4.jsn
storage/connect/mysql-test/connect/std_data/mulexp5.jsn
added:
storage/connect/mysql-test/connect/r/json_udf.result
storage/connect/mysql-test/connect/std_data/biblio.json
storage/connect/mysql-test/connect/std_data/expense.json
storage/connect/mysql-test/connect/std_data/mulexp3.json
storage/connect/mysql-test/connect/std_data/mulexp4.json
storage/connect/mysql-test/connect/std_data/mulexp5.json
storage/connect/mysql-test/connect/t/json_udf.test
modified:
storage/connect/json.cpp
storage/connect/jsonudf.cpp
storage/connect/mysql-test/connect/r/json.result
storage/connect/mysql-test/connect/t/json.test
2015-03-01 19:20:40 +01:00
Olivier Bertrand
d862d7c049
- Implement random access to ODBC tables
...
modified:
storage/connect/odbconn.cpp
storage/connect/odbconn.h
- Fix get proper length of ODBC DECIMAL column in discovery
modified:
storage/connect/ha_connect.cc
storage/connect/mysql-test/connect/r/odbc_oracle.result
- Implement random access to JSON tables
modified:
storage/connect/tabjson.cpp
storage/connect/tabjson.h
- Fix MDEV-7636
modified:
storage/connect/tabutil.cpp
2015-02-28 23:01:55 +01:00
Olivier Bertrand
aa107ef3ab
- FIX assert failure when sorting JSON tables
...
modified:
storage/connect/tabjson.cpp
storage/connect/tabjson.h
2015-02-25 11:59:00 +01:00
Olivier Bertrand
e027f5e8d5
- Fix MDEV-7616 by adding SQLCOM_SET_OPTION to the accepted command list.
...
modified:
storage/connect/ha_connect.cc
- Add new JSON UDF functions and JSON functionalities.
modified:
storage/connect/json.cpp
storage/connect/json.h
storage/connect/jsonudf.cpp
storage/connect/tabjson.cpp
2015-02-24 23:18:04 +01:00
Sergei Golubchik
723be51678
Merge
2015-02-24 14:17:00 +01:00
Olivier Bertrand
a736e63f7c
- Add new Json UDF's Json_Array_Add, Json_Array_Grp and Json_Object_Grp.
...
Handle longjmp's raised during json processing.
modified:
storage/connect/global.h
storage/connect/ha_connect.cc
storage/connect/json.cpp
storage/connect/jsonudf.cpp
- Fix wrong references to the suppressed g->Trace variables.
modified:
storage/connect/global.h
storage/connect/plugutil.c
storage/connect/tabjson.cpp
storage/connect/tabodbc.cpp
2015-02-22 17:53:02 +01:00
Sergei Golubchik
56114a416f
merge 10.0-connect
2015-02-19 09:37:11 +01:00
Olivier Bertrand
d9175f3822
- Remove GCC warnings
...
modified:
storage/connect/jsonudf.cpp
storage/connect/tabutil.h
2015-02-19 01:25:31 +01:00
Olivier Bertrand
564d41faf4
- Work on JSON and JSON UDF's
...
modified:
storage/connect/json.cpp
storage/connect/jsonudf.cpp
storage/connect/tabjson.cpp
- CntReadNext: Enable EvalColumns for longjmp
modified:
storage/connect/connect.cc
2015-02-19 00:59:02 +01:00
Olivier Bertrand
2201aa66cf
- Typo on the jsonudf.cpp name
...
modified:
storage/connect/CMakeLists.txt
2015-02-12 17:23:28 +01:00
Olivier Bertrand
dcfe068d59
- Adding json udf's. Making the second version of json tables.
...
added:
storage/connect/jsonudf.cpp
modified:
storage/connect/CMakeLists.txt
storage/connect/json.cpp
storage/connect/json.h
storage/connect/tabjson.cpp
storage/connect/tabjson.h
- Fix utf8 issues with PROXY tables
modified:
storage/connect/ha_connect.cc
storage/connect/tabutil.cpp
storage/connect/tabutil.h
2015-02-11 21:39:41 +01:00
Sergei Golubchik
d72dea1959
Revert "Fixing ConnectSE compilation warnings"
...
This reverts commit aa61e4c76e
that broke the compilation on few platforms (e.g. centos5).
These warnings are already fixed properly in 10.0-connect.
2015-02-10 21:08:57 +01:00
Alexander Barkov
aa61e4c76e
Fixing ConnectSE compilation warnings (and failires in maintainer mode).
2015-02-10 16:47:42 +04:00
Alexander Barkov
a2578018bf
Fixing compilation failure in storage/connect when -DMYSQL_MAINTAINER_MODE=ON:
...
disabling some CXX errors in storage/connect/CMakeLists.txt.
2015-02-10 16:01:03 +04:00
Olivier Bertrand
3c097fd689
- Remove some GCC warnings
...
modified:
storage/connect/ha_connect.cc
2015-02-08 19:47:26 +01:00
Olivier Bertrand
96ba1f1473
- Handle the use of date/time values when making queries for MYSQL or
...
ODBC. Was raised by 7549.
modified:
storage/connect/ha_connect.cc
storage/connect/odbconn.cpp
storage/connect/tabodbc.cpp
2015-02-08 18:17:29 +01:00
Olivier Bertrand
35548d577c
- Modify the connect_type_conv and connect_conv_size variables.
...
They were global (read-only) now they are session (not read-only)
modified:
storage/connect/checklvl.h
storage/connect/ha_connect.cc
storage/connect/myconn.cpp
storage/connect/myutil.cpp
storage/connect/tabutil.cpp
- Suppress the compver variable on Linux compile. Was not
debian reproductible because using __DATE__ and __TIME__ macros.
modified:
storage/connect/ha_connect.cc
- ODBC LONGVARVAR type conversion now uses connect_conv_size.
modified:
storage/connect/odbconn.cpp
2015-02-07 11:33:52 +01:00