Skip to content

Commit

Permalink
[CBRD-24437] DBLink query parsing error (#3747)
Browse files Browse the repository at this point in the history
http://jira.cubrid.org/browse/CBRD-24437

In order to rewrite the dblink query, the query must be parsed and recombined.
There may be multiple "WHERE" in the dblink query, but this is not considered and an issue has occurred.
  • Loading branch information
airnet73 authored Jul 26, 2022
1 parent 3a65e21 commit 82f461a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/broker/cas_cgw.c
Original file line number Diff line number Diff line change
Expand Up @@ -2509,7 +2509,7 @@ cgw_rewrite_query (char *src_query, char **sql)
inline_view_len = (end + 1) - (start);
start = end + REWRITE_DELIMITER_CUBLINK_LEN + 3;

end = strstr (source, "WHERE");
end = strstr (inline_view + inline_view_len, "WHERE");
if (end == NULL)
{
err_code = ERR_REWRITE_FAILED;
Expand Down

0 comments on commit 82f461a

Please sign in to comment.