Skip to content

Commit

Permalink
[skip ci] fix build with hstream_enable_asan (#1567)
Browse files Browse the repository at this point in the history
  • Loading branch information
4eUeP authored Aug 18, 2023
1 parent c904fe2 commit c2eb655
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions hstream/src/HStream/Client/SQLNew.hs
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,8 @@ sqlAction HStreamApi{..} sql = do
putStr $ HStream.Utils.formatCommandQueryResponse x
ClientErrorResponse _ -> putStr $ HStream.Utils.formatResult resp

-- XXX: Can't build template-haskell with asan
#ifndef HSTREAM_ENABLE_ASAN
helpInfo :: String
helpInfo =
[r|
Expand Down Expand Up @@ -251,6 +253,13 @@ helpInfos = M.fromList [
DROP <STREAM <stream_name>|VIEW <view_name>|QUERY <query_id>> [IF EXISTS];
|])
]
#else
helpInfo :: String
helpInfo = ""

helpInfos :: M.Map String String
helpInfos = M.fromList []
#endif

groupedHelpInfo :: String
groupedHelpInfo = ("SQL Statements\n" <> ) . unlines . map (\(x, y) -> x <> " " <> y) . M.toList $ helpInfos
Expand Down

0 comments on commit c2eb655

Please sign in to comment.