Skip to content

Commit 4a8b553

Browse files
committed
Resolved ha_connect.cc and CMakeLists.txt
1 parent d26b4eb commit 4a8b553

File tree

2 files changed

+13
-57
lines changed

2 files changed

+13
-57
lines changed

storage/connect/CMakeLists.txt

Lines changed: 13 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -310,34 +310,6 @@ IF(CONNECT_WITH_MONGO)
310310
ENDIF(libmongoc-1.0_FOUND)
311311
ENDIF(CONNECT_WITH_MONGO)
312312

313-
#
314-
# REST
315-
#
316-
317-
OPTION(CONNECT_WITH_REST "Compile CONNECT storage engine with REST support" ON)
318-
319-
IF(CONNECT_WITH_REST)
320-
MESSAGE(STATUS "=====> REST support is ON")
321-
FIND_PACKAGE(cpprestsdk)
322-
IF (cpprestsdk_FOUND)
323-
MESSAGE(STATUS "=====> cpprestsdk found")
324-
IF(UNIX)
325-
# INCLUDE_DIRECTORIES(${CPPRESTSDK_INCLUDE_DIR})
326-
# If needed edit next line to set the path to libcpprest.so
327-
SET(REST_LIBRARY -lcpprest)
328-
MESSAGE (STATUS ${REST_LIBRARY})
329-
ELSE(NOT UNIX)
330-
# Next line sets debug compile mode matching cpprest_2_10d.dll
331-
# when it was binary installed (can be change later in Visual Studio)
332-
# Comment it out if not needed depending on your cpprestsdk installation.
333-
SET(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} /MDd")
334-
ENDIF(UNIX)
335-
SET(CONNECT_SOURCES ${CONNECT_SOURCES} tabrest.cpp restget.cpp tabrest.h)
336-
add_definitions(-DREST_SUPPORT)
337-
ELSE(NOT cpprestsdk_FOUND)
338-
MESSAGE(STATUS "=====> cpprestsdk package not found")
339-
ENDIF (cpprestsdk_FOUND)
340-
ENDIF(CONNECT_WITH_REST)
341313

342314
#
343315
# REST
@@ -346,7 +318,7 @@ ENDIF(CONNECT_WITH_REST)
346318
OPTION(CONNECT_WITH_REST "Compile CONNECT storage engine with REST support" ON)
347319

348320
IF(CONNECT_WITH_REST)
349-
MESSAGE(STATUS "=====> REST support is ON")
321+
# MESSAGE(STATUS "=====> REST support is ON")
350322
SET(CONNECT_SOURCES ${CONNECT_SOURCES} tabrest.cpp tabrest.h)
351323
add_definitions(-DREST_SUPPORT)
352324
FIND_PACKAGE(cpprestsdk QUIET)
@@ -366,8 +338,8 @@ IF(CONNECT_WITH_REST)
366338
SET(CONNECT_SOURCES ${CONNECT_SOURCES} restget.cpp)
367339
add_definitions(-DREST_SOURCE)
368340
# ENDIF()
369-
ELSE(NOT cpprestsdk_FOUND)
370-
# MESSAGE(STATUS "=====> cpprestsdk package not found")
341+
# ELSE(NOT cpprestsdk_FOUND)
342+
# MESSAGE(STATUS "=====> cpprestsdk package not found")
371343
ENDIF (cpprestsdk_FOUND)
372344
ENDIF(CONNECT_WITH_REST)
373345

@@ -396,35 +368,26 @@ IF(NOT TARGET connect)
396368
RETURN()
397369
ENDIF()
398370

399-
# Don't link with bundled zlib and systel libxml2 at the same time.
400-
# System libxml2 uses system zlib, might conflict with the bundled one.
401-
IF (XML_LIBRARY AND BUILD_BUNDLED_ZLIB)
402-
GET_PROPERTY(INCS TARGET connect PROPERTY INCLUDE_DIRECTORIES)
403-
LIST(REMOVE_ITEM INCS ${ZLIB_INCLUDE_DIR})
404-
SET_PROPERTY(TARGET connect PROPERTY INCLUDE_DIRECTORIES ${INCS})
405-
ENDIF()
406-
407371
IF(WIN32)
408372
IF (libmongoc-1.0_FOUND)
409373
SET_TARGET_PROPERTIES(connect PROPERTIES LINK_FLAGS
410374
"/DELAYLOAD:libbson-1.0.dll /DELAYLOAD:libmongoc-1.0.dll")
411375
ENDIF(libmongoc-1.0_FOUND)
376+
ENDIF(WIN32)
412377

413378
# Install some extra files that belong to connect engine
414-
415-
INSTALL(FILES "$<TARGET_FILE_DIR:connect>/ha_connect.lib"
379+
IF(WIN32)
380+
# install ha_connect.lib
381+
GET_TARGET_PROPERTY(CONNECT_LOCATION connect LOCATION)
382+
STRING(REPLACE "dll" "lib" CONNECT_LIB ${CONNECT_LOCATION})
383+
IF(CMAKE_CONFIGURATION_TYPES)
384+
STRING(REPLACE "${CMAKE_CFG_INTDIR}" "\${CMAKE_INSTALL_CONFIG_NAME}"
385+
CONNECT_LIB ${CONNECT_LIB})
386+
ENDIF()
387+
INSTALL(FILES ${CONNECT_LIB}
416388
DESTINATION ${INSTALL_PLUGINDIR} COMPONENT connect-engine)
417389
ENDIF(WIN32)
418390

419-
IF(MSVC)
420-
# Temporarily disable "conversion from size_t .."
421-
IF(CMAKE_SIZEOF_VOID_P EQUAL 8)
422-
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /wd4267")
423-
ENDIF()
424-
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /wd4996")
425-
string(REPLACE "/permissive-" "" CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}")
426-
ENDIF()
427-
428391
IF(CONNECT_WITH_JDBC AND JAVA_FOUND AND JNI_FOUND)
429392
# TODO: Find how to compile and install the java wrapper classes
430393
# Find required libraries and include directories

storage/connect/ha_connect.cc

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2968,19 +2968,12 @@ PCFIL ha_connect::CheckCond(PGLOBAL g, PCFIL filp, const Item *cond)
29682968
case Item_func::LE_FUNC: vop= OP_LE; break;
29692969
case Item_func::GE_FUNC: vop= OP_GE; break;
29702970
case Item_func::GT_FUNC: vop= OP_GT; break;
2971-
<<<<<<< HEAD
2972-
//case Item_func::LIKE_FUNC:
2973-
// vop= OP_LIKE;
2974-
// neg= ((Item_func_like *)condf)->negated;
2975-
// break;
2976-
=======
29772971
#if MYSQL_VERSION_ID > 100200
29782972
case Item_func::LIKE_FUNC:
29792973
vop = OP_LIKE;
29802974
neg= ((Item_func_like*)condf)->negated;
29812975
break;
29822976
#endif // VERSION_ID > 100200
2983-
>>>>>>> 51e9381dcc01ebd72d4f0adc057a64213f850d70
29842977
case Item_func::ISNOTNULL_FUNC:
29852978
neg= true;
29862979
// fall through

0 commit comments

Comments
 (0)