Regenerate ob_error.{h,cpp} at build time

This commit is contained in:
Xiaotian Wu 2022-03-16 12:51:14 +08:00
parent 79cc43da25
commit 07ac6a5cf4
2 changed files with 13 additions and 0 deletions

View File

@ -677,3 +677,11 @@ add_library(ob_share_static
target_link_libraries(ob_share_static
PUBLIC ob_share)
#SET(GEN_ERRNO_SCRIPT ${CMAKE_SOURCE_DIR}/src/share/gen_errno.pl)
#execute_process(
# COMMAND perl ${GEN_ERRNO_SCRIPT}
# WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/src/share
# )
#
#ob_server_add_target(ob_share)

View File

@ -563,6 +563,11 @@ print $fh_cpp '
#define OB_UNLIKELY
#include <string.h>
#endif
#define ER_KEY_COLUMN_DOES_NOT_EXITS -5211
#define ER_DROP_PARTITION_NON_EXISTENT -5303
#define ER_BLOB_CANT_HAVE_DEFAULT -5994
using namespace oceanbase::common;
namespace oceanbase