mirror of
https://github.com/psycopg/psycopg2.git
synced 2024-11-11 03:26:37 +03:00
Fixed handling of internal query too large
This commit is contained in:
parent
917335eacb
commit
5957a7ee45
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user