]> 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:38:54 +0000 (22:38 +0200)
commitc6f98a720c9dd588cfb53487c90f5b6dac21a4ab
tree533679f0237e16945af898edf02a8023eba3c8ed
parent3e4def2ab03bbb74cf40b5161bb48a77c996d8e5
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