Skip to content

Commit

Permalink
guard against hashid support being disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
mnutt committed May 8, 2022
1 parent c16ce76 commit 477d9b1
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/Common/config.h.in
Expand Up @@ -26,3 +26,4 @@
#cmakedefine01 USE_ODBC
#cmakedefine01 USE_REPLXX
#cmakedefine01 USE_JEMALLOC
#cmakedefine01 USE_HASHIDSXX
4 changes: 4 additions & 0 deletions src/Functions/FunctionHashID.cpp
@@ -1,5 +1,7 @@
#include "FunctionHashID.h"

#if USE_HASHIDSXX

#include <Functions/FunctionFactory.h>


Expand All @@ -11,3 +13,5 @@ void registerFunctionHashID(FunctionFactory & factory)
factory.registerFunction<FunctionHashID>();
}
}

#endif
4 changes: 4 additions & 0 deletions src/Functions/FunctionHashID.h
Expand Up @@ -2,6 +2,8 @@

#include <Common/config.h>

#if USE_HASHIDSXX

#include <hashids.h>

#include <DataTypes/DataTypeString.h>
Expand Down Expand Up @@ -151,3 +153,5 @@ class FunctionHashID : public IFunction
};

}

#endif

0 comments on commit 477d9b1

Please sign in to comment.