Olivier Bertrand
cd9e1938ef
- Add a new table option SEPINDEX (not used yet) and remove an unused
...
parameter to all catalog info functions.
modified:
storage/connect/catalog.h
storage/connect/filamvct.cpp
storage/connect/filamzip.cpp
storage/connect/ha_connect.cc
storage/connect/mycat.cc
storage/connect/mycat.h
storage/connect/reldef.cpp
storage/connect/reldef.h
storage/connect/tabdos.cpp
storage/connect/tabfmt.cpp
storage/connect/tabmul.cpp
storage/connect/tabmysql.cpp
storage/connect/tabodbc.cpp
storage/connect/tabsys.cpp
storage/connect/tabtbl.cpp
storage/connect/tabvct.cpp
storage/connect/tabwmi.cpp
storage/connect/tabxml.cpp
storage/connect/xindex.cpp
2013-03-25 11:07:45 +01:00
Olivier Bertrand
8f0ae6322c
- Upated columns must be allocated before opening the table
...
modified:
storage/connect/connect.cc
2013-03-23 23:48:10 +01:00
Olivier Bertrand
7a7ff18cc0
- Update test results and add a new one (UPD)
...
added:
mysql-test/suite/connect/r/upd.result
mysql-test/suite/connect/t/upd.test
modified:
mysql-test/suite/connect/r/bin.result
mysql-test/suite/connect/r/csv.result
mysql-test/suite/connect/r/dbf.result
mysql-test/suite/connect/r/dir.result
mysql-test/suite/connect/r/fix.result
mysql-test/suite/connect/r/index.result
mysql-test/suite/connect/r/ini.result
mysql-test/suite/connect/r/vec.result
2013-03-23 23:46:10 +01:00
Olivier Bertrand
6a15b5f870
- Wrong FLAG values transmitted to created table by the AS SELECT table:
...
It is not enough to ignore the flags while populating the table. They have
to be removed from the definition in pre_create. The issue is to pass the
info from the selected table handler to the created table handler.
It is done via the only common item between them: the GLOBAL structure.
modified:
storage/connect/global.h
storage/connect/ha_connect.cc
storage/connect/ha_connect.h
storage/connect/plugutil.c
2013-03-23 19:47:51 +01:00
Olivier Bertrand
aa881ad593
- Fix a typo error: in AllocateValue(2) Tiny values were given the TYPE_SHORT type.
...
modified:
storage/connect/value.cpp
2013-03-23 16:03:56 +01:00
Olivier Bertrand
6c6d6fbf41
- Fix bug: When a table is created ... AS SELECT ... the offsets (FLAG value)
...
of the source table columns must be ignored by the created table.
modified:
storage/connect/ha_connect.cc
storage/connect/ha_connect.h
2013-03-23 16:00:09 +01:00
Olivier Bertrand
322a99b097
- Fix check_if_incompatible_data to correctly get thd.
...
modified:
storage/connect/ha_connect.cc
2013-03-22 12:57:24 +01:00
Olivier Bertrand
2ad6e653eb
- Fix bug to allow creating views.
...
modified:
storage/connect/ha_connect.cc
2013-03-22 12:49:41 +01:00
Alexander Barkov
70622eaac8
Fixing compilation failure in Windows: unknown symbol "any_db".
...
modified:
storage/connect/ha_connect.cc
2013-03-22 14:05:15 +04:00
Alexander Barkov
8087daaeb3
Require FILE privilege to DROP a table with FILE_NAME.
...
modified:
mysql-test/suite/connect/r/bin.result
mysql-test/suite/connect/t/grant.inc
storage/connect/ha_connect.cc
storage/connect/ha_connect.h
2013-03-22 13:44:21 +04:00
Alexander Barkov
79f84fdc77
- Require FILE privilege for the file based TABLE_TYPEs
...
when FILE_NAME is specified
- Require FILE privileges for the TABLE_TYPEs that
access to the underlying operating system:
ODBC, MYSQL, DIR, MAC, WMI, OEM.
added:
mysql-test/suite/connect/t/grant.inc
modified:
mysql-test/suite/connect/r/bin.result
mysql-test/suite/connect/t/bin.test
storage/connect/ha_connect.cc
storage/connect/ha_connect.h
2013-03-22 11:28:58 +04:00
Alexander Barkov
c52d887430
Skipping MySQL test when no MySQL support is compiled.
...
modified:
mysql-test/suite/connect/t/mysql.test
2013-03-22 11:23:17 +04:00
Olivier Bertrand
50af1a52f6
- Commit merged items
...
modified:
mysql-test/suite/connect/t/xml.test
storage/connect/ha_connect.cc*
2013-03-21 12:22:41 +01:00
Olivier Bertrand
fe6d5f497c
- Fix GetTypeID (to take care of supported features)
...
and IsFileType functions (INI was missing)
modified:
storage/connect/mycat.cc
- Update test result
modified:
mysql-test/suite/connect/r/null.result
2013-03-21 12:16:56 +01:00
Alexander Barkov
356402356a
Removing executable flag.
...
modified:
storage/connect/ha_connect.cc*
2013-03-21 11:34:58 +04:00
Alexander Barkov
e339288840
Skip xml test if no XML support is compiled.
...
modified:
mysql-test/suite/connect/t/xml.test
2013-03-21 11:18:08 +04:00
Olivier Bertrand
fff28085d8
- A specified table type not supported is now flagged as an error
...
instead of being replaced by the default type DOS.
modified:
mysql-test/suite/connect/r/general.result
mysql-test/suite/connect/t/general.test
storage/connect/ha_connect.cc
2013-03-20 23:42:23 +01:00
Olivier Bertrand
2c9d5aaece
- Add a test on null columns
...
added:
mysql-test/suite/connect/r/null.result
mysql-test/suite/connect/t/null.test
2013-03-20 19:43:43 +01:00
Olivier Bertrand
d6f2f7c5d5
- Changing CRLF line endings to LF only.
...
modified:
mysql-test/suite/connect/t/bin.test
mysql-test/suite/connect/t/csv.test
mysql-test/suite/connect/t/dbf.test
mysql-test/suite/connect/t/dir.test
mysql-test/suite/connect/t/fix.test
mysql-test/suite/connect/t/fmt.test
mysql-test/suite/connect/t/general.test
mysql-test/suite/connect/t/index.test
mysql-test/suite/connect/t/vec.test
2013-03-20 11:50:18 +01:00
Olivier Bertrand
964a423d2c
- Fix a bug causing the index file not being made or erased on statements
...
such as CREATE INDEX, DROP INDEX, ALTER TABLE... ADD INDEX etc.
modified:
storage/connect/ha_connect.cc
2013-03-20 00:52:32 +01:00
Olivier Bertrand
5746fcc9e1
- Make INI and XML tables not writing null column values
...
modified:
mysql-test/suite/connect/r/dbf.result
storage/connect/tabsys.cpp
storage/connect/tabxml.cpp
storage/connect/tabxml.h
2013-03-19 19:41:50 +01:00
Olivier Bertrand
19e9fa45ea
- Use all columns in case of INSERT so default values are generated for
...
columns not specified in the statemant.
modified:
storage/connect/ha_connect.cc
2013-03-19 18:45:05 +01:00
Olivier Bertrand
f81c60a4f8
- Update tests that failed because of NULL columns
...
modified:
mysql-test/suite/connect/r/bin.result
mysql-test/suite/connect/r/csv.result
mysql-test/suite/connect/r/dbf.result
mysql-test/suite/connect/r/dir.result
mysql-test/suite/connect/r/fix.result
mysql-test/suite/connect/r/fmt.result
mysql-test/suite/connect/r/general.result
mysql-test/suite/connect/r/index.result
mysql-test/suite/connect/r/vec.result
mysql-test/suite/connect/t/bin.test
mysql-test/suite/connect/t/csv.test
mysql-test/suite/connect/t/dbf.test
mysql-test/suite/connect/t/dir.test
mysql-test/suite/connect/t/fix.test
mysql-test/suite/connect/t/fmt.test
mysql-test/suite/connect/t/general.test
mysql-test/suite/connect/t/index.test
mysql-test/suite/connect/t/vec.test
2013-03-17 17:09:40 +01:00
Olivier Bertrand
5008a3e897
- Add in create a check for nullable columns not supported by some table types.
...
modified:
storage/connect/ha_connect.cc
storage/connect/mycat.cc
storage/connect/mycat.h
2013-03-17 11:31:11 +01:00
Olivier Bertrand
d2b6d80bc8
- A quick and dirty fix for erased or not erased files when executing an
...
Alter table on an auto-generated CONNECT table.
modified:
storage/connect/ha_connect.cc
2013-03-15 00:11:46 +01:00
Olivier Bertrand
ebcf6ad9af
- Fix tests after last modification, in particular support of TINY
...
modified:
mysql-test/suite/connect/r/dbf.result
mysql-test/suite/connect/r/general.result
mysql-test/suite/connect/r/xml.result
mysql-test/suite/connect/t/dbf.test
2013-03-13 18:43:10 +01:00
Olivier Bertrand
1c4a3eb9a6
- Fix bug on ALTER TABLE t1 MODIFY a VARCHAR(10) NOT NULL;
...
modified:
storage/connect/ha_connect.cc
2013-03-13 16:06:02 +01:00
Olivier Bertrand
fe39ea1b03
- Make Tiny compatible with DBF tables.
...
modified:
storage/connect/filamdbf.cpp
2013-03-13 14:37:34 +01:00
Olivier Bertrand
74115f5fa3
- Commit changes from ubuntu
...
modified:
storage/connect/ha_connect.cc*
2013-03-13 02:02:44 +01:00
unknown
14f3d5a6c3
- Fix a GCC compile error (crosses initialization of pos) an change
...
_O_CREAT to O_CREAT
modified:
storage/connect/ha_connect.cc
- Change mode to -x
modified:
mysql-test/suite/connect/t/index.test*
storage/connect/filamap.cpp*
2013-03-13 01:56:01 +01:00
Olivier Bertrand
b210168752
- Handle delete_table and rename_table for CONNECT tables whose files are
...
auto generated and must be erased or renamed on Drop or Rename Table.
TODO: Take care of eventual index files.
modified:
storage/connect/ha_connect.cc
storage/connect/ha_connect.h
2013-03-13 01:10:20 +01:00
Olivier Bertrand
7572315ecd
- New handling of default file name:
...
Not added as an option but handled when the table is used.
An empty file is created in the database directory if not exists.
modified:
storage/connect/ha_connect.cc
storage/connect/mycat.cc
storage/connect/tabdos.cpp
storage/connect/tabmul.cpp
storage/connect/tabsys.cpp
storage/connect/tabxml.cpp
2013-03-12 01:20:52 +01:00
Olivier Bertrand
a2ca685661
- somethin about property
...
modified:
storage/connect/filamap.cpp*
2013-03-11 18:40:55 +01:00
unknown
ad020e2c45
- Resetting chmod to non executable
...
modified:
storage/connect/maputil.cpp*
2013-03-11 18:35:51 +01:00
Olivier Bertrand
dd72f03f95
- Fix a bug on DBF file name such as 'x/y.dbf' leading to a crash on Insert.
...
modified:
storage/connect/filamdbf.cpp
2013-03-11 17:47:27 +01:00
Olivier Bertrand
17fb343a5c
- Add tiny integer as a supported type by CONNECT
...
modified:
storage/connect/global.h
storage/connect/ha_connect.cc
storage/connect/myutil.cpp
storage/connect/plgdbutl.cpp
storage/connect/tabdos.cpp
storage/connect/tabwmi.cpp
storage/connect/valblk.cpp
storage/connect/valblk.h
storage/connect/value.cpp
storage/connect/value.h
storage/connect/xobject.cpp
2013-03-11 16:52:59 +01:00
Olivier Bertrand
ffc29ac310
- Enable type conversion on Insert and Update
...
modified:
storage/connect/connect.cc
2013-03-11 16:51:40 +01:00
Olivier Bertrand
cb1847df32
- Make indexes to be rebuilt on Update only when an indexed column was updated.
...
modified:
mysql-test/suite/connect/r/index.result
mysql-test/suite/connect/t/index.test
storage/connect/ha_connect.cc
storage/connect/tabdos.cpp
storage/connect/xindex.cpp
2013-03-10 19:48:45 +01:00
Olivier Bertrand
7a30ec7231
- XML and INI tables now return NULL when a node does not exist in a row (XML)
...
or if the key is missing in a section (INI)
modified:
mysql-test/suite/connect/r/ini.result
mysql-test/suite/connect/r/xml.result
storage/connect/tabsys.cpp
storage/connect/tabxml.cpp
- Do a sub-storage cleanup on info commands and fix a limit of column number
in ODBCColumns. This was doing a crash for unexpected longjmp when many info
commands were executed in a row.
modified:
storage/connect/ha_connect.cc
storage/connect/odbconn.cpp
2013-03-10 15:10:00 +01:00
Olivier Bertrand
c7b95cb9df
- Delete ALL or truncate must not be done using file mapping.
...
modified:
storage/connect/tabdos.cpp
storage/connect/tabfix.cpp
storage/connect/tabvct.cpp
2013-03-08 22:48:27 +01:00
Olivier Bertrand
3342df63ef
- Commit changes on memory mapping that hopefully should now work on Linux.
...
modified:
storage/connect/maputil.cpp
storage/connect/tabdos.cpp
storage/connect/tabfmt.cpp
storage/connect/tabvct.cpp
2013-03-08 18:29:05 +01:00
Olivier Bertrand
6e6e34b19d
- Results updated to reflect new features
...
modified:
mysql-test/suite/connect/r/general.result
mysql-test/suite/connect/r/xml.result
2013-03-08 18:27:43 +01:00
Olivier Bertrand
69154073d9
- Until the problem is fixed, temporarily not use mapping on Linux for Update.
...
modified:
storage/connect/tabdos.cpp
storage/connect/tabfmt.cpp
storage/connect/tabvct.cpp
2013-03-08 01:09:53 +01:00
Olivier Bertrand
07beddc421
- Working on the problem of writing to mapped files on Linux
...
modified:
storage/connect/maputil.cpp*
2013-03-08 00:41:24 +01:00
Olivier Bertrand
274b2f8c4a
- Fix a bug causing the server to crash when writing on a memory mapped
...
file on Linux.
modified:
storage/connect/maputil.cpp
2013-03-07 23:05:54 +01:00
Olivier Bertrand
079f053c66
- Fix bug causing a crash when writing to a memory mapped file on Linux.
...
modified:
storage/connect/maputil.cpp
2013-03-07 22:56:52 +01:00
Olivier Bertrand
44efd72977
- Updated to accept calculated default field length for date columns.
...
modified:
mysql-test/suite/connect/r/index.result
mysql-test/suite/connect/t/index.test
2013-03-07 21:40:09 +01:00
Olivier Bertrand
eab8fcfa3f
- Set file name when unspecified as tablename.tabletype.
...
modified:
storage/connect/ha_connect.cc
storage/connect/mycat.cc
storage/connect/mycat.h
2013-03-07 21:38:00 +01:00
Olivier Bertrand
bc9c872483
- Calculate default date field length from the specified format.
...
modified:
storage/connect/ha_connect.cc
2013-03-07 18:53:41 +01:00
Olivier Bertrand
deca1d1848
- Change line ending to LF only
...
modified:
mysql-test/suite/connect/r/index.result
2013-03-06 13:46:48 +01:00