Alexander Barkov
7a8402c98d
Replacing iconv converstion routines in libdoc.cc to MariaDB routines.
...
TODO: Access to Field->charset() instead of hardcoded latin1 conversion.
modified:
storage/connect/libdoc.cpp
storage/connect/libdoc.h
2013-02-01 17:28:13 +04:00
Alexander Barkov
dde8622c20
More XML related definitions are now more friendly:
...
- LIBXML2_SUPPORT is defined if LibXml2 is found
- DOMDOC_SUPPORT is defined if msxml is found
- XML_SUPPORT is defined if either of them are found
NOXML2 was removed
modified:
storage/connect/CMakeLists.txt
storage/connect/global.h
storage/connect/ha_connect.cc
storage/connect/plgdbutl.cpp
storage/connect/plgxml.cpp
2013-02-01 14:55:11 +04:00
Alexander Barkov
733ab86c25
Adding an option to switch off ICONV support:
...
cmake -DCONNECT_WITH_ICONV=0
modified:
storage/connect/CMakeLists.txt
storage/connect/tabodbc.cpp
storage/connect/tabodbc.h
2013-02-01 13:36:56 +04:00
Alexander Barkov
f09ae60d30
Fixing to use my_interval_timer() instead of ftime().
...
The later is not portable (e.g. it does not exist on FreeBSD)
modified:
storage/connect/ha_connect.cc
storage/connect/user_connect.cc
storage/connect/user_connect.h
2013-02-01 12:49:04 +04:00
Alexander Barkov
3d8ef8bf2f
ftime does not exist on FreeBSD.
...
Hiding calls for ftime() as a temporary fix.
This code should be modified to use my_time_microseconds() instead.
2013-02-01 16:11:55 +04:00
Alexander Barkov
d10116292b
Adding separate flags to disable MSXML and LIBXML2 libraries on Windows:
...
-DCONNECT_WITH_LIBXML2=0
-DCONNECT_WITH_MSXML=0
modified:
storage/connect/CMakeLists.txt
2013-02-01 10:06:32 +04:00
Olivier Bertrand
627d046df5
DBF type N is now BIGINT when length is > 10.
...
Fix ha_connect::external_lock to use F_RDLCK, F_WRLCK, F_UNLCK.
2013-01-31 22:55:56 +01:00
Olivier Bertrand
ad41e7ee40
Fix incorrect DBF type setting for SORT and BIGINT.
2013-01-31 00:58:22 +01:00
Olivier Bertrand
29df840a11
Fix problems with ODBC raised by Adding the type TYPE_BIGINT (longlong).
2013-01-30 00:15:54 +01:00
Olivier Bertrand
74b51d9525
Fix problems with ODBC raised by Adding the type TYPE_BIGINT (longlong).
2013-01-30 00:00:10 +01:00
Olivier Bertrand
26b00be332
Fix problems with ODBC raised by Adding the type TYPE_BIGINT (longlong).
2013-01-29 23:40:34 +01:00
Alexander Barkov
c87004d817
Removing os2def.h
...
removed:
storage/connect/os2def.h
modified:
storage/connect/fmdlex.c
storage/connect/maputil.cpp
storage/connect/tabcol.cpp
storage/connect/tabfmt.cpp
storage/connect/tabmul.cpp
storage/connect/tabmysql.cpp
2013-01-29 23:23:03 +04:00
Alexander Barkov
a9d06e1066
Adding a comment why TranslateSQLType is exported.
...
modified:
storage/connect/value.h
2013-01-29 21:37:39 +04:00
Alexander Barkov
258c6d479e
Removing redundant declaration of ulonglong.
...
It's defined in my_global.h which is included through handler.h
modified:
storage/connect/connect.cc
2013-01-29 20:00:01 +04:00
Alexander Barkov
18e02f0608
Fixing compilation failure caused by wrong definition of DWORD
...
in unixODBC headers on 64-bit platforms.
Moving function definitions from value.cpp to odbconn.cpp.
Changing scope of GetSQLType and GetSQLCType from public to static.
modified:
storage/connect/odbconn.cpp
storage/connect/value.cpp
storage/connect/value.h
2013-01-29 19:35:17 +04:00
Alexander Barkov
ab76cdb236
Compilation failed on Debian 32-bit.
...
Fixing DWORD definition once again as "unsigned long",
which is the way how MS defines it.
modified:
@ storage/connect/os.h
Changing DWORD defitition
@ storage/connect/tabodbc.cpp
Moving "#define NODW" to proper place.
2013-01-29 19:15:22 +04:00
Alexander Barkov
d78d3d4fc9
Removing more duplicate declarations.
...
Fixing DWORD declaration to "unsigned int".
Fixing BIGINT declatation from uint64_t to longlong.
2013-01-29 17:30:02 +04:00
Alexander Barkov
eb1633776a
Adding os.h forgotten in the previous changeset.
...
added:
storage/connect/os.h
2013-01-29 21:16:56 +04:00
Alexander Barkov
7d0887e0d8
Moving duplicate data type declatations into os.h.
...
modified:
storage/connect/global.h
storage/connect/inihandl.c
storage/connect/osutil.h
2013-01-29 21:14:59 +04:00
Alexander Barkov
780463cc25
Adding detection of msxml library version:
...
msxml2, msxml3, msxml4, msxml6
modified:
storage/connect/CMakeLists.txt
storage/connect/domdoc.cpp
2013-01-28 19:49:46 +04:00
Alexander Barkov
501fc7642f
Defining __STDC__, otherwise it does not compile on Windows
...
modified:
storage/connect/fmdlex.c
2013-01-28 18:11:51 +04:00
Alexander Barkov
4f9e09efb4
Fixing ODBC related compilation failures:
...
- without ODBC: adding a few "#ifdef CONNECT_SUPPORT"
- with ODBC on Linux: conflicting definitions for DWORD
in sql.h (unixODBC) vs global.h.
Using "typedef unsigned int DWORD", as this is how MS SQK defines it
and matches unixODBC definition.
Removing sqlutil.h. value.cpp now uses sql.h and sqlext.h instead.
removed:
storage/connect/sqlutil.h
modified:
storage/connect/global.h
storage/connect/value.cpp
storage/connect/value.h
2013-01-28 13:42:14 +04:00
Alexander Barkov
6690bafca9
Adding a possibility to disable ODBC, XML and MySQL support in CONNECT:
...
cmake . -DCONNECT_WITH_ODBC=0 -DCONNECT_WITH_XML=0 -DCONNECT_WITH_MYSQL=0
modified:
storage/connect/CMakeLists.txt
2013-01-28 13:37:50 +04:00
Olivier Bertrand
ba82edd41e
Fix problems with ODBC raised by Adding the type TYPE_BIGINT (longlong).
2013-01-24 19:18:54 +01:00
Alexander Barkov
1d67d9bf2f
Adding automatic LibXml2 detection for Windows
...
with searching in a number of typical places.
2013-01-24 15:31:56 +04:00
Alexander Barkov
0ffc852355
Making the OS specific part more readable (indentation).
...
modified:
storage/connect/CMakeLists.txt
2013-01-24 14:16:13 +04:00
Olivier Bertrand
9ff78c618c
2013-01-23 22:58:13 +01:00
Alexander Barkov
6242f1bffa
Additional change for iphlpapi.lib.
...
Forgot to add this chunk in the previous commit.
2013-01-24 01:48:00 +04:00
Olivier Bertrand
6ec8f00ae3
Added to CONNECT the missing type TYPE_BIGINT (longlong).
2013-01-23 22:45:25 +01:00
Alexander Barkov
19d98a331d
Adding iphlpapi.lib library on Windows.
...
Needed for Mac utils.
2013-01-24 01:43:37 +04:00
Alexander Barkov
939bfb039f
Adding /EHsc flags when compiling on windows.
...
Required for mycat.cc
modified:
storage/connect/CMakeLists.txt
2013-01-24 00:08:02 +04:00
Olivier Bertrand
5c8c4f4f8e
Test for CSV file imported from Windows.
2013-01-23 00:36:00 +01:00
Alexander Barkov
a8f0f93a2a
A Changeset from Olivier:
...
Added some #if define(... for WIN32, ODBC and MYSQL in case they not defined.
modified:
storage/connect/ha_connect.cc
2013-01-22 20:08:22 +04:00
Alexander Barkov
bb6b87fdcf
Fixing CMakeLists.txt:
...
- Olivier's changes for Linux/Windows
- Splitting cmake code by feature
2013-01-22 19:36:47 +04:00
Alexander Barkov
37465ea2fe
Adding an Olivier's changeset:
...
pre_create function and one is now able to create table
without giving the column specifications for tables of types:
DBF, ODBC, MYSQL, CSV, and WMI (on Windows)
modified:
sql/handler.h
sql/sql_table.cc
storage/connect/ha_connect.cc
storage/connect/ha_connect.h
storage/connect/mycat.cc
storage/connect/odbconn.cpp
storage/connect/plgcnx.h
storage/connect/tabfmt.cpp
storage/connect/tabmysql.cpp
storage/connect/tabwmi.cpp
2013-01-22 18:14:34 +04:00
Alexander Barkov
2e175a4652
Automatic detection for LIBXML2 and ODBC includes/libraries.
2013-01-22 17:26:12 +04:00
Alexander Barkov
d7143a4160
Adding the CONNECT storage engine sources.
2013-01-18 19:21:44 +04:00