Commit b86ba751 authored by Sergei Golubchik's avatar Sergei Golubchik

always use sql/sql_string.* files, never - client/sql_string.*

parent 505a6018
...@@ -26,7 +26,8 @@ INCLUDE_DIRECTORIES( ...@@ -26,7 +26,8 @@ INCLUDE_DIRECTORIES(
) )
ADD_DEFINITIONS(${SSL_DEFINES}) ADD_DEFINITIONS(${SSL_DEFINES})
MYSQL_ADD_EXECUTABLE(mysql completion_hash.cc mysql.cc readline.cc sql_string.cc) MYSQL_ADD_EXECUTABLE(mysql completion_hash.cc mysql.cc readline.cc
${CMAKE_SOURCE_DIR}/sql/sql_string.cc)
TARGET_LINK_LIBRARIES(mysql mysqlclient) TARGET_LINK_LIBRARIES(mysql mysqlclient)
IF(UNIX) IF(UNIX)
TARGET_LINK_LIBRARIES(mysql ${MY_READLINE_LIBRARY}) TARGET_LINK_LIBRARIES(mysql ${MY_READLINE_LIBRARY})
......
...@@ -16,6 +16,7 @@ ...@@ -16,6 +16,7 @@
INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/include INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/include
${CMAKE_SOURCE_DIR}/libmysqld/include ${CMAKE_SOURCE_DIR}/libmysqld/include
${CMAKE_SOURCE_DIR}/regex ${CMAKE_SOURCE_DIR}/regex
${CMAKE_SOURCE_DIR}/sql
${MY_READLINE_INCLUDE_DIR} ${MY_READLINE_INCLUDE_DIR}
) )
......
...@@ -27,9 +27,6 @@ ...@@ -27,9 +27,6 @@
#include "sql_string.h" #include "sql_string.h"
#ifdef MYSQL_CLIENT
#error Attempt to use server-side sql_string on client. Use client/sql_string.cc
#endif
/***************************************************************************** /*****************************************************************************
** String functions ** String functions
*****************************************************************************/ *****************************************************************************/
......
...@@ -26,10 +26,6 @@ ...@@ -26,10 +26,6 @@
#include "my_sys.h" /* alloc_root, my_free, my_realloc */ #include "my_sys.h" /* alloc_root, my_free, my_realloc */
#include "m_string.h" /* TRASH */ #include "m_string.h" /* TRASH */
#ifdef MYSQL_CLIENT
#error Attempt to use server-side sql_string on client. Use client/sql_string.h
#endif
class String; class String;
typedef struct st_io_cache IO_CACHE; typedef struct st_io_cache IO_CACHE;
typedef struct st_mem_root MEM_ROOT; typedef struct st_mem_root MEM_ROOT;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment