Skip to content

Commit c84a40b

Browse files
committed
Merge branch 'connect/10.0' into 10.0
2 parents a69f4c7 + f2dded9 commit c84a40b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+8781
-236
lines changed

storage/connect/.gitattributes

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Set the default behavior, in case people don't have core.autocrlf set.
2+
* text=auto
3+
4+
# Explicitly declare text files you want to always be normalized and converted
5+
# to native line endings on checkout.
6+
*.c text
7+
*.cc text
8+
*.cpp text
9+
*.h text
10+
*.test text
11+
12+
# Declare files that will always have LF line endings on checkout.
13+
*.result text eol=lf
14+
mysql-test/connect/std_data/*.txt text eol=lf
15+
mysql-test/connect/std_data/*.dat text eol=lf
16+
17+
# Denote all files that are truly binary and should not be modified.
18+
*.png binary
19+
*.jpg binary
20+
21+
*.c diff=cpp
22+
*.h diff=cpp
23+
*.cc diff=cpp
24+
*.ic diff=cpp
25+
*.cpp diff=cpp

storage/connect/.gitignore

Lines changed: 264 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,264 @@
1+
# Edited by Olivier Bertrand
2+
*-t
3+
*.a
4+
*.ctest
5+
*.o
6+
*.reject
7+
*.so
8+
*.so.*
9+
*.spec
10+
*~
11+
*.bak
12+
*.log
13+
*.cmake
14+
*.tgz
15+
*.msg
16+
.*.swp
17+
*.ninja
18+
.ninja_*
19+
.gdb_history
20+
21+
CMakeFiles/
22+
connect.dir/
23+
connect.dir-Copie/
24+
Debug/
25+
MinSizeRel/
26+
Release/
27+
RelWithDebInfo/
28+
29+
# C and C++
30+
31+
# Compiled Object files
32+
*.slo
33+
*.lo
34+
*.o
35+
*.ko
36+
*.obj
37+
*.elf
38+
*.exp
39+
*.manifest
40+
*.dep
41+
*.idb
42+
*.res
43+
44+
# Precompiled Headers
45+
*.gch
46+
*.pch
47+
48+
# Compiled Static libraries
49+
*.lib
50+
*.a
51+
*.la
52+
*.lai
53+
*.lo
54+
55+
# Compiled Dynamic libraries
56+
*.so
57+
*.so.*
58+
*.dylib
59+
*.dll
60+
61+
# Executables
62+
*.exe
63+
*.out
64+
*.app
65+
*.i*86
66+
*.x86_64
67+
*.hex
68+
69+
70+
## Ignore Visual Studio temporary files, build results, and
71+
## files generated by popular Visual Studio add-ons.
72+
73+
# User-specific files
74+
*.suo
75+
*.user
76+
*.userosscache
77+
*.sln.docstates
78+
*.ncb
79+
*.sln
80+
81+
*.vcproj
82+
*.vcproj.*
83+
*.vcproj.*.*
84+
*.vcproj.*.*.*
85+
*.vcxproj
86+
*.vcxproj.*
87+
*.vcxproj.*.*
88+
*.vcxproj.*.*.*
89+
90+
# Build results
91+
[Dd]ebug/
92+
[Dd]ebugPublic/
93+
[Rr]elease/
94+
[Rr]eleases/
95+
x64/
96+
x86/
97+
build/
98+
bld/
99+
[Bb]in/
100+
[Oo]bj/
101+
102+
# Roslyn cache directories
103+
*.ide/
104+
105+
# MSTest test Results
106+
[Tt]est[Rr]esult*/
107+
[Bb]uild[Ll]og.*
108+
109+
#NUNIT
110+
*.VisualState.xml
111+
TestResult.xml
112+
113+
# Build Results of an ATL Project
114+
[Dd]ebugPS/
115+
[Rr]eleasePS/
116+
dlldata.c
117+
118+
*_i.c
119+
*_p.c
120+
*_i.h
121+
*.ilk
122+
*.meta
123+
*.obj
124+
*.pch
125+
*.pdb
126+
*.pgc
127+
*.pgd
128+
*.rsp
129+
*.sbr
130+
*.tlb
131+
*.tli
132+
*.tlh
133+
*.tmp
134+
*.tmp_proj
135+
*.log
136+
*.vspscc
137+
*.vssscc
138+
.builds
139+
*.pidb
140+
*.svclog
141+
*.scc
142+
143+
# Chutzpah Test files
144+
_Chutzpah*
145+
146+
# Visual C++ cache files
147+
ipch/
148+
*.aps
149+
*.ncb
150+
*.opensdf
151+
*.sdf
152+
*.cachefile
153+
154+
# Visual Studio profiler
155+
*.psess
156+
*.vsp
157+
*.vspx
158+
159+
# TFS 2012 Local Workspace
160+
$tf/
161+
162+
# Guidance Automation Toolkit
163+
*.gpState
164+
165+
# ReSharper is a .NET coding add-in
166+
_ReSharper*/
167+
*.[Rr]e[Ss]harper
168+
*.DotSettings.user
169+
170+
# JustCode is a .NET coding addin-in
171+
.JustCode
172+
173+
# TeamCity is a build add-in
174+
_TeamCity*
175+
176+
# DotCover is a Code Coverage Tool
177+
*.dotCover
178+
179+
# NCrunch
180+
_NCrunch_*
181+
.*crunch*.local.xml
182+
183+
# MightyMoose
184+
*.mm.*
185+
AutoTest.Net/
186+
187+
# Web workbench (sass)
188+
.sass-cache/
189+
190+
# Installshield output folder
191+
[Ee]xpress/
192+
193+
# DocProject is a documentation generator add-in
194+
DocProject/buildhelp/
195+
DocProject/Help/*.HxT
196+
DocProject/Help/*.HxC
197+
DocProject/Help/*.hhc
198+
DocProject/Help/*.hhk
199+
DocProject/Help/*.hhp
200+
DocProject/Help/Html2
201+
DocProject/Help/html
202+
203+
# Click-Once directory
204+
publish/
205+
206+
# Publish Web Output
207+
*.[Pp]ublish.xml
208+
*.azurePubxml
209+
# TODO: Comment the next line if you want to checkin your web deploy settings
210+
# but database connection strings (with potential passwords) will be unencrypted
211+
*.pubxml
212+
*.publishproj
213+
214+
# NuGet Packages
215+
*.nupkg
216+
# The packages folder can be ignored because of Package Restore
217+
**/packages/*
218+
# except build/, which is used as an MSBuild target.
219+
!**/packages/build/
220+
# If using the old MSBuild-Integrated Package Restore, uncomment this:
221+
#!**/packages/repositories.config
222+
223+
# Windows Azure Build Output
224+
csx/
225+
*.build.csdef
226+
227+
# Windows Store app package directory
228+
AppPackages/
229+
230+
# Others
231+
# sql/
232+
*.Cache
233+
ClientBin/
234+
[Ss]tyle[Cc]op.*
235+
~$*
236+
*~
237+
*.dbmdl
238+
*.dbproj.schemaview
239+
*.pfx
240+
*.publishsettings
241+
node_modules/
242+
243+
# RIA/Silverlight projects
244+
Generated_Code/
245+
246+
# Backup & report files from converting an old project file
247+
# to a newer Visual Studio version. Backup files are not needed,
248+
# because we have git ;-)
249+
_UpgradeReport_Files/
250+
Backup*/
251+
UpgradeLog*.XML
252+
UpgradeLog*.htm
253+
254+
# SQL Server files
255+
*.mdf
256+
*.ldf
257+
258+
# Business Intelligence projects
259+
*.rdl.data
260+
*.bim.layout
261+
*.bim_*.settings
262+
263+
# Microsoft Fakes
264+
FakesAssemblies/

