Fixed handling of internal query too large

This commit is contained in:
Daniele Varrazzo 2019-03-17 01:23:13 +00:00
parent 917335eacb
commit 5957a7ee45

View File

@ -711,10 +711,12 @@ pq_set_guc_locked(
}
if (size < 0 || (size_t)size >= sizeof(query)) {
*error = strdup("SET: query too large");
goto exit;
}
rv = pq_execute_command_locked(conn, query, pgres, error, tstate);
exit:
return rv;
}