mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-12-27 08:39:28 +08:00
Update comment.
generate_normalized_query() no longer needs to truncate text, but this one comment didn't get the memo. Per Peter Geoghegan.
This commit is contained in:
parent
c871e8f53b
commit
98d62c28fd
@ -2726,7 +2726,7 @@ generate_normalized_query(pgssJumbleState *jstate, const char *query,
|
||||
if (tok_len < 0)
|
||||
continue; /* ignore any duplicates */
|
||||
|
||||
/* Copy next chunk, or as much as will fit */
|
||||
/* Copy next chunk (what precedes the next constant) */
|
||||
len_to_wrt = off - last_off;
|
||||
len_to_wrt -= last_tok_len;
|
||||
|
||||
@ -2734,6 +2734,7 @@ generate_normalized_query(pgssJumbleState *jstate, const char *query,
|
||||
memcpy(norm_query + n_quer_loc, query + quer_loc, len_to_wrt);
|
||||
n_quer_loc += len_to_wrt;
|
||||
|
||||
/* And insert a '?' in place of the constant token */
|
||||
norm_query[n_quer_loc++] = '?';
|
||||
|
||||
quer_loc = off + tok_len;
|
||||
|
Loading…
Reference in New Issue
Block a user