storage/connect/CMakeLists.txt

Lines changed: 30 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ user_connect.h valblk.h value.h xindex.h xobject.h xtable.h)
3737
#
3838
# Definitions that are shared for all OSes
3939
#
40-
add_definitions( -DMARIADB -DFORCE_INIT_OF_VARS )
40+
add_definitions( -DMARIADB -DFORCE_INIT_OF_VARS -Dconnect_EXPORTS)
4141
add_definitions( -DHUGE_SUPPORT -DZIP_SUPPORT -DPIVOT_SUPPORT )
4242

4343

@@ -232,6 +232,34 @@ int main() {
232232
ENDIF(UNIX)
233233
ENDIF(CONNECT_WITH_ODBC)
234234

235+
#
236+
# JDBC
237+
#
238+
239+
OPTION(CONNECT_WITH_JDBC "Compile CONNECT storage engine with JDBC support" ON)
240+
241+
IF(CONNECT_WITH_JDBC)
242+
# TODO: detect Java SDK and the presence of JDBC connectors
243+
# TODO: Find how to compile and install the java wrapper class
244+
# Find required libraries and include directories
245+
246+
FIND_PACKAGE(Java)
247+
FIND_PACKAGE(JNI)
248+
IF (JAVA_FOUND AND JNI_FOUND)
249+
INCLUDE_DIRECTORIES(${JAVA_INCLUDE_PATH})
250+
INCLUDE_DIRECTORIES(${JAVA_INCLUDE_PATH2})
251+
# SET(JDBC_LIBRARY ${JAVA_JVM_LIBRARY})
252+
SET(CONNECT_SOURCES ${CONNECT_SOURCES}
253+
JdbcInterface.java JdbcInterface.class
254+
JdbcDSInterface.java JdbcDSInterface.class
255+
JdbcApacheInterface.java JdbcApacheInterface.class
256+
jdbconn.cpp tabjdbc.cpp jdbconn.h tabjdbc.h jdbccat.h)
257+
add_definitions(-DJDBC_SUPPORT)
258+
ELSE()
259+
SET(JDBC_LIBRARY "")
260+
ENDIF()
261+
ENDIF(CONNECT_WITH_JDBC)
262+
235263

236264
#
237265
# XMAP
@@ -252,5 +280,5 @@ MYSQL_ADD_PLUGIN(connect ${CONNECT_SOURCES}
252280
COMPONENT connect-engine
253281
RECOMPILE_FOR_EMBEDDED
254282
LINK_LIBRARIES ${ZLIB_LIBRARY} ${XML_LIBRARY} ${ICONV_LIBRARY}
255-
${ODBC_LIBRARY} ${IPHLPAPI_LIBRARY})
283+
${ODBC_LIBRARY} ${JDBC_LIBRARY} ${IPHLPAPI_LIBRARY})
256284

15 KB
Binary file not shown.

0 commit comments

Comments
 (0)