]> git.ipfire.org Git - thirdparty/psycopg.git/commit
fix(copy): fix count of chars to escape
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>
Wed, 29 May 2024 19:45:57 +0000 (21:45 +0200)
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>
Thu, 30 May 2024 20:35:56 +0000 (22:35 +0200)
commit92d3185dab4e0da685f2e1784637f9afd12d7c24
tree2062ee40397f0226f57a7f1fdec0a822e3c79d5b
parent796d177c8fa0beb13f85c5669f5ac1aa66978e1f
fix(copy): fix count of chars to escape

We missed to reset the number of chars to escape at every field. As a
consequence, we end up resizing and scanning all the fields after the
first one requiring an escape and allocating a bit more memory than
needed.
docs/news.rst
psycopg_c/psycopg_c/_psycopg/copy.pyx